Logical text styles in HTML.

Q5. List the different logical text styles along with their explanation.

Ans.  The various logical text styles are:

  1. <DFN>: Display the text in italics. You can use this style for defining a single word.
  2. <EM>: Displays the text in italics. You can use this style for emphasizing a single line.
  3. <CITE>: Displays the text in italics. You can use this style for quotations, title of books, and name of characters.
  4. <CODE>: Displays the text in-fixed width font. You can use this style for including code in your text.
  5. <KBD>: Displays the text in plain width font. You can use this style for including keyboard entries.
  6. <SAMP>: Displays the text in fixed width font. You can use this style for literal characters.
  7. <STRONG>: Displays the text as bold. You can use this style for strong emphasis.
  8. <VAR>: Display the text as italics. You can use this style for variables.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: