C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | 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:
SyntaxFollowing are some specifications about the HTML <tt> tag
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> Output: Attribute:Tag-specific attributes:The <tt> tag does not contain any specific attribute. Supporting Browsers
Next TopicHTML u Tag
|