DEV Community

Charity Parks
Charity Parks

Posted on

2 1

More HTML Elements

HTML elements are used to structure your webpage. For example, where text should be bolded or italicized, to create paragraphs, to line break, how quotations appear, etc.

I'll go over a few of them here.

<b>the text inside the element will be bolded</b>

<i>the text here will be italicized</i>

<sup> stands for superscript, so if you need some letters in a word to be raised up like the '4th' of July you would code it the following way:
<p>On the 4<sup>th</sup>of July.

<sub> stands for subscript and will be used in the same fashion. So for CO2...

<p>CO<sub>2</sub></p>

<hr />puts a horizontal rule in between topics or themes.

<p>Eggs are delicious.</p>
<hr />
<p>Bacon if LIFE.</p>

The result is:

Eggs are delicious.
(there would be a line here)
Bacon is LIFE.

Happy Coding!

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay