The usage of proper heading tags (<h1> - <h6>) will ensure compliance with Accessibility guidelines.
Simply use Heading tag:
<h1> for Extra Large
<h2> for Large
<h3> for Medium
<h4> for Small
This will properly create an outline structure that is easy to understand by people using screen readers (i.e., blind, low vision)