![]() |
Basic HTML question
why is it that when I upload this html to a server it shows up as text and not an html page
<!DOCTYPE html> <html> <head> <title>Heading Example</title> </head> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html> |
Works fine...
What did you name the file including extension? |
It's a server config issue. The browser isn't being told it's an html file. Try different file extensions or you'll need to config the server to tell the browser the correct mime type.
|
you have uploaded it as a txt file.
|
index.htm
|
Rename the file to .html
|
Quote:
|
I can't tell without loading the file ...
If have a server question why is there no URL? |
Quote:
Quote:
must be server issue :2 cents: |
Rename notepad file index (.html) when you save to your desktop or folder
|
Quote:
|
If its something like Wordpress, your HTML belongs in the "text" tab of the editor, not the "visual" tab.
|
It's probably the file extension.
But another random thought: Did you maybe type that as text instead of code in a WYSIWYG editor?.. :upsidedow |
What happens if you try it in a different browser?
|
Got it figured out. My editor added some fucked up code that I didn't see. Rookie mistake I guess.
|
Quote:
|
Its back to Dream Weaver!
|
you know dreamweaver but no understand basic html? holy fuck you drunk?
|
All times are GMT -7. The time now is 10:30 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123