Nothing is showing up on the browser


#1

I am coding on my own using Notepad and Google Chrome I am a complete beginner i put in this code,seems in order but nothing shows up. It's like I haven't coded anything. BTW I know this is probably in the wrong category but as i mentioned i am a complete beginner and i apologise.


<html>
	<head>
		<title>
			Anadil's Cage
		</title>
	</head>
	<body>
	<p>Hello Forums!!! Plz help me!!</p>
	</body>
	</html>


#2

Please make the following changes:

<!DOCTYPE html>

<html>
    <head>
        <title>Anadil's Cage</title>
    </head>
    <body>
        <p>Hello Forums!!! Plz help me!!</p>
    </body>
</html>

Once you have done this, save the file to your computer. When you save, and this is very important, make sure to add .html at the end of the file name. If you do not do this step, your computer will only open the file as a text document.


#3

It could be<!DOCTYPE html> or you didn't save the file and opened it
ctrl + s is easy and ctrl + r to reload fast and ofc you should use a .html extension when you press save as :smiley:


#4

Thanks tons guys, yes it is saved as a txt document but I "save as" ed it to .html and the browser shortcut popped up too but I think it's still txt. Thanks for the help I will try those steps


#5

When you save the file, there is an option field under the field where you enter the file name, make sure its set to all files and not .txt files

if you select all files, you can give the file an extension in the name. Otherwise it will be stored as txt file

You can always right click a file and select properties to see what type of file it is


#6

Thanks a lot guys i fixed it , man notepad can act weirdly sometimes but anyways thanks for all the help


#7

i would install something which is slightly more appropriate for programming (notepad++, atom, sublime text)


#8

Agreed, you're really not doing yourself any favors using notepad, @infernoleader

Atom and Sublime Text are great alternatives.


#9

Okay thanks I will try them


#10

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.