Home Web Front-end HTML Tutorial The difference between and tags in html

The difference between and tags in html

Jun 19, 2017 pm 02:21 PM
html the difference Label

abbr and acronym are two tags that are easily overlooked. They may seem meaningless, but they play an important role in the accessibility of the website. These two tags already exist in HTML 4, but so far IE has not been able to recognize abbr. The good news is that IE7 will support abbr. and are similar. Both "indicate that the text it contains is a shortened form of a longer word or phrase". By tagging only acronyms, you can provide useful information to browsers, spell checkers, translation systems, and search engine indexers. The tag was originally introduced in HTML 4.0. All major acronym browsers support the tag. Of course, IE 5.5 or earlier versions of IE browsers do not support the tag

As for when to use abbr and when to use acronym, this problem is a headache. Let me talk about my personal opinion first. IE currently supports acronym. If you are not a fundamentalist, you can ignore abbr. acronym, just use acronym.

comes from the English acronym, which means an acronym.

Derived from the English abbreviation, which means abbreviation, simplification, and abbreviation. It is a collective name for the abbreviation of a word or phrase.

Let me give you an example and everyone will know. People's Republic of China means the People's Republic of China, and its abbreviation is PRC (that is, it is an abbreviation and acronym), which is recognized by the world; Another example is the month we often see: August, its abbreviation is Aug, that is, the abbreviation is Aug.

Then let’s look at it from the other side: It’s not easy for programmers to find GF (girlfriend girl friend, I forgot whether to write it continuously or separately, let’s write it separately for now AQA), this is An acronym commonly used when chatting and joking among friends.

PRC, Aug application tag, GF application .

<p>男程序员找<acronym title="女朋友">BF</acronym>很难。</p>
<p><abbr title="People&#39;s Republic of China">PRC</abbr> 是中华人名共和国。</p>
Copy after login

Rendering:

The difference between <abbr> and <acronym> tags in html

All acronyms can be said to be abbreviations, but not all abbreviations are acronyms . That is to say, acronyms are a subset of abbreviations.

So, under what circumstances should we use , and under what circumstances should we use ? I summarized it a little: words that can be replaced by abbreviations in formal occasions or formal written documents, socially recognized and highly popular words should be used, Other cases, most use .

The previously mentioned acronyms are a subset of abbreviations, so in any case you can use instead of . And in HTML5, the tag has been replaced by , and the tag will be abandoned in HTML5 and later versions.

These two tags are rarely used in our daily work, and they are rarely seen on some websites, and are almost forgotten by us.
IE6 does not support the abbr tag, IE7 and FF support it, and other browsers have not been tested.

The above is the detailed content of The difference between and tags in html. For more information, please follow other related articles on the PHP Chinese website!

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

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The Roles of HTML, CSS, and JavaScript: Core Responsibilities The Roles of HTML, CSS, and JavaScript: Core Responsibilities Apr 08, 2025 pm 07:05 PM

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

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

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

React's Role in HTML: Enhancing User Experience React's Role in HTML: Enhancing User Experience Apr 09, 2025 am 12:11 AM

React combines JSX and HTML to improve user experience. 1) JSX embeds HTML to make development more intuitive. 2) The virtual DOM mechanism optimizes performance and reduces DOM operations. 3) Component-based management UI to improve maintainability. 4) State management and event processing enhance interactivity.

How to set password protection for export PDF on PS How to set password protection for export PDF on PS Apr 06, 2025 pm 04:45 PM

Export password-protected PDF in Photoshop: Open the image file. Click "File"&gt; "Export"&gt; "Export as PDF". Set the "Security" option and enter the same password twice. Click "Export" to generate a PDF file.

HTML: The Structure, CSS: The Style, JavaScript: The Behavior HTML: The Structure, CSS: The Style, JavaScript: The Behavior Apr 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 difference between H5 and mini-programs and APPs The difference between H5 and mini-programs and APPs Apr 06, 2025 am 10:42 AM

H5. The main difference between mini programs and APP is: technical architecture: H5 is based on web technology, and mini programs and APP are independent applications. Experience and functions: H5 is light and easy to use, with limited functions; mini programs are lightweight and have good interactiveness; APPs are powerful and have smooth experience. Compatibility: H5 is cross-platform compatible, applets and APPs are restricted by the platform. Development cost: H5 has low development cost, medium mini programs, and highest APP. Applicable scenarios: H5 is suitable for information display, applets are suitable for lightweight applications, and APPs are suitable for complex functions.

The Future of HTML: Evolution and Trends in Web Design The Future of HTML: Evolution and Trends in Web Design Apr 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: Building the Structure of Web Pages HTML: Building the Structure of Web Pages Apr 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.

See all articles