HTML <aside> 태그
예시
배치된 콘텐츠 외에 일부 콘텐츠를 표시합니다.
<p>My family and I visited The Epcot center this summer. The weather was
nice, and Epcot was amazing! I had a great summer together with my
family!</p>
<aside>
<h4>Epcot Center</h4>
<p>Epcot is a theme
park at Walt Disney World Resort featuring exciting attractions,
international pavilions, award-winning fireworks and seasonal special
events.</p>
</aside>
아래에서 더 많은 "직접 사용해 보기" 예를 살펴보세요.
정의 및 사용
태그 는 <aside>
태그가 배치된 콘텐츠 외에 일부 콘텐츠를 정의합니다.
옆 콘텐츠는 주변 콘텐츠와 간접적으로 관련되어야 합니다.
팁:<aside>
콘텐츠는 문서의 사이드바로 배치되는 경우가 많습니다 .
참고: 요소 <aside>
는 브라우저에서 특별한 것으로 렌더링되지 않습니다. 그러나 CSS를 사용하여 <aside>
요소의 스타일을 지정할 수 있습니다(아래 예 참조).
브라우저 지원
표의 숫자는 요소를 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Element | |||||
---|---|---|---|---|---|
<aside> | 6.0 | 9.0 | 4.0 | 5.0 | 11.1 |
전역 속성
<aside>
태그는 HTML의 전역 속성도 지원 합니다 .
이벤트 속성
<aside>
태그는 HTML의 이벤트 속성 도 지원합니다 .
더 많은 예
예시
CSS를 사용하여 <aside> 요소 스타일 지정:
<html>
<head>
<style>
aside {
width: 30%;
padding-left: 15px;
margin-left: 15px;
float: right;
font-style: italic;
background-color: lightgray;
}
</style>
</head>
<body>
<h1>The aside element</h1>
<p>My family and I visited The Epcot
center this summer. The weather was nice, and Epcot was amazing! I had a great
summer together with my family!</p>
<aside>
<p>The Epcot center is a
theme park at Walt Disney World Resort featuring exciting attractions,
international pavilions, award-winning fireworks and seasonal special
events.</p>
</aside>
<p>My family and I visited The Epcot center
this summer. The weather was nice, and Epcot was amazing! I had a great summer
together with my family!</p>
<p>My family and I visited The Epcot center
this summer. The weather was nice, and Epcot was amazing! I had a great summer
together with my family!</p>
</body>
</html>
관련 페이지
HTML DOM 참조: Aside Object
기본 CSS 설정
대부분의 브라우저는 <aside>
다음 기본값으로 요소를 표시합니다.
aside {
display: block;
}