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
demo:p Label
<p>this is my first paragraph.</p>
<p> for start tag
</p> for end tag
<p> here is the Content section </p>
Note: <p>this is my first paragraph. Even if you forget to use the end tag, most browsers will also display HTML correctly (but it is recommended that you write a closed tag)
an empty HTML element
HTML elements that have no content are called empty elements. The empty element is closed in the Start tab.
Demo: Wrap Tab <br/>
<br> is the empty element without closing the label (the <br> tag defines a newline).
Note:<br> is valid in all browsers, but using <br/> is better
HTML Tag considerations: (Use lowercase tags)
Note: The HTML tag is not sensitive to case:<p> is equivalent to <p>. Many websites use uppercase HTML tags. However, we recommend using lowercase tags, the World Wide Web Consortium recommends lowercase in HTML 4, and lowercase in the future (X) HTML version
HTML Series Tutorial--Elements