Placeholder Image

Subtitles section Play video

  • The presentational markup is used to describe the appearance of text. However, it is recommended

  • that we use Cascading Style Sheets instead for handling all kinds of style information.

  • First we have the text styles: bold <b>, italic , underlined <u>, and strike-through <s>/<strike>.

  • Bold and italic are still commonly used text styles, but underlined and both strike-through

  • tags have become deprecated. Like most other tags all of these come in pairs and contains

  • the text that they affect. We can also nest these together to combine different text styles.

  • Next, we have the teletype element <tt> which gives us a fixed-width typeface, just like

  • the preformatted tag. We also have the <big> and <small> elements,

  • which gives a way to change the font size. These elements can be nested several levels

  • deep in order to achieve a greater effect. Lastly, we have elements for rendering text

  • as either superscript <sub> or subscript <sup>.

  • The <font> tag can be used to specify color, size, and typeface of text. The size can be

  • a value from 1 to 7. Or it can be specified relative to the current font size with a plus

  • or minus sign before the number. By default, the standard size is 3. The face attribute

  • can contain one or more font names in a comma separated list. If the user's computer doesn't

  • have the first font it will then try to use the next one and so on. The list here contains

  • common font names grouped together by their appearances.

  • The <body> element provides a number of deprecated attributes for controlling the general appearance

  • of the webpage. We can change the default text color using the text attribute. We can

  • also add a background color or a background image which will be tiled in the background.

The presentational markup is used to describe the appearance of text. However, it is recommended

Subtitles and vocabulary

Click the word to look it up Click the word to find further inforamtion about it