From the course: HTML Essential Training
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Bold and italics
From the course: HTML Essential Training
Bold and italics
- [Instructor] Many text formatting elements are used to define whole blocks of text, but sometimes you may need to format just a word or a short phrase contained inside another element. We've already seen an example of this with the cite element, which is an example of an inline element. HTML has more ways to format inline text. For example, there are two tags that can be used to convey importance or emphasis, strong and em. Here's how the strong tag might be used and how it's displayed in the browser. This is an example of a warning message you may see when you're about to delete an account. Adding the strong tag around the word warning will designate this word as more important than the surrounding text. It will also be displayed as bolded. The em element is used to define text that has stress emphasis to change the meaning of a word, phrase, or sentence. It's like how we emphasize certain words when we speak by pronouncing them with more emphasis. For example, putting the em tag…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Paragraphs and headings5m 41s
-
(Locked)
Ordered, unordered, and description lists5m 50s
-
(Locked)
Quotations3m 59s
-
(Locked)
Exercise: Formatting text, part 13m 4s
-
(Locked)
Date and time1m 48s
-
(Locked)
Bold and italics2m 25s
-
(Locked)
Character entity reference4m 39s
-
(Locked)
Exercise: Formatting text, part 21m 43s
-
(Locked)
Code and line breaks1m 21s
-
(Locked)
HTML and typography1m 29s
-
(Locked)
Challenge: Write text-based HTML markup for course project2m 52s
-
(Locked)
Solution: Demo3m 46s
-
(Locked)
-
-
-
-
-
-
-