My HTML5 is designed to display a list of bookmarks, showcasing the following structure:
<h1>Bookmarks</h1> <!-- Big text -->
<ul class='bookmarks-list'>
<li>
<article class='bookmark'>
<h1> <!-- Small text, not preferred. :( -->
<a href='/bookmarks/show/4ed230552357a3f96907fb5f'>Google</a>
</h1>
<p>...</p>
</article>
</li>
<li>
<article class='bookmark'>
<h1> <!-- Small text, not preferred. :( -->
<a href='/bookmarks/show/4ed235562357a3f96907fb60'>Stack Overflow</a>
</h1>
<p>...</p>
</article>
</li>
</ul>
The issue lies in the fact that the h1
tags within the bookmarks have a smaller font-size
compared to the global h1
element (like the title of the web page).
One solution would be adding a class to each h1
and styling them individually with the same font-size
. However, I am interested in exploring a method to style all h1
elements across different levels simultaneously without assigning specific classes to them. Is this achievable?