단락태그

imjingu·2023년 6월 27일
0

개발공부

목록 보기
2/481

p: 단락, 본문에서 단락을 구분하거나 나타낼 때 주로 글자를 담아서 표현, p 태그는 레이아웃에 사용하지 말고 본문글의 내용의 단락을 나눌때 사용할 것
br: 본문 작성시 줄을 바꿔야 하는 경우에 사용, 닫는 태그가 없다. <br> <br/>모두 사용 가능

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>단락태그</title>
</head>
<body>
    
    <h1>Header-1</h1>
    <p>
        L <!-- 엔터는 공백으로 봄 -->
        Lorem Ipsum is simply dummy text of the printing and typesetting industry. <br><br><br><br><br><br><br>
        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>
    <hr><!-- 수평 선 -->
    <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와 div 사용을 구분 못하는 경우가 많다 -->
    <div>
        Lorem Ipsum is simply dummy text of the printing and typesetting industry.
    </div>
    <!-- blockquote : 태그는 긴 인용문을 나타낼 때 사용하며, 들여쓰기를 한 것으로 표현 -->
    <blockquote>
        -존 레논(John Lennon) - <br>
        그룹 비틀스의 리더로 작가, 그래픽 아티스트, 소로 가수로도 활동했다.
    </blockquote>
</body>
</html>

0개의 댓글