In: Computer Science
HTML
Create a page of texts that uses inline elements. The page should contain a citation, a term definition, a subscript, a superscript and some highlighted texts.
HTML Program to create a page of texts using inline elements:
<!DOCTYPE html>
<html>
<head>
<title>Chapter 1</title>
</head>
<body>
<h1><center>Introduction</center></h1>
<div>This is the HTML code using <span
style="background-color: #FFFF00">inline element</span>
<span style="border: 1px solid black">to display some
highlighted text </span>;
the background color of the text is highlighted in
yellow.</div>
<p> Simple paragraph example: A paragraph is a group of
words put together to form a group that is usually longer than a
sentence.</p>
<p>This is the simple paragraph to show <span
style="color:blue">colored text. </span></p>
<p><dfn>Pythagorean theorem:</dfn> In a right
angled triangle the square of the long side is equal to the sum of
the squares of the other two sides.</p>
<p>The <b>Pythagorean theorem</b> is often
expressed as the following equation:</p>
<p><span style="background-color: #FFFF00"><var>a<sup>2</sup></var> + <var>b<sup>2</sup></var> = <var>c<sup>2</sup></var></span></p>
<p>The developer's favorite molecule is
C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub>,
which is also known as "caffeine."</p>
<blockquote>
<p><span style="background-color:
#FFFF00">Example for displaying
citation.</span></p>
<footer>
First sentence in
<cite><a
href="https://www.w3.org/MarkUp/html3/maths.html">https://www.w3.org/MarkUp/html3/maths.html</a></cite>
by Unknown (Part 1, Chapter 1) describes the mathematical
elements.
</footer>
</blockquote>
</body>
</html>