Why do we Use Lowercase Tags
- HTML tags are not case sensitive: means the same as .
- When you surf the Web, you will notice that most tutorials use uppercase HTML tags in their examples.
- If you want to prepare yourself for the next generations of HTML, you should start using lowercase tags.
- The World Wide Web Consortium(W3C) recommends lowercase tags in their HTML 4 recommendation, and XHTML (the next generation HTML) demands lowercase tags.
Tag Attributes
- Tag attributes can provide additional information about the HTML elements in your page.
- This tag defines the body of your HTML page:.With an added bgcolor attribute, you can tell the browser that the background color of your page should be red, like this: .
- This tag defines an HTML table:
. With an added border attribute, you can tell the browser that the table should have no borders:
- Attributes always come in name/value pairs like this: name=“value”.
- Attributes are always added to the start tag of an HTML element.
- Attributes values should always be enclosed in quotes.
Basic HTML Tags
- The most important tags in HTML are tags that define headings, paragraphs and line breaks.
Line Breaks
- The tag is used when you want to end a line, but don’t want to start a new paragraph. The
tag forces a line break wherever you place it. - The tag is an empty tag. It has no closing tag.
Comments in HTML
- The comment tag is used to insert a comment in the HTML source code. A comment will be ignored by the browser.
- You can use comments to explain your code, which can help you when you edit the source code at a later date.
0 comments:
Post a Comment