Help:Wiki University HTML-- Font Bold-Italics

Bold words
For a word to appear in bold text, you apply the "font-weight:bold" attribute:  Lorem  ipsum dolor sit amet, consectetur adipiscing elit. It will look like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Bold sentences
The same method is used for sentences in paragraphs.  Lorem ipsum dolor sit amet, consectetur adipiscing elit. It will look like this: Lorem ipsum dolor sit amet, consectetur adipiscing elit.

An alternate method to made text bold is to flank the word or words with "strong" tags like so: Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Italicized words
For a word to appear in italicized text, you use the "font-style:italic" attribute  Lorem  ipsum dolor sit amet, consectetur adipiscing elit. It will look like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Italicized sentences
The same method is used for sentences or paragraphs. Place two apostrophes on either end of the sentence or paragraph:  Lorem ipsum dolor sit amet, consectetur adipiscing elit. It will look like this: Lorem ipsum dolor sit amet, consectetur adipiscing elit.

An alternate method to made text bold is to flank the word or words with "em" tags like so: Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Can use bold and italics together
You can do both--make text bold and italicize it at the same time--by using 5 apostrophes on either end of what you want to effect. Bold and Italicized Here is the coding;  Bold and Italicized If you are wondering if you can use both the strong and em tags together, the answer is no. The code will not work if you combine the two tags like so:.

Try these out


 Exercises Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce elementum efficitur faucibus. Curabitur eleifend quis ligula ac ullamcorper. Curabitur eget suscipit turpis.
 * Make the second word of each sentence of the lorem ipsum bold.
 * Make the next to the last sentence of lorem ipsum italic.
 * Make the last sentence both bold and italics.

Check your answers

 Quick Quiz
 * To make a sentence in bold text, you flank the sentence with two apostrophes
 * A. True
 * B. False


 * To make a word italicized, you flank the word with two quotation marks
 * A. True
 * B. False

Check your answers