Which of the following statements is true about the CSS snippet: `p { font-family: serif; }`?

1) It changes the font of all paragraphs in the HTML document to a serif font.
2) It changes the font of all headings in the HTML document to a serif font.
3) It changes the font of all links in the HTML document to a serif font.
4) It changes the font of all lists in the HTML document to a serif font.

Answer :

The CSS property 'p font-family: serif;' applies a serif font to all paragraph elements in an HTML document, changing their appearance to a more readable style for printed text. The correct option is 1) It changes the font of all paragraphs in the HTML document to a serif font.

The CSS snippet 'p font-family: serif;' changes the font of all paragraphs in the HTML document to a serif font. This CSS property applies a font family to

elements, meaning any text contained within paragraph tags will display in the default serif font if no specific font is defined. Fonts like Times New Roman, Georgia, or Garamond are examples of serif fonts, characterized by small lines attached to the end of their strokes, which are known to facilitate the flow of reading, especially in printed documents. The correct option is 1) It changes the font of all paragraphs in the HTML document to a serif font.