This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA
tag.
Example
This is a paragraph
This is another paragraph
same as
. Plenty of web sites use uppercase HTML tags in their pages. World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and demands lowercase tags in future versions of (X)HTML.
© Pramudith_Kandambi Rajarata_University BIT_2009
HTML Attributes
Attributes provide additional information about HTML elements.
HTML elements can have attributes
Attributes provide additional information about the element
Attributes are always specified in the start tag
Attributes come in name/value pairs like: name="value" © Pramudith_Kandambi Rajarata_University BIT_2009
Always Quote Attribute Values
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: name='John "ShotGun" Nelson' © Pramudith_Kandambi Rajarata_University BIT_2009
Don't Forget the End Tag
Most browsers will display HTML correctly even if you forget the end tag:
Example
This is a paragraph
This is another paragraph