Formatting & Quotations
Text Formatting
<b>Bold text</b>
<strong>Important text</strong>
<i>Italic text</i>
<em>Emphasized text</em>
<mark>Highlighted text</mark>
<small>Smaller text</small>
<del>Deleted text</del>
<ins>Inserted text</ins>
<sub>Subscript</sub> and <sup>Superscript</sup>
<b>is purely visual bold;<strong>also tells screen readers/search engines "this is important" — prefer<strong><i>is purely visual italics;<em>means "emphasize this" and is read differently by screen readers — prefer<em>
Quotation Elements
<blockquote cite="https://source.com">
A long quotation, set apart as its own block.
</blockquote>
<p>She said <q>this is a short inline quote</q> during the call.</p>
<p><abbr title="HyperText Markup Language">HTML</abbr> is easy to learn.</p>
<address>
Written by Start Your Path<br>
support@goswamidigitalworld.com
</address>
<blockquote>— a longer quote, browsers indent it by default<q>— a short inline quote, browsers add quotation marks automatically<abbr>— an abbreviation; thetitleshows on hover<address>— contact info for the page's author
Comments
Comments let you leave notes in your code that the browser ignores completely.
<!-- This is a comment, the browser skips it -->
<p>This paragraph is visible.</p>
Useful for explaining unusual code, temporarily disabling a block while testing, or marking sections in a long file. Note: comments are visible in "View Source" — never put sensitive info in them.