TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML tt Tag

HTML tt Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <tt> tag (Not supported in HTML5)

HTML <tt> 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 <tt> tag, as it is not supported in HTML5, instead of you can use following tags for better use:

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

Syntax

Following are some specifications about the HTML <tt> tag

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

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML tt tag</title>
</head>
<body>
<h2>Example of tt tag</h2>
<p>This is paragraph with default font</p>
<p><tt>This is teletype paragraph</tt></p>
</body>
</html>
Test it Now

Output:

HTML tt tag

Attribute:

Tag-specific attributes:

The <tt> tag does not contain any specific attribute.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<tt>YesYesYesYesYes
Next TopicHTML u Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf