Friday, 4 November 2011

HTML text elements

The text elements drives their names form the intended function or purpose of the text. For example, the <strong> element stands for strong (bold) text. Generally, browsers will display <strong> text with a bold type face.

Indentifying text with text elements

  • <em></em> The emphasis element is an element used for emphasizing important portions of a document. It generally displays Italicized text.
  • <strong></strong> The strong element indicates stronger emphasis than does <em> and usually displays as bold text.
  • <kbd></kbd> Standing for keyboard, this element identifies its content as user input through a keyboard. Generally, it displays as a monospaced font. Some browsers also might display it as bold.
  • <cite></cite> The citation element identifies a portion of the document as a reference to an outside source.
  • <var></var> This element indicates a variable, as might be uses in computer code.
  • <dfn></dfn> This element identifies a portion of text as a defining instance of a term. It also generally displays in italic.
  • <code></code> This element not only displays in a courier, fixes width font but also indicates that the text is portion of computer code.
  • <samp><samp> This element identifies its content as sample output, for example from a computer program, most often rendering text in a monospaced font.
  • <abbr></abbr> This identifies an abbreviation.
  • <acronym></acronym> This element identifies text as an acronym.
  • <address></address> This element to set apart your address or personal information at the bottom of a web page.

No comments:

Post a Comment