HTML tag (Not supported in HTML5)

HTML tag was used to define text in monospaced font or fixed-width fonts so that it would render as teletype, text-only screen, or line printer on the browser.

Note: Do not use HTML tag, as it is not supported in HTML5, instead of you can use following tags for better use:

  • : To represent the computer programming code
  • : To preserve line break and indentation in plain text.
  • : To represent keyboard input.
  • : To represent variables in an equation
  • : To represent the text as sample output.

Syntax

Following are some specifications about the HTML tag

Display Inline
Start tag/End tag Start and End tag
Usage Formatting

Example

Test it Now

Output:

HTML tt tag

Attribute:

Tag-specific attributes:

The tag does not contain any specific attribute.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML u Tag




Contact US

Email:[email protected]

HTML tt Tag
10/30