Home > Web Front-end > H5 Tutorial > Detailed introduction to Html5 elements and basic syntax

Detailed introduction to Html5 elements and basic syntax

黄舟
Release: 2017-03-18 16:08:42
Original
1756 people have browsed it

The editor below will bring you a detailed explanation of Html5 elements and basic syntax. The editor thinks it is quite good, so I will share it with you now and give it as a reference for everyone. Let’s follow the editor and take a look.

HTML tag
Opening tag:Opening tag
Closing tag: Closing tag


Element
Definition: HTML element refers to the code from the start tag to the end tag (the element starts with the start tag Terminating with a stay tag)
Content of the element: The content of the element refers to the content between the start tag and the end tag

Characteristics of the element:
1, most HTML elements can be nested ( Can include other HTML elements)
2, HTML document is composed of nested HTML elements
3, don’t forget the closing tag, future HTML versions will not allow the omission of the closing tag
4 , empty html element
5, html element without content is called the empty content of the element, the empty element is closed in the start tag
Note:
The difference between empty elements and empty content: empty elements The start tag and end tag are the same, the emphasis is on the tag. Empty content means that the content within the element is empty, and the focus is on the content.

The basic structure of HTML
: It is not a tag, it is just used to declare to help the browser correctly display the web page
< The head> element is a container for all head elements. The tag is always located in the head element. The tag provides metadata about the HTML document.
The