Home >Web Front-end >HTML Tutorial >What does single tag mean in html

What does single tag mean in html

青灯夜游
青灯夜游Original
2021-02-20 17:40:1712807browse

In HTML, a single tag refers to a tag without a closing tag (no end tag), which is closed in the opening tag, that is, an empty tag; they do not exist in pairs, on a single tag Using a closing tag is invalid. Common single tags include: br, hr, img, input, link, meta, etc.

What does single tag mean in html

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

In HTML, a single tag refers to a tag without a closing tag (no closing tag), that is, an empty tag.

Empty tags are HTML tag elements with no content. They are elements that are closed in the start tag. There are no pairs (except 879b49175114808d868f5fe5e24c4e0b). On the contrary, they are paired. For example: 44a8922e6607b31d059827e4b04a93b916b28748ea4df4d9c2150843fecfba68 and ff9c23ada1bcecdd1a0fb5d5a0f18437f5a47148e367a6035fd7a2faa965022e are not empty tags.

In HTML, it is invalid to use a closing tag on an empty tag, for example: 0b9f73f8e206867bd1f5dc5957dbcb38. Such cases are invalid HTML.

Related recommendations: "html video tutorial"

Commonly the following tags are empty tags

<area>
<base>
<br>
<col>
<colgroup> 
<command>
<embed>
<hr>
<img>
<input>
<keygen>
<link>
<meta>
<param>
<source>
<track>
<wbr>

More programming related For knowledge, please visit: programming video! !

The above is the detailed content of What does single tag mean in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn