The difference between and tags in html
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's Republic of China">PRC</abbr> 是中华人名共和国。</p>
Rendering:
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



C language functions are the basis for code modularization and program building. They consist of declarations (function headers) and definitions (function bodies). C language uses values to pass parameters by default, but external variables can also be modified using address pass. Functions can have or have no return value, and the return value type must be consistent with the declaration. Function naming should be clear and easy to understand, using camel or underscore nomenclature. Follow the single responsibility principle and keep the function simplicity to improve maintainability and readability.

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.

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

C language functions are reusable code blocks. They receive input, perform operations, and return results, which modularly improves reusability and reduces complexity. The internal mechanism of the function includes parameter passing, function execution, and return values. The entire process involves optimization such as function inline. A good function is written following the principle of single responsibility, small number of parameters, naming specifications, and error handling. Pointers combined with functions can achieve more powerful functions, such as modifying external variable values. Function pointers pass functions as parameters or store addresses, and are used to implement dynamic calls to functions. Understanding function features and techniques is the key to writing efficient, maintainable, and easy to understand C programs.

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.

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

Although C and C# have similarities, they are completely different: C is a process-oriented, manual memory management, and platform-dependent language used for system programming; C# is an object-oriented, garbage collection, and platform-independent language used for desktop, web application and game development.

Detailed explanation of XPath search method under DOM nodes In JavaScript, we often need to find specific nodes from the DOM tree based on XPath expressions. If you need to...
