Can I use <strong> tag inside of <h2> | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Can I use <strong> tag inside of <h2>

Coding

26th Apr 2022, 8:54 AM
Yacquub
Yacquub - avatar
3 ответов
+ 2
Yes you can but it wouldn't have any effect. Because with h2 the font-weight is already bold.
26th Apr 2022, 9:00 AM
Stefanoo
Stefanoo - avatar
+ 1
Yacquub h2 already presents a bold typeface and emphasises it's relative importance, but is used as a heading to the following content. strong will make bold the associated text and emphasise the importance of that text. You could combine them, but I doubt it would have a measurable affect.
26th Apr 2022, 9:06 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
<h1> to <h6> are all <strong> so no need to do something like what you want to do
28th Apr 2022, 1:15 AM
Razack VON Razack
Razack VON Razack - avatar