Home > Web Front-end > H5 Tutorial > body text

Summary of all elements and basic grammar of H5

php中世界最好的语言
Release: 2018-01-10 09:57:09
Original
4658 people have browsed it

This time I will bring you a summary of all the elements and basic syntax of H5. What are the precautions for using the elements and basic syntax of H5. Here are practical cases, let’s take a look.

HTML tag
Opening tag: open tag
Ending 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 and ends with the end tag). The content of the
element: the content of the element refers to the code between the start tag and the end tag. Characteristics of content

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

HTML basic structure
: Not a tag, just used to declare to help the browser correctly display the web page

elements are all headers The container of the element
tag is always located in the head element. The tag provides metadata about the HTML document.