diffsnack
Glossary · 235 terms

Every word in the code, explained simply.

These are the explanations the magnifier shows in the game. Made for anyone starting from zero.

HTMLAttribute

action

The address a form sends its data to.

<form action="/search">
HTMLAttribute

alt

Text that describes an image for people who cannot see it. It is also shown if the image fails to load.

<img src="nemesis.webp"
alt="Album cover Nemesis">
HTMLAttribute

aria-current

Marks the current item, for example the page you are on in a menu.

<span aria-current="page">Blog</span>
HTMLAttribute

aria-expanded

Tells screen readers whether a collapsible section controlled by this element is currently open ("true") or closed ("false").

<button type="button"
aria-expanded="true">
Menu
</button>
HTMLAttribute

aria-hidden

With true, hides an element from screen readers. It is used for pure decoration.

<span aria-hidden="true">›</span>
HTMLAttribute

aria-label

Gives an element a name that screen readers say out loud.

<button aria-label="Toggle menu">
<span></span>
</button>
HTMLAttribute

aria-labelledby

Points to the id of another element whose text should be used as this element's accessible name for screen readers.

<dialog open aria-labelledby="msg-title">
<h2 id="msg-title">Saved</h2>
</dialog>
HTMLAttribute

as

On a preload link, says what kind of file is loaded early, like image.

<link rel="preload" as="image"
href="live.webp">
HTMLAttribute

async

A boolean attribute on <script> that downloads the file in parallel and runs it as soon as it is ready, without guaranteeing order.

<script src="js/stats.js" async></script>
HTMLAttribute

charset

Sets the character set of the page. UTF-8 lets letters like ü and signs like · show up correctly.

<meta charset="UTF-8">
HTMLAttribute

checked

A boolean attribute that makes a checkbox or radio button start selected when the page loads.

<input type="checkbox" name="news" checked>
HTMLAttribute

cite

Gives a URL: the source of a quote in <blockquote> or <q>, or a page explaining the change in <del> or <ins>. Browsers do not display it as a visible link by default.

<blockquote cite="https://example.com/tips">
<p>Practice slowly.</p>
</blockquote>
HTMLAttribute

class

A reusable label that CSS and scripts use to style or find elements.

<div class="player">...</div>
HTMLAttribute

colspan

Makes one table cell stretch across several columns. The number says how many.

<td colspan="3">Trial lesson free</td>
HTMLAttribute

content

On a <meta> tag, holds the value of the setting.

<meta name="description"
content="About this page.">
HTMLAttribute

controls

Shows the browser's built-in play controls for <video> or <audio>, which look different in each browser. It needs no value.

<video controls src="clip.mp4">
</video>
HTMLAttribute

datetime

The machine-readable value of a <time> element, like 2026-11-02. It is not shown on the page.

<time datetime="2026-11-02">
2 November 2026
</time>
HTMLAttribute

defer

On a normal <script> that loads a file with src and has no async, defer makes the browser run the script only after the whole page has been read. Several such scripts then run in the order they appear.

<script src="menu.js" defer></script>
HTMLAttribute

disabled

Switches a field off so nobody can use it, and browsers usually show it greyed out. A disabled field is left out when the form is sent.

<input name="city" value="Bern" disabled>
HTMLAttribute

download

Asks the browser to save the linked same-site file instead of opening it in the tab. You can give it a value to suggest a file name.

<a href="files/chords.pdf" download>
Chord chart (PDF)
</a>
HTMLAttribute

fetchpriority

A hint for how urgent a file is. high asks the browser to fetch it early.

<img src="hero.webp"
fetchpriority="high">
HTMLAttribute

for

Links a <label> to the field whose id has exactly the same value.

<label for="email">E-mail</label>
HTMLAttribute

form

Links a button or form field to a <form> with the matching id, even when the control sits outside the <form> tags.

<button type="submit" form="booking">Send</button>
HTMLAttribute

headers

Lists one or more space-separated id values of <th> elements that label a table cell.

<td headers="h-room">Room 2</td>
HTMLAttribute

height

The height of an image in pixels. Together with width it stops the page from jumping.

<img src="cover.webp"
width="600" height="600">
HTMLAttribute

hidden

Hides an element by default, and any value, even hidden="false", still hides it. CSS can still make it visible, and hidden="until-found" lets some browsers reveal the text when you search the page.

<p hidden>Secret note</p>
HTMLAttribute

href

The address a link points to. It can be a full URL, a path or a #id.

<a href="about.html">About</a>
HTMLAttribute

id

A unique name for one element on the page. Jump links use it with #.

<section id="faq">...</section>
HTMLAttribute

inert

Makes an element and everything inside it non-interactive: clicks, Tab focus and screen readers skip it. By default, the content stays visible on screen.

<main inert>
<a href="booking.html">Book</a>
</main>
HTMLAttribute

kind

On <track>, says what type of timed text the file contains, such as captions, subtitles or chapters.

<track kind="captions"
src="captions-en.vtt" srclang="en">
HTMLAttribute

label

On <track>, sets the readable name shown in the player's caption menu. <optgroup> and <option> also use label for the text shown in a menu.

<track kind="captions"
src="subs-en.vtt" label="English">
HTMLAttribute

lang

Names the human language of the text, like en for English or de-CH for Swiss German.

<html lang="en">
HTMLAttribute

list

Connects an <input> to a <datalist> with the matching id so the browser can offer suggestions.

<input name="style" list="styles">
HTMLAttribute

loading

Says when an image should load. lazy waits until it is near the screen.

<img src="cover.webp"
loading="lazy">
HTMLAttribute

max

Sets the highest allowed value on inputs such as type="number", type="range" or type="date".

<input type="range" min="0" max="10">
HTMLAttribute

maxlength

Limits the maximum number of characters a visitor can enter into a text <input> or <textarea>.

<input type="text" name="code" maxlength="8">
HTMLAttribute

media

Tells the browser which output type or screen condition a <link> or <source> applies to, such as print or a screen width.

<link rel="stylesheet" href="print.css"
media="print">
HTMLAttribute

method

How a form sends its data. Without it the form uses get and puts the fields into the address.

<form method="post">
HTMLAttribute

min

Sets the lowest allowed value on inputs such as type="number", type="range" or type="date".

<input type="number" min="6" name="age">
HTMLAttribute

minlength

Sets the minimum number of characters allowed in text inputs and <textarea>. It does not apply to type="number".

<input type="text" minlength="3" name="user">
HTMLAttribute

name

On a <meta> tag, says which setting this is, like viewport or description.

<meta name="viewport"
content="width=device-width">
HTMLAttribute

novalidate

Tells the browser to skip its field checks when the form is submitted. The form is then sent even with empty or wrongly formatted fields.

<form action="/contact" novalidate>
HTMLAttribute

open

Shows a <dialog> or unfolds a <details> box. It is on/off: if it is there at all, even as open="false", the box starts open.

<dialog open>…</dialog>
<details open>…</details>
HTMLAttribute

pattern

A regular expression that the whole value of a text <input> must match; if the field is not empty and does not match, the browser blocks the form when it is submitted.

<input type="text" name="zip" pattern="[0-9]{4}">
HTMLAttribute

placeholder

A grey hint inside an empty field. It disappears while you type, so it is no replacement for a <label>.

<input type="tel" placeholder="Optional">
HTMLAttribute

popover

Turns an element into a popover box that starts hidden and opens on top of the page when triggered. Without a value it behaves like popover="auto".

<div id="tip" popover>
<p>Tune up to the note.</p>
</div>
HTMLAttribute

popovertarget

Connects a <button> to a popover element using its plain id (without #), so tapping the button toggles the popover without JavaScript.

<button type="button"
popovertarget="tip">
Tip
</button>
HTMLAttribute

popovertargetaction

Chooses what a popovertarget button does: "toggle" (default), "show" or "hide".

<button type="button"
popovertarget="note"
popovertargetaction="hide">
Close
</button>
HTMLAttribute

poster

Sets a preview image that <video> shows before playback starts. Without it, browsers typically show a video frame or an empty box.

<video controls poster="cover.jpg"
src="lesson.mp4">
</video>
HTMLAttribute

property

Used on <meta> for Open Graph tags like og:title. Apps that build link previews read it; the browser does not show it.

<meta property="og:title"
content="Guitar Lessons">
HTMLAttribute

readonly

Stops the user from editing a form field's value while still sending that value when the form is submitted.

<input type="text" name="plan" value="trial" readonly>
HTMLAttribute

rel

Says what kind of connection a link is, like stylesheet, icon or noopener.

<link href="main.css"
rel="stylesheet">
HTMLAttribute

required

Marks a field as required. By default, the browser will not send the form while a required field is empty or a required checkbox is not ticked.

<input type="email" name="email" required>
HTMLAttribute

reversed

A boolean attribute on <ol> that makes the list count downward instead of upward. Without start, it begins at the total number of items.

<ol reversed>
<li>Step 2</li>
<li>Step 1</li>
</ol>
HTMLAttribute

rows

Sets the visible height of a <textarea> in lines of text.

<textarea name="msg" rows="4"></textarea>
HTMLAttribute

rowspan

Makes a <td> or <th> table cell stretch down across the given number of rows.

<td rowspan="2">Monday</td>
HTMLAttribute

sandbox

On <iframe>, turns on extra security restrictions for the embedded page. Space-separated keywords like allow-scripts lift specific restrictions.

<iframe src="https://example.com/tuner"
title="Tuner" sandbox="allow-scripts">
</iframe>
HTMLAttribute

scope

Tells browsers and screen readers whether a <th> heading applies to a column (col) or a row (row).

<th scope="col">Price</th>
HTMLAttribute

selected

Marks an <option> as chosen when the page loads. In a normal dropdown, put it on only one option.

<option selected>Intermediate</option>
HTMLAttribute

size

Sets the visible width of a text <input> in characters, or the number of visible rows in a <select>, without limiting typed length.

<input type="text" name="code" size="8">
HTMLAttribute

sizes

On an icon link, says which picture sizes the file has.

<link rel="icon"
href="/favicon.ico" sizes="any">
HTMLAttribute

src

Source: the file to load, for example an image or the page inside an <iframe>.

<img src="nemesis.webp" alt="Cover">
HTMLAttribute

srclang

On <track>, gives the language code of the text track file, such as en or de. It is required when kind="subtitles".

<track kind="subtitles"
src="subs-en.vtt" srclang="en">
HTMLAttribute

srcset

Lists the image file (or files) a <source> or <img> can use. Inside <picture>, every <source> needs it.

<source srcset="a.webp"
type="image/webp">
HTMLAttribute

start

Sets the starting number of an <ol> ordered list. Useful when a numbered list continues from an earlier section.

<ol start="4">
<li>Fourth step</li>
</ol>
HTMLAttribute

tabindex

Controls whether an element can receive keyboard focus. tabindex="0" adds it to the normal Tab order, while tabindex="-1" removes it from Tab order while still allowing JavaScript to focus it.

<section tabindex="0">…</section>
<a href="lessons.html" tabindex="-1">…</a>
HTMLAttribute

target

Says where a link opens. _blank means a new tab or window.

<a href="https://example.com"
target="_blank">Shop</a>
HTMLAttribute

title

Gives an element a name. On an <iframe>, screen readers use it to say what the window shows.

<iframe src="https://example.com/player"
title="Music player">
</iframe>
HTMLAttribute

type

Says what kind of element this is. On a button, button means it never sends a form.

<button type="button">Menu</button>
HTMLAttribute

value

For a text field, it is the text that is filled in when the page loads. For a checkbox or radio button, it is the data sent when that box is ticked.

<input type="radio" name="length" value="45">
HTMLAttribute

width

The width of an image in pixels. It lets the browser keep the right space before the image arrives.

<img src="cover.webp"
width="600" height="600">
HTMLSpecial character

&amp;

Shows an & sign. It is the safe way to write & in HTML.

<p>Bands &amp; Releases</p>
HTMLSpecial character

&copy;

Shows the copyright sign ©.

<p>&copy; 2026 Max Muster</p>
HTMLSpecial character

&gt;

HTML entity for the > (greater-than) character. Use it together with &lt; to display HTML tags as plain text.

<p>Write <code>&lt;br&gt;</code> for a line break.</p>
HTMLSpecial character

&lt;

HTML entity for the < (less-than) character. Use it when you want < to appear as text instead of starting a tag.

<p>Write <code>&lt;br&gt;</code> for a line break.</p>
HTMLSpecial character

&middot;

Shows a middle dot ·, often used to separate words.

<p>Guitarist &middot; Teacher</p>
HTMLSpecial character

&nbsp;

A non-breaking space. By default it does not shrink like normal spaces, and the line does not break at it.

<p>45&nbsp;min</p>
HTMLSpecial character

&times;

The HTML entity for the multiplication sign ×, often used as a close icon on buttons.

<button aria-label="Close">&times;</button>
HTMLSyntax

../

In a path, ../ means go up one folder before looking for the file.

<link href="../assets/css/main.css"
rel="stylesheet">
HTMLSyntax

./

In a path, ./ means the folder of the current page.

<a href="./">Home</a>
HTMLSyntax

""

Quotes wrap an attribute value. Every opening quote needs a closing quote, or the value runs into the rest of the code.

<a href="lessons.html">Lessons</a>
HTMLSyntax

[0-9]{4}

In a pattern, [0-9] means one digit and {4} means exactly four of them, so the whole value must be four digits.

<input name="zip" pattern="[0-9]{4}">
HTMLSyntax

/

A path that starts with a single / begins at the top address of the website, like /favicon.ico. href="/" links to that top address, which is usually, but not always, the home page.

<a href="/">Home</a>
<link rel="icon" href="/favicon.ico">
HTMLSyntax

#

At the start of a link, # means jump to the element with this id on the same page.

<a href="#faq">FAQ</a>
<section id="faq">...</section>
HTMLSyntax

<!-- -->

A comment: a note for developers between <!-- and -->. The browser does not show it, but anyone can read it in the page source.

<!-- main menu: start -->
<nav>...</nav>
HTMLSyntax

<!DOCTYPE>

The first line of an HTML file. It tells the browser to use modern HTML rules.

<!DOCTYPE html>
<html lang="en">
HTMLSyntax

800w

In srcset, a number followed by w tells the browser how many pixels wide that image file is. It is used together with sizes.

<img src="a-400.jpg"
srcset="a-400.jpg 400w, a-800.jpg 800w"
sizes="100vw" alt="">
HTMLSyntax

https://

The start of a full web address that uses a secure HTTPS connection, like https://example.org/. A link without a scheme such as https://, mailto: or tel: is read as a path relative to the current page.

<a href="https://example.org">Partner</a>
HTMLSyntax

mailto:

Starts a link that asks the device to write a new e-mail to the address after it. Without it, the address is treated like the name of a page on the website.

<a href="mailto:[email protected]">
Write to us
</a>
HTMLSyntax

tel:

Starts a link that asks the device to call the number after it, and the phone may ask you to confirm first. Write the number with +, the country code and no spaces.

<a href="tel:+12025550123">
Call us
</a>
HTMLTag

<a>

A link. Its href says where it goes.

<a href="blog/">Blog</a>
HTMLTag

<abbr>

Marks an abbreviation. Put the full words in its title attribute.

<abbr title="beats per minute">BPM</abbr>
HTMLTag

<address>

Marks contact or location information.

<address>Musterstadt</address>
HTMLTag

<article>

A self-contained piece of content, like a blog post or a card.

<article>
<h3>Musterstadt</h3>
<p>Lessons here.</p>
</article>
HTMLTag

<aside>

Holds side content related to the main text, such as related links or a tip box. Without CSS, it displays as a normal block rather than a side column.

<aside>
<h2>Related</h2>
<a href="chords.html">Chords</a>
</aside>
HTMLTag

<audio>

Plays sound on the page. Add controls to show the browser's built-in play buttons.

<audio controls src="song.mp3">
Your browser cannot play audio.
</audio>
HTMLTag

<b>

Draws attention to a word or phrase in bold by default without adding strong importance.

<p>Key term: <b>pentatonic</b>.</p>
HTMLTag

<base>

Normally sets, through its href, the address that relative links on the page start from. A page may have only one <base>, inside <head>.

<base href="https://example.com/lessons/">
HTMLTag

<blockquote>

A quote from another source, set apart from the text. Browsers indent it by default.

<blockquote>
<p>Play it slowly first.</p>
</blockquote>
HTMLTag

<body>

Holds everything visitors see on the page.

<body>
<h1>Hello</h1>
</body>
HTMLTag

<br>

Forces a line break inside text. It has no closing tag.

<h1>MAX<br>MUSTER</h1>
HTMLTag

<button>

Something you press to do an action on the current page. A script usually decides what it does.

<button type="button">Menu</button>
HTMLTag

<caption>

The title of a table. It goes right after <table>, and browsers show it above the table by default.

<table>
<caption>Lesson prices</caption>
</table>
HTMLTag

<code>

Marks a piece of computer code. Browsers show it in a monospace font by default.

<p>Use <code>&lt;br&gt;</code>.</p>
HTMLTag

<datalist>

Holds a list of suggested <option> values for an <input> linked to it by list and id.

<datalist id="styles">
<option value="Blues"></option>
</datalist>
HTMLTag

<dd>

A description inside a <dl>, written after the term it describes. Browsers indent it by default.

<dl>
<dt>Price</dt>
<dd>CHF 80</dd>
</dl>
HTMLTag

<del>

Marks text that was removed from a document. Browsers draw a line through it by default.

<p><del>CHF 90</del> <ins>CHF 75</ins></p>
HTMLTag

<details>

A built-in fold-out box. Its content stays hidden until you open it.

<details>
<summary>Question?</summary>
<p>Answer.</p>
</details>
HTMLTag

<dialog>

A pop-up box. By default it is hidden until it has the open attribute or a script opens it.

<dialog open>
<p>Saved!</p>
</dialog>
HTMLTag

<div>

A plain box that groups other elements. It has no meaning of its own.

<div class="player">
...
</div>
HTMLTag

<dl>

A description list. It holds terms (<dt>) and their descriptions (<dd>).

<dl>
<dt>Price</dt>
<dd>CHF 80</dd>
</dl>
HTMLTag

<dt>

A term inside a <dl>. The description after it goes in a <dd>.

<dl>
<dt>Price</dt>
<dd>CHF 80</dd>
</dl>
HTMLTag

<em>

Marks a word you would stress when you speak. Browsers show it in italics by default.

<p>The <em>feel</em> matters.</p>
HTMLTag

<fieldset>

Groups related form fields, often a set of radio buttons, inside a box.

<fieldset>
<legend>Lesson length</legend>
</fieldset>
HTMLTag

<figcaption>

The caption of a <figure>. It must be the first or last thing inside the <figure>.

<figure>
<img src="a.jpg" alt="A photo">
<figcaption>A caption</figcaption>
</figure>
HTMLTag

<figure>

Groups a picture, chart or code example with its caption. The browser indents it a little by default.

<figure>
<img src="a.jpg" alt="A photo">
<figcaption>A caption</figcaption>
</figure>
HTMLTag

<footer>

The bottom part of a page or section, often with copyright and contact details.

<footer>
<p>&copy; 2026 Max Muster</p>
</footer>
HTMLTag

<form>

A form groups fields and sends what people typed when they tap its submit button.

<form action="/contact" method="post">
...
</form>
HTMLTag

<h1>

The main heading of a page. Browsers show it big and bold, and a page usually has one.

<h1>Max Muster</h1>
HTMLTag

<h2>

A level-2 heading, like a chapter under the main <h1>.

<h2>Four common mistakes</h2>
HTMLTag

<h3>

A level-3 heading, a part inside an <h2> chapter.

<h2>Locations</h2>
<h3>Musterstadt</h3>
HTMLTag

<h4>

A level-4 heading, a part inside an <h3> section.

<h3>Mistakes</h3>
<h4>Mistake 1</h4>
HTMLTag

<h5>

A level-5 heading, a part inside an <h4> section. It is rarely needed.

<h4>Details</h4>
<h5>Size</h5>
HTMLTag

<h6>

The smallest heading level, a part inside an <h5> section.

<h5>Size</h5>
<h6>Note</h6>
HTMLTag

<head>

Holds information about the page, like the title and the character set. Visitors do not see it on the page.

<head>
<meta charset="UTF-8">
<title>My page</title>
</head>
HTMLTag

<header>

Groups the intro part of a page or section, often a heading, logo or menu. It shows as a plain block by default and does not have to be at the top.

<header>
<a href="/">Max Muster</a>
</header>
HTMLTag

<html>

The box around the whole page. It holds <head> and <body>.

<html lang="en">
...
</html>
HTMLTag

<i>

Sets off a technical term, a foreign word or a thought in italics by default without adding spoken stress.

<p>Play the riff <i>legato</i>.</p>
HTMLTag

<iframe>

A window that shows another web page inside yours, like a video or music player.

<iframe src="https://example.com/player"
title="Music player">
</iframe>
HTMLTag

<img>

Shows an image. It has no closing tag.

<img src="nemesis.webp"
alt="Album cover Nemesis"
width="600" height="600">
HTMLTag

<input>

A form field. Its type decides what kind of field it is, and it has no closing tag.

<input type="text" id="name" name="name">
HTMLTag

<ins>

Marks text that was added to a document. Browsers underline it by default.

<p><del>CHF 90</del> <ins>CHF 75</ins></p>
HTMLTag

<kbd>

Marks user input such as keyboard keys or voice commands. Browsers show it in a monospace font by default.

<p>Press <kbd>Ctrl</kbd> + <kbd>S</kbd>.</p>
HTMLTag

<label>

The visible name of a form field. Tapping it usually puts the cursor in its field or ticks its checkbox.

<label for="email">E-mail</label>
<input id="email">
HTMLTag

<legend>

The title of a <fieldset>. It is shown on the box's top edge.

<fieldset>
<legend>Lesson length</legend>
</fieldset>
HTMLTag

<li>

One item in a <ul> or <ol> list.

<ul>
<li>German or English</li>
</ul>
HTMLTag

<link>

Connects the page to another file, like a CSS file or a tab icon. It has no closing tag.

<link href="css/landing.css"
rel="stylesheet">
HTMLTag

<main>

Wraps the main content of this page. A page should have only one visible <main>.

<main>
<h1>Guitar lessons</h1>
</main>
HTMLTag

<mark>

Highlights text that is relevant right now, such as a search match or key date. Browsers show it with a yellow background by default.

<p>Next slot: <mark>Friday</mark></p>
HTMLTag

<meta>

One setting or fact about the page, placed in the head. It has no closing tag.

<meta charset="UTF-8">
<meta name="description"
content="About this page.">
HTMLTag

<nav>

A block of navigation links, like a menu.

<nav>
<a href="./">Home</a>
<a href="blog/">Blog</a>
</nav>
HTMLTag

<noscript>

Holds content for visitors who have JavaScript turned off. When JavaScript is on, the browser does not display it.

<noscript>
<p>Turn on JavaScript.</p>
</noscript>
HTMLTag

<ol>

An ordered list. Browsers number its items automatically.

<ol>
<li>Tune up.</li>
<li>Measure.</li>
</ol>
HTMLTag

<optgroup>

Groups related <option> items inside a <select> menu under a non-selectable heading.

<optgroup label="Guitar">
<option value="ac">Acoustic</option>
</optgroup>
HTMLTag

<option>

One choice inside a <select> menu.

<option value="pro">Advanced</option>
HTMLTag

<p>

A paragraph of text. Line breaks inside the code are shown as a single space.

<p>Kids, teens and adults.</p>
HTMLTag

<picture>

Offers the browser several versions of one image to choose from. The <img> inside it draws the image and is the fallback.

<picture>
<source srcset="a.webp" type="image/webp">
<img src="a.jpg" alt="A photo">
</picture>
HTMLTag

<pre>

Preformatted text. By default it keeps the spaces and line breaks of its text and uses a monospace font.

<pre>Am F
1 2 3 4 1 2</pre>
HTMLTag

<q>

A quote inside a sentence. Browsers add the quotation marks by default.

<p>He said <q>Relax.</q></p>
HTMLTag

<s>

Marks text that is no longer accurate or current, such as an old price. Browsers draw a line through it by default.

<p><s>CHF 90</s> CHF 75</p>
HTMLTag

<samp>

Marks sample output from a program, computer or device. Browsers show it in a monospace font by default.

<p>Output: <samp>Saved</samp></p>
HTMLTag

<script>

Normally loads or contains JavaScript. Without defer, async or type="module", an external script makes the browser stop reading the page until it has loaded and run.

<script src="menu.js"></script>
HTMLTag

<section>

A themed chapter of a page, usually with its own heading.

<section id="faq">
<h2>FAQ</h2>
</section>
HTMLTag

<select>

A menu of choices, usually shown as a dropdown. Its choices are <option> elements.

<select name="level">
<option>Beginner</option>
</select>
HTMLTag

<small>

Marks side comments and fine print, such as copyright notices or disclaimers. Browsers show it in smaller text by default.

<p><small>&copy; 2026 Max Muster</small></p>
HTMLTag

<source>

One choice of file inside <picture>, <video> or <audio>. Inside <picture>, it lists its image file or files in srcset.

<source srcset="a.webp"
type="image/webp">
HTMLTag

<span>

A plain inline box around a bit of text. It has no meaning of its own.

<span aria-hidden="true">›</span>
HTMLTag

<strong>

Marks important text. Browsers show it in bold by default.

<p>I am <strong>Max</strong>.</p>
HTMLTag

<style>

Holds CSS rules written directly inside an HTML document, usually in <head>. To load an external .css file, use <link rel="stylesheet" href="…"> instead.

<style>
h1 { color: navy; }
</style>
HTMLTag

<sub>

Marks subscript text, lowered below the line in smaller type by default. Often used for formulas or musical pitch names.

<p>Tune A<sub>4</sub> to 440 Hz.</p>
HTMLTag

<summary>

The always-visible line of a <details> box. Tapping it opens or closes the box.

<details>
<summary>Question?</summary>
</details>
HTMLTag

<sup>

Marks superscript text, raised above the line in smaller type by default. Often used for ordinals, exponents and footnotes.

<p>Press the 5<sup>th</sup> fret.</p>
HTMLTag

<table>

A table shows data in rows and columns. It holds rows made with <tr>.

<table>
<tr><td>1</td></tr>
</table>
HTMLTag

<tbody>

The group of data rows in a table. If you write <tr> rows straight inside <table> in an HTML file, the browser wraps them in a <tbody> for you.

<tbody>
<tr><td>1/2</td></tr>
</tbody>
HTMLTag

<td>

A normal data cell in a table row.

<tr><td>1/2</td><td>5 to 8</td></tr>
HTMLTag

<template>

Normally holds HTML that is not shown. Scripts can copy it into the page.

<template id="row">
<li>Band A</li>
</template>
HTMLTag

<textarea>

A multi-line text box in a form. Any starting text goes between <textarea> and </textarea>, not in a value attribute.

<textarea name="msg" rows="4">Hello!</textarea>
HTMLTag

<th>

A heading cell in a table. Browsers show it bold and centred by default.

<tr><th>Size</th><th>Age</th></tr>
HTMLTag

<thead>

The group of heading rows at the top of a table.

<thead>
<tr><th>Size</th></tr>
</thead>
HTMLTag

<time>

Marks a date, time or duration. Machines read the exact value from datetime, or from the text if it uses a format like 2026-11-02.

<time datetime="2026-11-02">
2 November 2026
</time>
HTMLTag

<title>

The text in the browser tab and often the headline in search results. It needs a closing </title>.

<title>Imprint | Max Muster</title>
HTMLTag

<tr>

A table row. It holds the cells <th> and <td>.

<tr>
<td>30 min</td><td>CHF 40</td>
</tr>
HTMLTag

<track>

Adds timed text such as captions or subtitles from a .vtt file to a <video> or <audio> element. It is a void tag with no closing tag.

<track kind="captions"
src="video/tuning-en.vtt"
srclang="en" label="English">
HTMLTag

<u>

Adds an underline by default to mark a non-textual note such as a misspelled word.

<p>Watch out for <u>rythm</u>.</p>
HTMLTag

<ul>

An unordered list. Browsers show its items with bullet points by default.

<ul>
<li>Kids</li>
<li>Adults</li>
</ul>
HTMLTag

<var>

Marks the name of a variable or placeholder in math or code. Browsers show it in italic text by default.

<p>Set <var>bpm</var> to 90.</p>
HTMLTag

<video>

Shows a video on the page. Text inside it is only for very old browsers.

<video controls src="clip.mp4">
Your browser cannot play video.
</video>
HTMLTag

<wbr>

An empty tag with no closing tag that marks a place where the browser may break a long word or URL. The browser only breaks there if the line runs out of space.

<p>example.com/<wbr>beginner-chords</p>
HTMLValue

_blank

A target value that opens the link in a new tab or window.

<a href="https://example.com"
target="_blank">Shop</a>
HTMLValue

A

Used on <ol type="A"> to label list items with uppercase letters (A, B, C) instead of numbers.

<ol type="A">
<li>First</li>
<li>Second</li>
</ol>
HTMLValue

allow-scripts

A sandbox keyword on <iframe> that allows JavaScript inside the embedded page to run while other sandbox restrictions stay active.

<iframe src="https://example.com/tuner"
title="Tuner" sandbox="allow-scripts">
</iframe>
HTMLValue

apple-touch-icon

A rel value for the icon used when someone saves the page to an iPhone home screen.

<link rel="apple-touch-icon"
href="/apple-touch-icon.png">
HTMLValue

button

A type value for a plain button that never sends a form.

<button type="button">Menu</button>
HTMLValue

canonical

A value for rel on <link> that names the preferred main URL of a page for search engines. Useful when the same page can be reached at more than one address.

<link rel="canonical"
href="https://example.com/lessons/">
HTMLValue

captions

A kind value on <track> for a text transcript of spoken words plus important sound effects, meant for viewers who cannot hear the audio.

<track kind="captions"
src="tuning-en.vtt" srclang="en">
HTMLValue

checkbox

A small box you can tick on or off. It is only sent when it is ticked.

<input type="checkbox" id="news" name="news">
HTMLValue

col

A value for scope on <th> that marks the cell as a heading for the cells in its column.

<th scope="col">Day</th>
HTMLValue

date

An <input> type for picking a calendar date (year, month and day) using the browser's date control.

<input type="date" name="day">
HTMLValue

de

Language code for German, used in lang to mark text as German.

<span lang="de">Gitarre</span>
HTMLValue

description

A meta name for a short summary of the page. Search engines may show it under the title.

<meta name="description"
content="About this page.">
HTMLValue

device-width

Means the real width of the screen. Phones then lay out the page to fit.

<meta name="viewport"
content="width=device-width">
HTMLValue

dialog

As a form method, sending the form closes the <dialog> around it instead of sending data.

<form method="dialog">
<button>OK</button>
</form>
HTMLValue

email

A field for an e-mail address. By default, when the form is submitted, the browser checks that typed text is written like an e-mail address.

<input type="email" name="email">
HTMLValue

external

A rel keyword indicating that a link points to a page on a different website.

<a href="https://example.org" rel="external">Partner</a>
HTMLValue

false

A word some attributes accept as a value. On an on/off attribute such as open, writing "false" still switches it on.

<details open="false">…</details>
HTMLValue

get

A <form> method value (and the default) that adds form data to the URL query string after a ?.

<form action="/search" method="get">
HTMLValue

hide

Used with popovertargetaction="hide" so tapping the button only closes the linked popover and never opens it.

<button type="button"
popovertarget="note"
popovertargetaction="hide">
Got it
</button>
HTMLValue

high

A fetchpriority value that asks the browser to fetch the file early.

<img src="hero.webp" fetchpriority="high">
HTMLValue

icon

A rel value for the small picture shown in the browser tab.

<link rel="icon" href="/favicon.ico">
HTMLValue

image

A value for the as attribute on <link rel="preload"> telling the browser that the preloaded file is an image.

<link rel="preload" as="image"
href="img/live.webp">
HTMLValue

image/avif

The file type of an AVIF image. Browsers that cannot show AVIF skip a <source> with this type.

<source srcset="a.avif"
type="image/avif">
HTMLValue

image/jpeg

The file type of a JPEG image. Every modern browser supports it.

<source srcset="hero.jpg"
type="image/jpeg">
HTMLValue

image/png

Tells the browser that the linked file is a PNG picture. You often see it on favicon links.

<link rel="icon" type="image/png"
href="/icon-48.png">
HTMLValue

image/webp

The file type of a WebP image. Browsers that cannot show WebP skip a <source> with this type.

<source srcset="a.webp"
type="image/webp">
HTMLValue

initial-scale

The zoom level when the page first opens. 1.0 means no zoom.

<meta name="viewport"
content="width=device-width, initial-scale=1.0">
HTMLValue

lazy

A loading value that waits to load the image until it is near the screen.

<img src="cover.webp" loading="lazy">
HTMLValue

manual

Used with popover="manual" so the popover does not close when you tap outside or press Escape; it only closes when triggered explicitly.

<div id="note" popover="manual">
<p>Important notice.</p>
</div>
HTMLValue

module

A type value on <script> that loads JavaScript as an ES module and defers execution until after HTML parsing by default.

<script type="module" src="js/player.js"></script>
HTMLValue

nofollow

A rel keyword telling search engines that the author does not endorse the linked page.

<a href="https://example.org" rel="nofollow">Sponsor</a>
HTMLValue

noindex

A value inside <meta name="robots" content="…"> that asks search engines not to list the page in search results. Visitors with the direct link can still open the page.

<meta name="robots" content="noindex">
HTMLValue

noopener

A rel value that stops the new tab from controlling your page.

<a href="https://example.com"
target="_blank" rel="noopener">Shop</a>
HTMLValue

noreferrer

A rel value that hides which page the visitor came from.

<a href="https://example.com"
rel="noreferrer">Shop</a>
HTMLValue

number

A field meant for a number. Many browsers add small up and down arrows to it.

<input type="number" name="count">
HTMLValue

og:image

Suggests a picture for link previews in apps that support Open Graph. Use a full https:// address; each app decides whether to show it.

<meta property="og:image"
content="https://example.com/live.jpg">
HTMLValue

og:title

Suggests a title for link previews in apps that support Open Graph. It does not change the browser tab.

<meta property="og:title"
content="Guitar Lessons">
HTMLValue

page

An aria-current value that means this is the page you are on.

<span aria-current="page">Blog</span>
HTMLValue

password

An <input> type that hides typed characters on screen, usually as dots, so people nearby cannot read them.

<input type="password" name="pass">
HTMLValue

post

Sends form data inside the request instead of in the address bar. This alone does not make the data secret or encrypted.

<form method="post">
HTMLValue

preload

A rel value that asks the browser to start loading an important file early.

<link rel="preload" as="image"
href="live.webp">
HTMLValue

print

A value for the media attribute that applies styles only when printing the page or viewing print preview.

<link rel="stylesheet" href="print.css"
media="print">
HTMLValue

radio

A round button for picking one choice. Normally, radio buttons in the same form with the same name form a group where only one can be on.

<input type="radio" name="length" value="30">
HTMLValue

range

An <input> type that shows a draggable slider for picking a number between min and max.

<input type="range" min="0" max="10">
HTMLValue

reset

A button that puts every field of the form back to its starting value without sending anything.

<button type="reset">Clear</button>
HTMLValue

robots

A value for name on <meta> that gives indexing instructions to search engine crawlers. The actual instructions go in the content attribute.

<meta name="robots" content="noindex">
HTMLValue

row

A value for scope on <th> that marks the cell as a heading for the cells in its row.

<th scope="row">Monday</th>
HTMLValue

stylesheet

A rel value that says the linked file is the page design (CSS).

<link href="main.css"
rel="stylesheet">
HTMLValue

submit

A button that sends the form. It is the default for a <button> inside a form.

<button type="submit">Send</button>
HTMLValue

subtitles

A kind value on <track> for a text translation of spoken dialogue. HTML requires srclang whenever kind="subtitles" is used.

<track kind="subtitles"
src="chords-en.vtt" srclang="en">
HTMLValue

tel

A field for a phone number. Many phones show a number keypad for it, but the browser does not check the number's format.

<input type="tel" name="phone">
HTMLValue

text

A plain one-line text field. It is also what you get when type is missing or misspelled.

<input type="text" name="name">
HTMLValue

true

Means yes or on. aria-hidden="true" means hidden from screen readers.

<span aria-hidden="true">›</span>
HTMLValue

UTF-8

The most common character set. It can show letters and signs from almost every language.

<meta charset="UTF-8">
HTMLValue

video/mp4

The file type of an MP4 video. It is widely used as a fallback <source> inside <video>.

<source src="lesson.mp4"
type="video/mp4">
HTMLValue

video/webm

The file type of a WebM video. Browsers that cannot play WebM skip a <source> with this type.

<source src="lesson.webm"
type="video/webm">
HTMLValue

viewport

The visible area of the page. The viewport meta tag tells phones how wide to lay out the page.

<meta name="viewport"
content="width=device-width, initial-scale=1.0">