From the course: HTML for Programmers

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Text content

Text content

- [Instructor] When working with text content, there are several HTML elements you can use to create a semantic hierarchy. First, we have HTML section heading elements. There are six levels of headings which range from <h1> to <h6> with <h1> being the highest or most important level, and <h6> being the lowest or least important level. Heading information is used by assistive technology to construct a table of contents for the page, so it's important to use them appropriately. There are a few common mistakes when using HTML heading elements. First, headings should not be used to style text, only to indicate importance of the upcoming content. If you wish to change the heading font size, use the CSS font size property. Second, heading elements should be used in order and no levels should be skipped. This means you should start at <h1> and work your way sequentially through the headings. You should not skip levels and go…

Contents