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
php中文网.
The content of the element is the content between the start tag and the end tagCode example
php中文网
html Syntax rules for elements:
is an empty element without a closing tag (
Label definition wraps).
Example explanation
Element
php中文网
, a closing tag
The element content is:
php中文网
php中文网
element defines the body of the HTML document.This element has a start tag
and an end tagThe content of the element is:
php中文网
php中文网
This element has a start tag
. The
element content is another HTML element (
body
element
< ;head>
The element is a container for all head elementsThe elements listed below can be used inside the