<p>Water is written as H<sub>2</sub>O, and x squared is written as x<sup>2</sup>.</p>
<code>console.log('Hello, World!');</code>
<pre>
Line 1
Line 2
Line 3
</pre>
<p>This is some code: <code>console.log('Hello, World!');</code></p>
<pre>
This is preformatted text
that preserves spaces and
line breaks.
</pre>
<mark>This text is highlighted</mark>
<p>This is <mark>highlighted</mark> text.</p>
<small>This is small text</small>
<p>This is <small>small</small> text.</p>
<q>This is an inline quote.</q>
<blockquote>This is a block-level quotation.</blockquote>
<cite>— Author Name</cite>
<p>She said, <q>This is an inline quote</q>.</p>
<blockquote>This is a block-level quote, often used for long quotations from a book or article.</blockquote>
<cite>— Famous Author</cite>
<!DOCTYPE html>
<html>
<head>
<title>Text Formatting in HTML</title>
</head>
<body>
<p>This is <b>bold</b>, <strong>strong</strong>, <i>italic</i>, and <em>emphasized</em> text.</p>
<p>This is <u>underlined</u> and <s>strikethrough</s> text.</p>
<p>Water is written as H<sub>2</sub>O, and x squared is written as x<sup>2</sup>.</p>
<p>Some code: <code>console.log('Hello, World!');</code></p>
<pre>
This is preformatted text
that preserves spaces and
line breaks.
</pre>
<p>This is <mark>highlighted</mark> text and <small>small</small> text.</p>
<p>She said, <q>This is an inline quote</q>.</p>
<blockquote>This is a block-level quote for long quotes.</blockquote>
<cite>— Author Name</cite>
</body>
</html>