Home > Web Front-end > HTML Tutorial > How to use html tt tag

How to use html tt tag

silencement
Release: 2019-05-27 10:30:11
Original
5002 people have browsed it

How to use html tt tag

##html tag definition and usage

In html, the tag is used to define typewriter text,< The text marked by the tt> tag presents a typewriter or monospaced effect; HTML5 no longer supports the tag.

htmlTag standard attributes

class: The class name of the element (value: class name).

dir: The text direction of the content in the element (values: rtl, ltr).

id: The unique id of the element (value: id).

lang: Specifies the language code of the content in the element (value: language_code).

style : The inline style of the element (value: style_definition).

title: Additional information of the element (value: text).

xml:lang: The language code of the content in the xhtml document element (value: language_code).

Tag supports html global attributes and event attributes

Format:

Text

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>
Copy after login

The above is the detailed content of How to use html tt tag. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template