What is the HTML element?
This article will explain in detail what the HTML element is, Xiaobian thinks it is very practical, so share it with you as a reference, I hope you can gain something after reading this article.
HTML -Elements
preface
HTML documents are defined by HTML elements.
HTML elements
Start label label content End label
This is a paragraph.
this is a link
newline
Note: The opening tag is often referred to as the opening tag, and the closing tag is often referred to as the closing tag.
HTML Element Syntax
HTML elements start with a start tag
HTML elements terminate with an end tag
The content of an element is the content between the start and end tags
Some HTML elements have empty content
Empty elements are closed in the start tab (ending with the end of the start tab)
Most HTML elements can have attributes
HTML empty element
HTML elements without content are called empty elements. Empty elements are closed in the opening tag.
Empty elements without closing tags (
label definition).
In XHTML, XML, and future versions of HTML, all elements must be closed.
Adding slashes to opening tags, for example, is the correct way to close empty elements, and HTML, XHTML, and XML all accept this approach.
even
It works in all browsers, but its use is actually a longer-term guarantee.
HTML Tip: Use lowercase tags
HTML tags are case-insensitive:
equivalent to
。Many websites use capitalized HTML tags.
Lowercase tags are recommended because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4 and forces lowercase in future (X)HTML versions.
About "HTML element is what" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.