GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Basic HTML question (https://gfy.com/showthread.php?t=1241014)

Pete 01-21-2017 02:29 PM

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>

EddyTheDog 01-21-2017 02:36 PM

Works fine...

What did you name the file including extension?

shake 01-21-2017 02:44 PM

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.

Smack dat 01-21-2017 03:12 PM

you have uploaded it as a txt file.

Pete 01-21-2017 03:13 PM

index.htm

LouiseLloyd 01-21-2017 03:15 PM

Rename the file to .html

EddyTheDog 01-21-2017 03:19 PM

Quote:

Originally Posted by Pete (Post 21472852)
index.htm

Try opening locally on your PC without a server - If that does not work then I would guess you have named it something like index.htm.txt - I have done it lots of times when editing with NoteBook...

Barry-xlovecam 01-21-2017 04:54 PM

I can't tell without loading the file ...
If have a server question why is there no URL?

NatalieK 01-21-2017 06:21 PM

Quote:

Originally Posted by Pete (Post 21472852)
index.htm

Quote:

Originally Posted by LouiseLloyd (Post 21472855)
Rename the file to .html

either of these should show as web page & not .txt

must be server issue :2 cents:

TheDynasty 01-21-2017 06:28 PM

Rename notepad file index (.html) when you save to your desktop or folder

RyuLion 01-21-2017 06:30 PM

Quote:

Originally Posted by TheDynasty (Post 21473437)
Rename notepad file index (.html) when you save to your desktop or folder

:2 cents::2 cents::2 cents:

MFCT 01-21-2017 09:01 PM

If its something like Wordpress, your HTML belongs in the "text" tab of the editor, not the "visual" tab.

Colmike9 01-22-2017 11:39 AM

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

redwhiteandblue 01-22-2017 12:22 PM

What happens if you try it in a different browser?

Pete 01-22-2017 06:45 PM

Got it figured out. My editor added some fucked up code that I didn't see. Rookie mistake I guess.

RyuLion 01-22-2017 07:41 PM

Quote:

Originally Posted by Pete (Post 21476407)
Got it figured out. My editor added some fucked up code that I didn't see. Rookie mistake I guess.

Happens to the best of us..

Pete 01-22-2017 07:44 PM

Its back to Dream Weaver!

xXXtesy10 01-22-2017 08:28 PM

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