Word
self closing tag
Definition
compound. a piece of computer code that opens and closes itself in one step. You use it in languages like HTML for things that do not contain text, such as images or line breaks.
compound. an XML or HTML element that is opened and closed within a single tag, rather than using separate opening and closing tags. It typically represents an empty element that does not wrap around content.
Examples
“An image in HTML uses a self-closing tag.”
“When writing modern React components, developers often use a self-closing tag if the component has no children to display.”
“While HTML5 allows certain elements to omit the trailing slash, strict XML parsers require a self-closing tag to be explicitly terminated to ensure the document remains well-formed.”
Examples
simple
“An image in HTML uses a self-closing tag.”
contextual
“When writing modern React components, developers often use a self-closing tag if the component has no children to display.”
complex
“While HTML5 allows certain elements to omit the trailing slash, strict XML parsers require a self-closing tag to be explicitly terminated to ensure the document remains well-formed.”
Usage
Commonly used in the context of web development and markup languages like HTML, XML, and JSX.
Etymology
A compound term formed from the reflexive pronoun self- and the present participle closing, applied to the existing technical sense of tag. The construction follows the syntax established in the 1986 SGML standard and the subsequent XML specification.
Etymology adapted from Wiktionary, available under CC BY-SA 4.0.
Domain
- Exam level
- CambridgeCambridgeCambridge English QualificationsThe exam suite from Cambridge University Press & Assessment, from A1 Movers up to C2 Proficiency. The benchmark names double as CEFR labels.C1 AdvancedIELTSIELTSInternational English Language Testing SystemThe 0–9 band test co-owned by the British Council, IDP, and Cambridge. Used for university entry, work, and migration.7.0–8.0TOEFL iBTTOEFL iBTTest of English as a Foreign Language, Internet-Based TestETS's academic English test, the standard route for US university admissions. Scored 0–120, with a 1–6 scale since 2026.1–6 scale: 5.0–5.595–113TOEICTOEICTest of English for International CommunicationETS's workplace English test, big in Japan and Korea. Listening & Reading scores 10–990 and tops out at C1.945–990EikenEikenTest in Practical English ProficiencyThe English proficiency test from the Eiken Foundation of Japan, widely taken by Japanese students. Grades run from 5 to 1, with Pre-1 and Pre-2 between them.Grade 1
- Level
- C1 · Advanced
- Updated
- アルファベット
- 読み方の一覧 →
QR code
englishreference.com/q/self-closing-tag