text"; the text marked by the tt tag presents a typewriter or constant-width effect. . Note that HTML5 no longer supports the tt tag. Although some browsers still support it, please try not to use this feature and update existing code. This feature may not work properly at any time."/> text"; the text marked by the tt tag presents a typewriter or constant-width effect. . Note that HTML5 no longer supports the tt tag. Although some browsers still support it, please try not to use this feature and update existing code. This feature may not work properly at any time.">
Home >Web Front-end >Front-end Q&A >What is tt in html/css
In HTML/CSS, tt is a web page tag used to define typewriter text. The syntax is "text"; the tt tag is marked Text appears like a typewriter or monospaced. Note that HTML5 no longer supports the tt tag. Although some browsers still support it, please try not to use this feature and update existing code. This feature may not work properly at any time.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
#What is tt in html/css
In html/css, tt is a web page tag used to define typewriter text. The text marked with the tag has a typewriter or monospaced effect.
Format:
<tt>文本</tt>
Note: HTML5 no longer supports the tag.
DEPRECATED: This feature is no longer recommended. While some browsers still support it, it may have been removed from the relevant web standard, may be in the process of being removed, or may be retained for compatibility reasons. Please try not to use this feature and update existing code; see the compatibility table at the bottom of this page to guide your decision. Please note that this feature may not work properly at any time.
Standard attributes of tags
Attributes | Value | Description |
---|---|---|
classname | Specifies the class name of the element||
rtl |
ltr | Specifies the text direction of the content in the element|
id | Specifies the uniqueness of the element id||
language_code | Specifies the language code of the content in the element | |
style_definition | Specifies the inline style of the element | |
text | Specifies additional information for the element | |
language_code | Specifies XHTML The language code for the content in the document element |
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>html< tt>标签笔记</title>
</head>
<body>
<table border="1">
<p>这是普通的文本</p>
<p><tt>这是tt标签标记的文本</tt></p>
</body>
</html>
In HTML 4.01, the tag supports the following event attributes:
Value | Description | |
---|---|---|
script | Execute script when mouse is clicked | |
#script | Execute script when the mouse is double-clicked | |
script | Execute script when mouse button is pressed | |
script | Execute script when the mouse pointer moves | |
script | When Execute the script when the mouse pointer moves out of an element | |
script | When the mouse pointer hovers over an element Execute script when | |
script | Execute script when mouse button is released | |
script | Execute script when the keyboard is pressed | |
script | Execute script when the keyboard is pressed and then released | |
script | Execute the script when the keyboard is released |
The above is the detailed content of What is tt in html/css. For more information, please follow other related articles on the PHP Chinese website!