Home >Web Front-end >HTML Tutorial >What are HTML elements? A brief discussion on the grammatical rules of elements
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:e388a4556c0f65e1904146cc1a846bee94b3e26ee717c64999d7867364b1b4a3, this is an HTML element.
Code example
<head> <body> <p></p> </body> </html>and content elements, I write it is this site
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:
0c6dc11e160d3b678d68754cc175188a is an empty element without a closing tag (
0c6dc11e160d3b678d68754cc175188a Label definition wraps).
Example explanation
e388a4556c0f65e1904146cc1a846bee Element
<p>php中文网</p>The element has a start tag
e388a4556c0f65e1904146cc1a846bee, a closing tag
94b3e26ee717c64999d7867364b1b4a3
php中文网
<p>php中文网</p>
element defines the body of the HTML document. This element has a start tag
and an end tag 36cc49f0c466276486e50c850b7e4956
The content of the element is:
<p>php中文网</p>
This element has a start tag
100db36a723c770d327fc0aef2ce13b1
73a6ac4ed44ffec12cee46588e518a5e. The
element content is another HTML element (
body
93f0f5c25f18dab9d176bd4f6de5d30e element
< ;head>
The element is a container for all head elements93f0f5c25f18dab9d176bd4f6de5d30e
The elements listed below can be used inside the
93f0f5c25f18dab9d176bd4f6de5d30e
#< ;base>
##2cdf5bf648cf2f33323966d7f58a7f3f
##e8e496c15ba93d81f6ea4fe5f55a2244
##Notes
Don’t forget to end the tag
Use lowercase tags
The above is the detailed content of What are HTML elements? A brief discussion on the grammatical rules of elements. For more information, please follow other related articles on the PHP Chinese website!