Version-//W3C//DTD XHTML 1.0 Strict//EN
Elementtt
Purposefixed-width font (typewriter) text
DescriptionThis element encloses text which should be rendered as a "typewriter" font--that is courier or monospaced font associated with typewriters. The characters of monospaced font all have the same width. The term tt comes from the word "teletypewriter," electromechanical devices used for text communication.
Start tagRequired <tt>
Attributes
NameTypeDefaultComment
class CDATA #IMPLIEDspace-separated list of classes
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onkeydown CDATA #IMPLIEDa key was pressed down; script expression
onkeypress CDATA #IMPLIEDa key was pressed and released; script expression
onkeyup CDATA #IMPLIEDa key was released; script expression
onmousedown CDATA #IMPLIEDa pointer button was pressed down; script expression
onmousemove CDATA #IMPLIEDa pointer was moved within; script expression
onmouseout CDATA #IMPLIEDa pointer was moved away; script expression
onmouseover CDATA #IMPLIEDa pointer was moved onto; script expression
onmouseup CDATA #IMPLIEDa pointer button was released; script expression
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
Content( #PCDATA | a | br | span | bdo | map | object | img | tt | i | b | big | small | em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup | input | select | textarea | label | button | ins | del | script )*
End tagRequired </tt>
Referenced in a abbr acronym address b bdo big button caption cite code dd del dfn div dt em fieldset h1 h2 h3 h4 h5 h6 i ins kbd label legend li object p pre q samp small span strong sub sup td th tt var
Example
SourceAppearance
All the telex said was <tt>MEET MORSBY AT MACAU HELIPORT</tt>. All the telex said was MEET MORSBY AT MACAU HELIPORT.
search Search · star Market
2023-06-19 · John December · Terms © johndecember.com