<span>
시도해보기
특성
이 요소는 전역 특성만 포함합니다.
예제
예제 1
HTML
<p><span>Some text</span></p>
결과
예제 2
HTML
<li><span>
<a href="portfolio.html" target="_blank">See my portfolio</a>
</span></li>
CSS
li span {
background: gold;
}
Result
명세
명세 | 상태 | 코멘트 |
---|---|---|
HTML Living Standard The definition of '<span>' in that specification. |
Living Standard | |
HTML5 The definition of '<span>' in that specification. |
Recommendation | The DOM interface is now HTMLSpanElement . |
HTML 4.01 Specification The definition of '<span>' in that specification. |
Recommendation |
브라우저 호환성
BCD tables only load in the browser
같이 보기
- HTML
<div>
요소