HTML tag
The text in angle brackets, such as <p> or </p>, that marks where an HTML element starts and ends.
In more detail
A start tag like <section class="card"> opens an element and can carry attributes; an end tag like </section> closes it. In the DOM, an element's tagName property returns its tag in capitals, such as SECTION.
Related terms
- HTML element — One building block of a web page, such as a paragraph, a button or a section, made of a start tag, its content and an end tag.
- HTML attribute — A name and value written inside a start tag, such as class="card" or hidden, that configures an element.
- HTML tokenization — The parsing step that splits a stream of characters into meaningful pieces called tokens, such as a start tag, an end tag or a run of text.
- HTML — The markup language that describes the structure and meaning of a web page with elements such as <button>, <input> and <h2>.
Taught in
- HTML Parsing, Tokenization And The Document Object Model (DOM) — Frontend Architecture & Web Platform
- CSS Parsing, The CSSOM And The Render Tree — Frontend Architecture & Web Platform
- Types And Functions, A Whirlwind Tour — Hands-on Python: Complete Video Course & Book
- Lists, Range And The For Loop — Hands-on Python: Complete Video Course & Book
- Repeat Loops And Successive Modification — Hands-on Python: Complete Video Course & Book
- Appending To Lists, Sets, Constructors — Hands-on Python: Complete Video Course & Book
- How A Web Page Reaches You — Hands-on Python: Complete Video Course & Book
- HTML Forms And Dynamic Programs — Hands-on Python: Complete Video Course & Book