+ 1
Why only 6 level of heading is provided? What if I need more than 6 headings?
7 Respostas
+ 1
Do you want it to be in html element or do you want to use css?
HTML element:
<h1 style="font-size:100px;">test</h1>
CSS:(In css file)
h1 {
font-size: 100px;
}
+ 1
If you need more options you can customize any font size with CSS font-size attribute.
+ 1
Thank you so much
+ 1
Trust me... 6 is plenty.
That said, you can style these differently in different nested tags.
Examples can be:
<article id="main">
<h1>Main Title</h1>
<h2>Sub Title A</h2>
<p>...</p>
<h2>Sub Title B</h2>
<p>...</p>
</article>
<article id="sub-content">
<h1>Sub Content Title</h1>
<h2>Sub Title A</h2>
<p>...</p>
<h2>Sub Title B</h2>
<p>...</p>
</article>
Then you can style the h1, h2, etc tags differently with CSS like this:
#main h1{...}
#main h2{...}
#sub-content h1{...}
#sub-content h2{...}
I don't think I've ever used all 6 headers hierarchically before. Usefully stop at h3, and maybe, sometimes h4.
0
In html?
0
Is better for tags to add attributes in the separate file CSS. Add attributes in html file it is considered bad form