In this series of exercises, we'll explore how to use HTML elements to format basic page content.
Often you will want to emphasize a particular phrase or word within your text. HTML gives you several different tags to do this with. In this exercise we'll explore the four most common formatting tags you'll use to emphasize content.
You're probably wondering why there are multiple tags for bolding and italicizing text. If you are, don't worry, you're not alone! This is one of the most confusing aspects of learning HTML. The easiest way for me to explain it is this: One set of tags is presentational, while the other is logical. What that means is that presentational text doesn't convey explicit meaning, it merely serves to change the styling of the text. Logical elements however do convey a specific meaning. Text that is either bold or italic are just that, bold or italic. Text that is represented with a strong or em tag can represent multiple states. Using styles, for example, you could change it so that the text is underlined or highlighted. By contrast, it wouldn't make much sense to change the styling of a bold or italic element, since they are represented exactly as intended.
There are other elements you'll need to research when learning about emphasizing text as well. The cite tag (〈cite〉), for example, is used for citing a work such as a book title, or an author, and is usually displayed as italicized text.