Advanced Text Semantics
Mark up quotations, abbreviations, dates, code, edits, and contact details accurately.
HTML has elements for common kinds of text. Using them preserves meaning when styles change and gives tools better information.
Quotes, terms, and time
article.html
<blockquote cite="https://example.com/source">
<p>The web is for everyone.</p>
</blockquote>
<p><abbr title="Cascading Style Sheets">CSS</abbr> controls presentation.</p>
<p>Published <time datetime="2026-08-13">August 13, 2026</time>.</p>
<p><dfn>Semantic HTML</dfn> is markup chosen for meaning.</p>
Use q for an inline quotation and blockquote for a block quotation. Machine-readable datetime values make visible date formats unambiguous.
Code, edits, and contact information
notes.html
<p>Run <kbd>Ctrl</kbd> + <kbd>K</kbd>, then enter <code>grid</code>.</p>
<pre><code>const ready = true;</code></pre>
<p><del>Draft</del> <ins>Reviewed</ins></p>
<address><a href="mailto:editor@example.com">Course editor</a></address>
Keep this
Use specialized text elements when they genuinely describe the content; do not choose them only for their browser styling.
学习位置已保存在此设备上。