|
The example of b tag in HTML
<b>This is example of bold text</b>
Working example of b tag
This is example of bold text
The HTML b tag is used to define bold text in webpage.
B tag is related with font property of text. B tag separate text from paragraph and highlight text in paragraph with dark colors./p>
B tag is supported by all web browsers.This b tag is supported by Internet Explorer, firefox, opera, netscape, and google chrome.
B tag supports all common attribute and event attribute.
Common Attribute of b Tag
| Attribute |
Value |
Explaination |
| id |
ID |
unique id document for element |
| class |
classname |
list of CSS classes |
| style |
StyleSheet |
associated style information of style tags |
| title |
Text |
information about an element shown on mouse over cursor |
| lang |
LanguageCode |
Language Code of the element |
| dir |
(ltr|rtl) |
direction for weak/neutral text |
Events Attribute of b Tag
| Attribute |
Value |
Explaination |
| onclick |
event |
Event Fire on mouse button was clicked |
| ondblclick |
event |
Event Fire on a mouse button was double clicked |
| onmousedown |
event |
Event Fire on a mouse button was pressed down |
| onmouseup |
event |
Event Fire on a mouse button was released |
| onmouseover |
event |
Event Fire on a mouse was moved onto |
| onmousemove |
event |
Event Fire on a mouse was moved within |
| onmouseout |
event |
Event Fire on a mouse was moved away |
| onkeypress |
event |
Event Fire on a key was pressed and released |
| onkeydown |
event |
Event Fire on a key was pressed down |
| onkeyup |
event |
Event Fire on a key was released |
|