Home > Article > Web Front-end > What parts does an html element consist of?
The
html element consists of three parts: start tag, content and end tag. HTML elements start with a start tag and end with an end tag. The content of the element is the content between the opening tag and the closing tag.
The operating environment of this article: windows10 system, html 5, thinkpad t480 computer. The
html element consists of three parts: start tag, content and end tag.
The HTML element syntax is as follows:
HTML elements start with a start tag
HTML elements end with an end tag
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
Related recommendations: html video tutorial
The above is the detailed content of What parts does an html element consist of?. For more information, please follow other related articles on the PHP Chinese website!