Say you want to stylise some heading tags to make them "01_Hosting" instead of "1. Hosting", how do you make this accessible to screen readers?
Take the snippet:
<div class="section">
<div class="section__title">
<h2>04_Hosting</h2>
<h3>speedy</h3>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
With styling like:
I initially thought to do
<h2 aria-label="4. Hosting">04_Hosting</h2>
but afaik aria-label is meant for interactive elements only. I also tried it with my screen reader (Orca) and it ignored the label.
