search
HomeWeb Front-endHTML TutorialComplete 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!

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
The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

HTML vs. CSS vs. JavaScript: A Comparative OverviewHTML vs. CSS vs. JavaScript: A Comparative OverviewApr 16, 2025 am 12:04 AM

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

Understanding HTML, CSS, and JavaScript: A Beginner's GuideUnderstanding HTML, CSS, and JavaScript: A Beginner's GuideApr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft