w3schools html tags code example
Example 1: what does the html tags mean in html
<!DOCTYPE html>
<html>
<!-- your code here -->
</html>
<!-- html tag is a non-self closing tag in html, it represents the beginning
and end of your entire code.All the other tags, elements, attributes,etc.
comes between html tags.
The HTML <doctype> tag is used to tell the browser which version of
HTML the document is using. It has no end tag (self-closing tag).
For HTML5 version we write <!DOCTYPE html>.
-->
Example 2: html elements list
The basic elements of an HTML page are:
A text header, denoted using the <h1>, <h2>, <h3>, <h4>, <h5>, <h6> tags.
A paragraph, denoted using the <p> tag.
A horizontal ruler, denoted using the <hr> tag.
A link, denoted using the <a> (anchor) tag.
A list, denoted using the <ul> (unordered list), <ol> (ordered list) and <li> (list element) tags.
An image, denoted using the <img> tag
A divider, denoted using the <div> tag
A text span, denoted using the <span> tag