i need help from html source code!?
i am creating a simple webpage right now using a simple notepad, but the problem is i forgot the basics of the source code opening!
please can anybody help me?
i think its
<html><head><title>"name of the title"</title></head>
<body background="background image">
and blah blah blah,
and at the end source point is
</html>
</body>
............am i correct?
please correct me if im wrong! i tried to open it from a web browser but it didnt work...
please give me the correct basics of html, not the pro html codes but the basics, ASAP..thank you...
Public Comments
- I think the </body> and </html> are round the wrong way? It's been ages since I did that stuff though haha. XD
- Yeah, you've got it. The basics of HTML, well that would be adding images, and stuff like that so here's the code, you can paste it to your file or do anything you wish. <html> <head> <title>YourWebsiteTitle</title> </head> <body bgcolor="red"> <h1>A Big heading</h1> <h2>A bit smaller heading</h2> <P> A paragraph. </p> <img src="IMAGE-FILENAME-GOES-HERE"> </body> </html>
- hi, your code seems right, i think it is not opening in a browser because you did not save it right - in notepad when you save a any documents, it save it as a .txt file which is a simple text file and cannot be opened as a html file.... for it to work as an html file you need to: click on save as > then type the name of your file > add .html at the end of the name > in the "save as type" > select "all files" in the drop down menu > and click "save" this should make your file an html file... hope this help... >,<
- close the body before closing the html
Powered by Yahoo! Answers