Example 4 Indent the first line of the paragraph If we add more paragraphs to the document, we may want to indent them. This text is indented 2 em only on the first line. Em is the measure of width equal to the width of a lowercase M in a given font. Example 5 - Use the Class attribute to affect some HTML groups but not others. So we can make all paragraphs navy or all level 1 headings red.
Classes establish grouping schemes for identifying HTML tags within a style sheet.
Different HTML tag types can share the same class name value. Use Class properties to make alternating text stand out. For example, if you have a part in a play, you would like to make the part you have to learn maroon bold while the other part would be black. If I suddenly had to switch parts and wanted Romeo bold maroon instead, all I would have to do would be to change the property and values within the HEAD tag. I would not have to tediously change each line.