What are HTML elements? This article will take you through HTML elements and introduce the grammatical rules of html elements.
Related recommendations: "What is CSS syntax? Detailed introduction to usage methods and rules》
##HTML elements
HTML elements refer to from the start tag to the end tag all code. For example:, this is an HTML element.
Code example
<head> <body> <p></p> </body> </html>
php中文网.
The content of the element is the content between the start tag and the end tagCode example
<p>php中文网</p>
html Syntax rules for elements:
is an empty element without a closing tag (
Label definition wraps).
Example explanation
Element
<p>php中文网</p>
, a closing tag
The element content is: php中文网
<p>php中文网</p>
element defines the body of the HTML document. This element has a start tag
and an end tag </body>
The content of the element is:
<p>php中文网</p>
This element has a start tag
. The
element content is another HTML element (
body
< ;head>
The element is a container for all head elementsThe elements listed below can be used inside the