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)