English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML tags are the most basic unit of HTML language, and HTML tags are the most important part of HTML (an application under the standard general markup language). HTML tags are case-insensitive, for example, 'main' <body> and <BODY> mean the same thing, it is recommended to use lowercase.
Tag | Description |
<!--...--> | Define a comment |
<!DOCTYPE> | Define the document type |
<a> | Define a hypertext link |
<abbr> | Define an abbreviation |
<acronym> | Define an acronym that takes the first letter, not supported by HTML5 |
<address> | Define the contact information of the document author or owner |
<applet> | HTML5Not recommended for use. Define embedded applet. |
<area> | Define an area within an image map |
<article>HTML5 | Define an article area |
<aside>HTML5 | Define the sidebar content of the page |
<audio>HTML5 | Define audio content |
<b> | Define bold text |
<base> | Define the default address or default target for all links on the page. |
<basefont> | HTML5Not supported, not recommended for use. Define the default font, color, or size of Chinese text on the page. |
<bdi>HTML5 | Allows you to set a piece of text to脱离 its parent element's text direction setting. |
<bdo> | Define the text direction |
<big> | Define large text, HTML5Not supported |
<blockquote> | Define a long quotation |
<body> | Define the main content of the document |
<br> | Define a line break |
<button> | Define a click button |
<canvas>HTML5 | Define graphics, such as charts and other images; the tag is just a container for the graphic, and you must use scripts to draw the graphic. |
<caption> | Define table titles. |
<center> | HTML5Not supported, not recommended. Define centered text. |
<cite> | Define a citation. |
<code> | Define computer code text. |
<col> | Define the attribute values of one or more columns in a table. |
<colgroup> | Define a column group for formatting in a table. |
<command>HTML5 | Define command buttons, such as radio buttons, checkboxes, or buttons. |
<datalist>HTML5 | Define an option list. Use this element in conjunction with the input element to define possible values for the input. |
<dd> | Define the description of an item in a definition list. |
<del> | Define deleted text. |
<details>HTML5 | Used to describe the details of a document or a part of the document. |
<dfn> | Define definition items. |
<dialog>HTML5 | Define a dialog, such as a prompt box. |
<dir> | HTML5Not supported, not recommended. Define a directory list. |
<div> | Define sections in a document. |
<dl> | Define the details of a list. |
<dt> | Define items in a list. |
<em> | Define emphasized text. |
<embed>HTML5 | Define embedded content, such as plugins. |
<fieldset> | Define the border around the elements in the form. |
<figcaption>HTML5 | Define the title of the <figure> element. |
<figure>HTML5 | Specify independent flow content (images, charts, photos, code, etc.). |
<font> | HTML5Not supported, not recommended. Define the font, size, and color of text. |
<footer>HTML5 | Define the footer of a section or document. |
<form> | Define the form of the HTML document. |
<frame> | Define the windows or frames of the frameset. |
<frameset> | Define a frameset. |
<h1> to <h6> | Define HTML titles. |
<head> | Define information about the document. |
<header>HTML5 | Define the header area of the document. |
<hr> | Define a horizontal line. |
<html> | Define an HTML document. |
<i> | Define italic text. |
<iframe> | Define an inline frame. |
<img> | Define images. |
<input> | Define input controls. |
<ins> | Define text that is inserted. |
<kbd> | Define keyboard text. |
<keygen>HTML5 | Specify the key pair generator field used in the form. |
<label> | Define the annotation of the input element. |
<legend> | Define the title of the fieldset element. |
<li> | Define the items of a list. |
<link> | Define the relationship between the document and external resources. |
<map> | Define an image map. |
<mark>HTML5 | Define marked text. Use the <m> tag when you need to highlight text. |
<menu> | Not recommended for use. Define a menu list. |
<meta> | Define meta-information about the HTML document. |
<meter>HTML5 | Define measures and units. Only used for measures with known maximum and minimum values. |
<nav>HTML5 | Define the part of navigation links. |
<noframes> | Define alternative content for users who do not support frames. HTML5Not supported |
<noscript> | Define alternative content for users who do not support client-side scripts. |
<object> | Define an embedded object. |
<ol> | Define an ordered list. |
<optgroup> | Define a combination of related options in a selection list. |
<option> | Define an option in a selection list. |
<output>HTML5 | Define different types of output, such as script output. |
<p> | Define a paragraph. |
<param> | Define the parameters of an object. |
<pre> | Define preformatted text. |
<progress>HTML5 | Define the running progress (process). |
<q> | Define a short quotation. |
<rp>HTML5 | The <rp> tag is used in ruby annotations to define the content displayed by browsers that do not support the ruby element. |
<rt>HTML5 | The <rt> tag defines the explanation or pronunciation of characters (Chinese phonetic or character). |
<ruby>HTML5 | The <ruby> tag defines ruby annotations (Chinese phonetic or character). |
<s> | Not recommended for use. Define strikethrough text. |
<samp> | Define a sample of computer code. |
<script> | Define client-side scripts. |
<section>HTML5 | The <section> tag defines a section (section, division) in the document. For example, chapters, headers, footers, or other parts of the document. |
<select> | Define a selection list (drop-down list). |
<small> | Define small text. |
<source>HTML5 | The <source> tag defines media resources for media elements (such as <video> and <audio>). |
<span> | Define a section in the document. |
<strike> | HTML5Not supported, not recommended for use. Define strikethrough text. |
<strong> | Define emphasized text. |
<style> | Define the style information of the document. |
<sub> | Define subscript text. |
<summary>HTML5 | The <summary> tag includes a title for the details element, and the "details" element is used to describe detailed information about the document or a document fragment. |
<sup> | Define superscript text. |
<table> | Define a table. |
<tbody> | Define the main content in a table. |
<td> | Define a cell in a table. |
<textarea> | Define a multi-line text input control. |
<tfoot> | Define the footer content (footnote) in a table. |
<th> | Define the header cell in a table. |
<thead> | Define the header content in a table. |
<time>HTML5 | Define a date or time, or both. |
<title> | Define the title of the document. |
<tr> | Define a row in a table. |
<track>HTML5 | <track> tag specifies an external text track for media such as the video element. |
<tt> | Define typewriter text. |
<u> | Not recommended for use. Defines underlined text. |
<ul> | Define an unordered list. |
<var> | Define the variable part of the text. |
<video>HTML5 | <video> tag defines a video, such as a movie clip or other video stream. |
<wbr>HTML5 | Specify where in the text it is appropriate to add a line break. |