What does single tag mean in html

青灯夜游
Release: 2023-01-03 09:24:17
Original
12776 people have browsed it

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 ). On the contrary, they are paired. For example: < div>

and
are not empty tags.

In HTML, it is invalid to use a closing tag on an empty tag, for example:
. 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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template