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

What is tt in html/css

青灯夜游
青灯夜游Original
2023-01-17 17:01:322114browse

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.

What is tt in html/css

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

##classSpecifies the class name of the elementdirrtlSpecifies the text direction of the content in the elementidSpecifies the uniqueness of the element id##langlanguage_codestylestyle_definitiontitletext xml:langlanguage_code
Attributes Value Description
classname
ltr
id
Specifies the language code of the content in the element
Specifies the inline style of the element
Specifies additional information for the element
Specifies XHTML The language code for the content in the document element
Example:

<!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>

What is tt in html/css

Extension Knowledge: Event attributes

In HTML 4.01, the tag supports the following event attributes:

Attributesonclickscriptondblclick#scriptonmousedown scriptonmousemove scriptonmouseoutscriptonmouseoverscriptonmouseupscriptonkeydownscriptonkeypressscriptonkeyup scriptFor more programming-related knowledge, please visit:
Value Description
Execute script when mouse is clicked
Execute script when the mouse is double-clicked
Execute script when mouse button is pressed
Execute script when the mouse pointer moves
When Execute the script when the mouse pointer moves out of an element
When the mouse pointer hovers over an element Execute script when
Execute script when mouse button is released
Execute script when the keyboard is pressed
Execute script when the keyboard is pressed and then released
Execute the script when the keyboard is released
Programming Learning

! !

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn