Let's add some text!
I don't think there is a single website in the world that doesn't use text. Maybe if you've got a really artistic website... but if you think about it, if there's no words on a website, you can't actually say anything.
So here, let's learn about tags related to writing sentences.
- Paragraphs: the <p> tag
- Emphasis: the <em> tag
- More emphasis: the <strong> tag
- Italic text: the <i> tag Not recommended
- Bold text: the <b> tag Not recommended
- Line breaks: the <br> tag
Paragraphs: <p>~<p>
To represent a paragraph, use the <p> tag.
[Example]
<p> This is one paragraph. </p>
[Display example]
Whatever is enclosed in <p>~<p> becomes a paragraph.
Even if you write text without using this tag, it should show up normally in the browser. This is because the browser uses its own judgement and does what it knows to do best, which is displau the data as it's given. That's technically fine, but for correct HTML grammar, it's way better to use the <p> tag whenever possible.
When you use this tag, plenty of space is generated b fore and after the text, and it can appear tight within its own container. That's the most common reason to style the <p> tag.