English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Der HTML <b>-Markierung macht den Text nur fett, ohne ihm jegliche Semantik zu bieten. Dieses Tag wird auch oft als <b>-Element bezeichnet.
!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Beispiel von de.oldtoolbag.com</title> </head> <body> <h1>Überschrift 1</h1> <p>Wir möchten diesen Text <b> fett schreiben</b>.</p> </body> </html>Testen Sie und sehen Sie ›/›
IEFirefoxOperaChromeSafari
Alle gängigen Browser unterstützen den <b>-Tag.
Der <b>-Tag definiert fette Texte.
Der HTML <b>-Markierung sollte nicht mit dem <strong>-Markierung verwechselt werden, der den Text hervorhebt.
Der <b>-Markierung wird zum Fettstellen von Text verwendet, aber er betont den Text nicht so wie der <strong>-Markierung. In den meisten Fällen wird empfohlen, den <strong>-Markierung anstelle des <b>-Markierung zu verwenden.
Der "strong"-Tag ist ein Teil des Web-Standards in XHTML, und "strong" bedeutet "hervorheben"; der "b"-Tag ist Teil von HTML, und "b" bedeutet "fett" (bold).
Warum wird "strong" anstelle von "b" verwendet? Tatsächlich könnte diese Frage so formuliert werden: Was unterscheidet XHTML von HTML, und warum sollte man XHTML anstelle von HTML verwenden?
In simple terms: web standards advocate that xhtml does not involve specific presentation forms, "emphasis" can be emphasized by bold, and can also be emphasized in other ways, such as underlines, larger fonts, red, etc., which can change the specific performance of strong through css, this is why b cannot replace strong.
Note:According to HTML 5 of the specification, the <b> tag should be used as a last resort, only when no other tag is more appropriate. HTML 5 Normative Declaration: Titles should be <h1> - <h6> Tag Representation, Emphasized text should be <em> Tag Representation, Important text should be <strong> Tag Representation, Text that is marked or highlighted should be <mark> Tag Representation.
Hint:You can also use CSS's "font-"weight" Attribute Sets Bold Text.
<b> Tag Support HTML Global Attributes.
<b> Tag Support HTML Event Attributes.