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.
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
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>
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!