HTML

HTML 본문 글자 태그 <p>

novar.log 2020. 11. 22. 09:38

<p> 태그의 약자는 paragraph라고 하며, 본문 텍스트를 입력할 때 쓰이는 태그이다.

 

하나의 문단을 만들 때 쓰인다.

 

본문 글자 태그인 <p> 태그는 Block 태그이다.

 

 

Block 태그란

태그를 입력할 때마다 내용이 밑으로 쌓이게 되는 것을 Block 태그라고 한다.

 

 

사용방법

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <p>What is Lorem Ipsum?</p>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>

    <p>Why do we use it?</p>
    <p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
  </body>
</html>