In this lesson, we are going to learn how to divide your web page into clear sections using different headings.
Now that everything is nice and organized, you might want to draw attention to specific words or phrases.
There are a couple of tags that you can use to do this.
If I want to show that a piece of text is urgent or really important, you can put the text between the strong tags.
In my first paragraph, I put the strong tags around the phrase “deserve to be treated well”, because really, this is what my web page is all about – taking care of animals.
The strong tags are also commonly used for notes or warnings.
Another way to draw attention to specific pieces of text is by using the M tags, short for emphasis.
You might not realize it, but you probably emphasize things all the time.
Let's check out what I just said, you probably emphasize things all the time. See, I emphasize the word all because I wanted to make sure you paid close attention to it.
At this point, you know how to use h1 through h6 for headings at the beginning of sections.
Now you can use the strong, and M tags to draw attention to text. This helps you keep your HTML organized.
Strong makes the text darker and Emphasis, makes the text all slanting.
What if I wanted to make some of the text bigger, but it wasn't a heading.
It might be tempting to use a heading anyway. But this will lead to really sloppy unorganized code.
There's actually a better way to change the way things look in the browser. You can do this CSS another web development language.
Let me break it down for you.
If you think of building a web page, like building a house, then HTML would be the frame, the structure that holds the house up.
Of course, a house is more than just a frame. A house has colors and decorations. This is what we use CSS for.
CSS is a web language used specifically to style a web page.
For instance, we can use CSS to make text bigger or smaller, or we can change the color of text if we want to.
We'll learn about CSS in the next chapter, but first we need to build a solid structure using HTML.