Learn More

Sunday, July 10, 2011

Basic HTML Document

html logo
When you read our post on Basic In Writing HTML, we said that each HTML document is always written with <html> and ends with </html> between them can be written a number of other HTML elements. But it is not complete basic in writing html document. We explain that as opening on how to write tags in html. Basicly, every html document must have the structure as follow

Now, you have see the complate structure in HTML documents. Each document must be start using <!doctype html>. A doctype declaration refers to the rules for the markup language, so that the browsers render the content correctly. After that, the html element is rendered after the doctypes. Remember in the html element will contain two essential parts, i.e. the head element and the body element. Between opening and closing tag of head element you can add another element. But it is not always valid for every element. Metatag is always added between that. So, metadata is valid in here.

After head element, there is body element. Between opening and closing tag of body element is always document contents. In blogger, it contents include widget, post, and more.

You can try it directly via:

Post a Comment