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 |
In HTML 4.01, the tag supports the following event attributes: 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!<!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>
Attributes
Programming Learning
onclick Value
Description
ondblclickscript
Execute script when mouse is clicked
onmousedown #script
Execute script when the mouse is double-clicked
onmousemovescript
Execute script when mouse button is pressed
onmouseout script
Execute script when the mouse pointer moves
onmouseoverscript
When Execute the script when the mouse pointer moves out of an element
onmouseupscript
When the mouse pointer hovers over an element Execute script when
onkeydownscript
Execute script when mouse button is released
onkeypressscript
Execute script when the keyboard is pressed
onkeyupscript
Execute script when the keyboard is pressed and then released
For more programming-related knowledge, please visit: script
Execute the script when the keyboard is released