1) Regarding the difference between b and strong in the html tag , I only noticed it when I used it today. I used to use them mixedly, but I only noticed these two when I was working today. Label difference.
are used on web pages. By default, they all function as bold fonts. The difference between the two is that the tag is an entity tag, and the characters it surrounds will be set to bold (bold), and the tag is a logical tag. Its function is to strengthen the tone of the character. Generally speaking, strengthening the tone of the character is by changing the character to bold (bold). realized.
Note: What is a physical marker? What is a logical tag?
Physical elements emphasize a physical behavior. For example, if I bold a piece of text with a b mark, I mean to tell the browser that it should be bolded for me. Bold displays this text. From the semantics of the word, we can also analyze that b is the abbreviation of Bold (bold), so the meaning conveyed by this B mark is only bold, without any other effect. .
And we can know from the literal understanding of Strong that it means emphasis, so we use this tag to convey a message to the browser to emphasize a certain paragraph of text, and this Strong is what we call a logical element. It emphasizes the logic of the document, not telling the browser how it should be displayed.
Similarly, I is Italic (italic), and em is emphasize (emphasis).
So: the physical elements tell the browser in what format I should display the text, and the logical elements tell the browser how important these texts are.
Summary: Simply put, strong is the tag of xhtml in the web standard, and strong means "emphasis"; b is the of html, and the tag of b It means bold. Web standards advocate that xhtml does not involve specific forms of expression. "Emphasis" can be emphasized by bolding or other methods, such as underlining, increasing the font size, such as red, etc. Strong can be changed through CSS specific performance.
It’s not that with strong, b is eliminated, but this b is very innocent, just because it means bolding the font, which happens to be the same as the effect of strong by default. In fact, this strong can be completely The emphasis effect defined as another style
WEB standards advocate the separation of style and content, so it is no longer recommended to use B purely to achieve boldness.
From the perspective of XHTML document meaningfulness and user experience, strong is more beneficial and is recommended to be used. As for SEO, it depends on the optimization situation.
Conclusion: For search engines, and are more important than and . In order to comply with the current W3C standards, it is recommended to use the strong tag.
2) The tag tells the browser to represent the text within it as emphasized content. For all browsers, this means displaying this text in italics.
Adding emphasis to text also requires skills. If you emphasize too much, some important phrases will be missed; if you emphasize too little, you won't really highlight the important parts. It's the same with condiments that it's best not to overuse the emphasis.
Although the contents modified by tags are currently displayed in italics, these contents also have a broader meaning. One day in the future, browsers may also use other special effects to Display highlighted text. If you only want to italicize text, use the tag. In addition, documents can also include cascading style definitions that change the display of text.
In addition to emphasis, consider using the tag when introducing new terms or as a set style when referencing a specific type of term or concept. For example, W3School often uses tags for important terms. The tag can be used to distinguish these names from other italicized words.
The conclusion is the same as above. In order to comply with the current W3C standards, it is recommended to use the tag.
3) Note: The tag is the same as the tag, which is used to emphasize text, but it emphasizes The degree is stronger.
The above is the detailed content of The difference between and , and tags in HTML. For more information, please follow other related articles on the PHP Chinese website!

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.

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.

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

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.

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.

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

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.

HTMLisaspecifictypeofcodefocusedonstructuringwebcontent,while"code"broadlyincludeslanguageslikeJavaScriptandPythonforfunctionality.1)HTMLdefineswebpagestructureusingtags.2)"Code"encompassesawiderrangeoflanguagesforlogicandinteract


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

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version
Useful JavaScript development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Zend Studio 13.0.1
Powerful PHP integrated development environment