Home > Article > Web Front-end > Complete list of HTML elements (tags) and introduction to their use
This article mainly introduces the encyclopedia and usage of HTML elements (tags). It has certain reference value. Now I share it with everyone. Friends in need can refer to
Encyclopedia of HTML elements (tags) And usage instructions
a: Indicates the starting or destination position of the hyperlink.
acronym: represents an abbreviation of the first letter.
address: Indicates specific information, such as address, signature, author, and document information.
applet: Place executable content on the page.
area: Defines the shape, coordinates, and associated URL of a hyperlink area in a client image map.
b: Specifies that text should be displayed in bold.
base: Specify an explicit URL for resolving links and references to external sources, such as images and style sheets.
basefont: Set the base font value as the default font when displaying text.
bdo: Allows authors to disable bidirectional rules for selected text fragments.
bgsound: Enables the page to have background sounds or dubbing.
big: Specifies that the included text should be displayed in a slightly larger font than the current font.
blockquote: Indicates a quotation in the text.
body: Indicates the beginning and end of the document body.
br: Insert a newline character.
button: Specify a container in which the HTML will be displayed as a button.
caption: The title of the table, a brief description of the table.
center: Center the specified text and image.
cite: Display the citation in italics.
code: Indicates code examples.
col: Describes column-based table default attributes.
colgroup: Describes the default attributes of a column or a group of columns in the table.
comment: Indicates invisible comments. Prevents the included text or HTML source code from being parsed and displayed by the browser.
dd: Indicates the definition in the definition list. Definitions are usually indented in definition lists.
del: Indicates that the text has been deleted from the document.
dfn: Indicates the definition of the term.
dir: Represents a directory list.
p: Represents an area that can display HTML
dl: Represents a definition list.
dt: Indicates definition terms in the definition list.
em: Emphasized text, usually displayed in italics.
embed: Allows embedding of any type of document.
fieldset: Draws a box outside the text and other elements contained in the fieldset.
font: The new font, size, and color used to illustrate the included text.
form: Indicates that the included control is part of a form.
frame: Represents a single frame within a FRAMESET element.
frameset: Represents a frameset, used to organize multiple frames and nested framesets.
head: Provides an unordered collection of information about the document.
hn: Display text in title style.
hr: Draw a horizontal line.
html: Indicates that the document contains HTML elements.
i:Specifies that text should be displayed in italics.
iframe: Create an inline floating frame.
img: Embed an image or video clip in the document.
input: Create various form input controls.
input type=button: Create a button control.
input type=checkbox: Create a checkbox control.
input type=file: Create a file upload control with a text box and a browse button.
input type=hidden:Transmit status information about the client/server interaction.
input type=image: Create an image control that will cause the form to be submitted immediately when clicked.
input type=password: Create a single-line text input control similar to the INPUT type=text control, but does not display the content entered by the user.
input type=radio: Create a radio button control.
input type=reset: Create a button that, when clicked, will reset the form control back to its initial value.
input type=submit: Create a button and click the button to submit the form.
input type=text: Create a single-line text input control.
ins: Represents text inserted into the document.
isindex: Causes the browser to display a dialog box prompting the user to enter a single line of text.
kbd: Display text in fixed-width font.
label: Specify labels for other elements on the page.
legend: Insert a title into the box drawn by the fieldSet object.
li: Represents an item in the list.
link: Allows the current document to establish a connection with an external document.
listing: Display text in a fixed-width font.
map: Contains the coordinate data of the client image mapping.
marqueee: Create a scrolling text subtitle.
menu: Create an unordered list.
meta: Conveys hidden information about the document to the server and client.
nobr: Display text without line breaks.
noframes: Contains HTML for use by browsers that do not support the FRAMESET element.
noscript: Specifies HTML to be displayed in browsers that do not support scripts.
object: Insert objects into HTML pages.
ol: Compile a sorted list.
optgroup: Allows authors to logically group options in select elements.
option: Represents an option in the SELECT element.
p: indicates a paragraph.
param: Set the initial value of the attribute of the APPLET, EMBED or OBJECT element.
pre: Display text in fixed-width font.
q: Separate quotes from text.
s: Display text with strikethrough.
samp: Indicates a code sample.
script: Specifies the script in the page to be interpreted by the script engine.
select: Represents a list box or a drop-down box.
small: Specifies that the included text should be displayed in a slightly smaller font than the current font.
span: Specifies the inline text container.
strike: Display text with strikethrough.
strong: Display text in bold.
style: Specify the style sheet of the page.
sub: Indicates that the included text should be displayed as a subscript, slightly smaller than the current font.
sup: Indicates that the included text should be displayed in superscript form, slightly smaller than the current font.
table: Description contains content organized into a table with rows and columns.
tbody: Indicate which rows serve as the body of the table.
td: Specify the cell in the table.
textarea: Multi-line text input control.
tfoot: Specifies which rows serve as the footer of the table.
th: Specify the title column. The title column will be centered in the cell and bold.
thead: Specify which rows serve as table headers.
title: The title of the document.
tr: Specify a row in the table.
tt: Display text in fixed-width font.
u: Display text with underline.
ul: Indicates an unsorted list of items.
var: Define program variables, usually shown in italics.
wbr: Insert a soft newline into a block of NOBR text.
The above is the detailed content of Complete list of HTML elements (tags) and introduction to their use. For more information, please follow other related articles on the PHP Chinese website!