Home > Article > Web Front-end > What are the elements of html
The element of
html refers to all the code from the start tag to the end tag, which is the basic object that constitutes the HTML file; HTML elements are defined by using HTML tags.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
HTML elements refer to all code from the start tag to the end tag. Therefore, it can also be said that HTML elements are the basic objects that constitute HTML files, and HTML elements are equivalent to a general term. HTML elements are defined using HTML tags.
Note: The start tag is often called the opening tag (opening tag), and the end tag is often called the closing tag (closing tag).
HTML element syntax
HTML element starts with a start tag
HTML element ends with Tag termination
The content of the element is the content between the start tag and the end tag
Some HTML elements have empty content
Empty elements are closed in the opening tag (end with the end of the opening tag)
Most HTML elements can have attributes
For more detailed HTML/CSS knowledge, please visit the html video tutorial column!
The above is the detailed content of What are the elements of html. For more information, please follow other related articles on the PHP Chinese website!