HTML 사전

p

설명

Paragraph element (<p>) represents a paragraph. It is the most commonly used block-level element.

<p> 태그는 문맥을 표현하기 위해서 사용되며 가장 보편적으로 사용되는 block레벨의 태그이다.

Usage Context

Permitted content Phrasing content
Tag omission None, both the start tag and the end tag are mandatory.
Permitted parent elements Any element that accepts flow content.
Normative document HTML 5, section 4.5.1; HTML 4.01, section 9.3.1

속성

이 엘리먼트는 전역속성을 지원한다.

In HTML5, the align attribute on <p> is Obsolete.

HTML5에서, <p>태그의 align(정렬) 속성은 폐지되었다.

예제

<p>This is the first paragraph of text. This is the first paragraph of text.
  This is the first paragraph of text. This is the first paragraph of text.</p>

<p>This is second paragraph of text. This is second paragraph of text.
   This is second paragraph of text. This is second paragraph of text.</p>

 Above HTML will output: 

위 HTML은 아래와 같이 보여진다.
 This is the first paragraph of text. This is the first paragraph of text. This is the first paragraph of text. This is the first paragraph of text.
 This is second paragraph of text. This is second paragraph of text. This is second paragraph of text. This is second paragraph of text.

To change gaps between paragraphs use CSS margin property. Do not insert empty paragraphs elements or line breaks (<br>) between them.

문단과 문단 사이에 약간의 간격을 두기 위해서 문단 사이에 내용이 없는 태그를 삽입하거나 줄바꿈을 나타내는 <br>태그를 사용해선 안되며, CSS의 margin 속성을 이용하여 작성한다.

DOM Interface

This element implements the HTMLParagraphElement interface.

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원          
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원          

참고

댓글

댓글 본문
버전 관리
crannoc
현재 버전
선택 버전
graphittie 자세히 보기