Tell us what’s happening:
Hi everyone,
I already know the solution of the challenge,
But what is I don’t understand is:
If we change the the code as below, and give the h1 and h6 classes same font size, they display in the same size, but I thought h1 must be bigger than h6 even in the same font size.
Please guide me.
Your code so far
<style>
h1{
font-size: 68px;
}
h6{
font-size: 68px;
}
</style>
<h1>This is h1 text</h1>
<h6>This is h6 text</h6>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.
Adding to what @clevious said, h1-h6 actually show the hierarchy of sections in an HTML page. The size you see is just because of the default CSS. The actual purpose is to give headings in your page a semantic meaning. This is particularly helpful with screen readers as it helps to identify that h1 is a main heading, h2 subheading and so on