dcsimg
www.webdeveloper.com
Results 1 to 15 of 15

Thread: Newbie Question: Uploaded HTML Pages Show as HTML Not "Normal" WebPages

  1. #1
    Join Date
    Nov 2016
    Posts
    6

    Newbie Question: Uploaded HTML Pages Show as HTML Not "Normal" WebPages

    I'm a newbie, and I've created a page that displays fine in Google Sites.

    I'd like to use that page in my personal site but I understand that Google does not permit users to download HTML we've created there (I'm not sure about this).

    I've tried to copy/paste their code into a new document (by right-clicking it in Google Sites which causes the page and the images file to download to my desktop), but my new document does not display in Chrome, IE, or Edge (instead all I see is a page of the HTML).

    I've named the new document various things, such as "index.htm", but nothing works.

    I've even tried the same thing with the HTML I developed in a different web site (http://html-online.com/editor/

    I must be doing something wrong, but I have no idea what...

    Any help would be appreciated, thanks!


    Alan

  2. #2
    Join Date
    Oct 2013
    Location
    Sheboygan, Wisconsin
    Posts
    821
    Highlight the code, R-click and select copy,
    now paste it into where you want it.

  3. #3
    Join Date
    Nov 2016
    Posts
    6
    Thanks, Train, but that is exactly what I did, but all I'm seeing in the browsers is that HTML...

    Alan


    Quote Originally Posted by Train View Post
    Highlight the code, R-click and select copy,
    now paste it into where you want it.

  4. #4
    Join Date
    Oct 2013
    Location
    Sheboygan, Wisconsin
    Posts
    821
    Until you save it as a .html
    that is all you will see.

    After saving it, you double click it and it should open in your browser.

  5. #5
    Join Date
    Nov 2016
    Posts
    6
    Yes, thanks again Train for replying... I appreciate it!

    I did indeed save it as .html and then as .htm, same result.

    Is there a way I can upload the page here?

    Alan

  6. #6
    Join Date
    Oct 2013
    Location
    Sheboygan, Wisconsin
    Posts
    821
    You can copy /paste the code into your next post.
    But, PLEASE use the bb code tags in the link.

    http://www.webdeveloper.com/forum/sh...BCode-CSS-Help

  7. #7
    Join Date
    Mar 2012
    Posts
    3,632
    like you have the windows "hide the file extension" bug. Well, it's not really a bug, but it acts like one. Anyway, have you checked that the file is being saved as "index.html" not "index.html.txt"?

  8. #8
    Join Date
    Oct 2013
    Posts
    1,558
    As a follow-on to jedaisoul, the easy way to know is if the files you think are HTML have your default browser icon. If they have a text file icon they are likely named "*.html.txt" or "*.htm.txt".

    [EDIT]Instructions for XP through 10:
    http://kb.winzip.com/kb/entry/26/[/EDIT]

    Far less likely is that the leading and ending angle brackets for the HTML tags have somehow been translated to < and >. Easy enough to replace with a find all/replace all if that's the case.
    Last edited by Kevin2; 11-16-2016 at 06:09 PM.
    In dog beers I've only had one.

  9. #9
    Join Date
    Nov 2016
    Posts
    6
    Thank you Kevin and Jedaisoul.

    Yes, the file in question is named index.html and it shows the proper icon (in my case, the Chrome icon).

    I searched the document for [B]< but did not find any.

    I tried to follow Train's suggestion for uploading the HTML, but the Forum here didn't like what I tried so instead here's a link to the page which I hope will work:

    https://1drv.ms/u/s!Ao4n4iofSHdIgYUaQXKKOAxpOrHqmw

    Thank you all again,

    Alan

    Quote Originally Posted by Kevin2 View Post
    As a follow-on to jedaisoul, the easy way to know is if the files you think are HTML have your default browser icon. If they have a text file icon they are likely named "*.html.txt" or "*.htm.txt".

    [EDIT]Instructions for XP through 10:
    http://kb.winzip.com/kb/entry/26/[/EDIT]

    Far less likely is that the leading and ending angle brackets for the HTML tags have somehow been translated to < and >. Easy enough to replace with a find all/replace all if that's the case.

  10. #10
    Join Date
    Nov 2016
    Posts
    6
    Hi Train,

    Thank you again.

    As i just posted below, here is a link to the page:

    https://1drv.ms/u/s!Ao4n4iofSHdIgYUaQXKKOAxpOrHqmw

    Thanks again,

    Alan

  11. #11
    Join Date
    Oct 2013
    Posts
    1,558
    Well it's even more bizarre than I thought. It's HTML wrapping HTML with "escaped" angle brackets as I showed above. Here's the end of the file:
    Code:
    	<tr>
    		<td style="border: none; padding: 0in"></td>
    		<td style="border: none; padding: 0in">
    			<p>&lt;/script&gt;</p>
    		</td>
    	</tr>
    	<tr>
    		<td style="border: none; padding: 0in"></td>
    		<td style="border: none; padding: 0in">
    			<p>&lt;/body&gt;</p>
    		</td>
    	</tr>
    	<tr>
    		<td style="border: none; padding: 0in"></td>
    		<td style="border: none; padding: 0in">
    			<p>&lt;/html&gt;</p>
    		</td>
    	</tr>
    Which displays in your browser as:

    Code:
    </script>
    
    </body>
    
    </html>
    To get what you want open that file in your browser. All that HTML code will display. Select All, Copy, Paste into a new file in a text/code editor, Save and voila! "Welcome to BaseballReplays"
    In dog beers I've only had one.

  12. #12
    Join Date
    Oct 2013
    Location
    Sheboygan, Wisconsin
    Posts
    821
    I used notepad as the text editor.
    Native to windows.
    Read the error message and then save it anyway.

    How to do that
    http://www.w3schools.com/html/html_editors.asp

  13. #13
    Join Date
    Nov 2016
    Posts
    6

    Success!!!

    Success!

    Thank you very much Train and Kevin (and everyone else here).

    I'm very grateful for your time and help. You guys are great. I'm fortunate to have stumbled on this forum, and I much appreciate your indulging this rookie.

    Thanks again,

    Alan


    Quote Originally Posted by Train View Post
    I used notepad as the text editor.
    Native to windows.
    Read the error message and then save it anyway.

    How to do that
    http://www.w3schools.com/html/html_editors.asp

  14. #14
    Join Date
    Oct 2013
    Location
    Sheboygan, Wisconsin
    Posts
    821
    You are welcome.

    Go with HTML 5 doctype from now on.
    <!DOCTYPE html>
    http://www.w3schools.com/tags/tag_doctype.asp

  15. #15
    Join Date
    Nov 2016
    Location
    Californa, USA
    Posts
    6
    I have vague memories of something similar: you paste HTML code into an editor, save with an .html extension, and the editor thinks it needs to convert plain text to HTML. Not sure which editor is was that had this dumb behavior.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles