HTML elements
start Tag * |
element Content |
End tag * |
<p> |
This is a paragraph |
</p> |
<a href="default.htm"> |
This is a link |
</a> |
<br/> |
|
|
The start tag is often referred to as the start tag (opening tag), and the end tag is often called a closed tag (closing tag).
HTML element syntax
- HTML element to start tag starting
- HTML element terminated with end tag
- The content of an element is the content between the start tag and the end tag
- Some HTML elements have blank content (empty contents)
- Empty elements are closed in the start tag (ending with the end of the start tag)
- Most HTML elements can have properties
HTML Properties
- HTML elements can set properties
- property to add additional information to the element
- Properties are generally described in the start tag
- A property is always in the form of a name/value pair, such as: name= "value".
HTML Properties Common Reference property values
Property values should always be included in quotation marks.
Double quotes are the most common, but there is no problem with single quotes.
tip: In some individual cases, such as the attribute value itself contains double quotes, then you must use single quotation marks,
For example: Name= ' John ' shotgun ' Nelson '
HTML hint: Use lowercase attributes
Property and property values are not case sensitive.
However, the World Wide Web Consortium recommends lowercase attribute/attribute values in its HTML 4 recommendation standard.
The new version of (X) HTML requires the use of lowercase attributes.
HTML Elements and attributes