HTML TutorialLesson 9Free preview
HTML Formatting
This lesson is part of HTML · All levels
Summary
HTML provides special elements to give format meaning to text, for example <b> and <strong> for thick, <i> and <em> for slant, as well as <mark> for highlighting text. In addition to affecting the look, these elements also convey additional meaning to browsers, screen readers, and search engines. Using meaningful elements is better than just changing styles with CSS.
Key points
- <strong> marks important text (usually thick), <em> marks emphasis (italic)
- <b> and <i> only mark the appearance without additional meaning
- <mark> highlight the text, <small> shorten the text
- The formatting element should be chosen based on meaning, not appearance.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.