Thursday, January 1, 2009

HTML Page 2


Headings Are Important
*Use the HTML heading tags for headings only. Don't use headings to make something BIG or bold.
*Search engines use your headings to index the structure and content of your web pages.
*Since users may skim your pages by its headings, it is important to use headings to show the document structure.
*H1 headings should be used as main headings, followed by H2 headings, and less important H3 headings, and so on.
HTML Comments
*Comments can be inserted in the HTML code to make it more readable and understandable. *Comments are ignored by the browser and not displayed.
*Comments are written like this:
Note: There is an exclamation point after the opening bracket, but not before the closing bracket.

HTML Tip - How to View HTML Source
*Have you ever seen a Web page and wondered "Hey! How did they do that?"
*To find out, click the VIEW option in your browser's toolbar and select SOURCE or PAGE SOURCE.
*This will open a window that shows you the HTML code of the page.

Examples From This Page
*This example demonstrates the tags that display headings in an HTML document.
Hidden comments
*This example demonstrates how to insert a hidden comment in the HTML source code.

HTML Tag Reference
*When you lookup W3Schools' tag reference, you will see additional information about tags and their attributes.
*You will learn more about HTML tag attributes in the next chapters of this tutorial.

HTML documents are divided into paragraphs.

Note: Browsers automatically adds an empty line before and after paragraphs.
Try it yourself
Try it yourself
The example above will work in most browsers, but don't rely on it. Forgetting the end tag can produce unexpected results or errors.
Note: Future version of HTML will not allow you to skip end tags.

No comments:

Post a Comment