Saturday, December 24, 2011

HTML Layout

Every website has certain elements that are needed in order for it to be an HTML document.



Here's the typical layout for a simple website.




<html>
<head>
<title>Page Title<title>
</head>
<body>

</body>
</html>


Each of the words surrounded by < and > are called tags. The page content that you want to display goes inside the body tag. Most HTML tags have a matching opening and closing tag.



There are doctypes that you can place at the top of your HTML pages as well. Doctypes help make sure that you are using the correct set of tags and aren't using any deprecated tags (tags that are no longer part of the HTML spec). You can always verify your website against an HTML validator. The validator checks which doctype you choose and then checks it against your HTML document.

No comments:

Post a Comment

Ever feel like no one is listening?

 Ever have that feeling that no one is listening to you? Yeah, that feeling. It can be a strong feeling to have, a hurtful feeling also. The...