HTML Tags

Use Lowercase Tags?

We have just said that HTML tags are not case sensitive: means the same as . It is recommended to always use because

If you want to prepare yourself for the next generations of HTML, you should start using lowercase tags. The World Wide Web Consortium recommends lowercase tags in their HTML 4 recommendation, and XHTML (the next generation HTML) demands lowercase tags.

 

Tags can have attributes. Attributes can provide additional information about the HTML elements on your page.
This tag defines the body element 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: .
Attributes always come in name/value pairs like this: name="value".
Attributes are always added to the start tag of an HTML element.

Quote Styles, "red" or 'red'?


Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed. In some rare situations, like when the attribute value itself contains quotes, it is necessary to use single quotes: