<b>

HTML <b> 요소는 특별한 중요성이나 관련성 없이 다른 글자와의 문체가 다른 글자의 범위를 나타냅니다. It is typically used for keywords in a summary, product names in a review, or other spans of text whose typical presentation would be boldfaced. Another example of its use is to mark the lead sentence of each paragraph of an article.

속성

이 요소는 전역 속성만을 가질수 있습니다.

사용 참고

  • <b> 요소와 <strong>, <em>,<mark> 요소들을 혼동하지 마세요. <strong> 요소는 중요한 글자를 나타내며, <em> 요소는 글자에 약간의 강조를 주며, <mark> 요소는 글자의 관련성을 나타냅니다. <b> 요소는 어떠한 특별한 시멘틱 정보를 전달하지 않습니다; 다른 맞는 요소가 없을떄 사용합니다.
  • 유사하게, <b> 요소를 타이틀과 제목을 표시하는데 쓰지 마세요. For this purpose, use the <h1> to <h6> tags. Further, stylesheets can change the default style of these elements, with the result that they are not necessarily displayed in bold.
  • It is a good practice to use the class attribute on the <b> in order to convey additional semantic information (for example <b class="lede"> for the first sentence in a paragraph). This eases the development of several stylings of a web document, without the need to change its HTML code.
  • Historically, the <b> element was meant to make text boldface. Styling information has been deprecated since HTML4, so the meaning of the <b> element has been changed.
  • <b> 요소를 사용하는데에 있어 아무런 시멘틱 목적이 없다면,, css 속성 font-weight 과 bold 값을 사용하는것이 글자를 굵게 만드는데에 더 좋습니다.

예제

<p>
  This article describes several <b class="keywords">text-level</b> elements.
  It explains their usage in an <b class="keywords">HTML</b> document.   
</p>
Keywords are displayed with the default style of the <b>
element, likely in bold.

결과

명세

명세 상태 주석
HTML Living Standard
The definition of '<b>' in that specification.
Living Standard  
HTML5
The definition of '<b>' in that specification.
Recommendation  
HTML 4.01 Specification
The definition of '<b>' in that specification.
Recommendation  

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
bChrome Full support YesEdge Full support YesFirefox Full support 1
Notes
Full support 1
Notes
Notes Before Firefox 4, this element implemented the HTMLSpanElement interface instead of the standard HTMLElement interface.
IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
See implementation notes.
See implementation notes.

같이 보기