How to create a HTML document outline

How to create a HTML document outline
0

Hi all,
anybody know a good resource on how to make a HTML document outline?

I’ve read that HTML 5 outline algorithm isn’t supported and should be avoided.
So what should I do to make this in the best current practice?

You don’t really make an outline, you use it. It only really applies to headers. If you are concerned about the outline w/r/t screenreaders, then use h1, h2, h3 etc tags in order of importance in the document as a whole (so most important h1, next level h2 and so on). And you can use aria attributes on elements as well to denote importance if they aren’t h1/2/3/etc – ie role="header" aria-level="3".

1 Like