생활코딩

Coding Everybody

코스 전체목록

닫기

줄바꿈 - br

목적

새로운 행에서부터 입력이 시작되도록 합니다. A forced line-break의 줄임말

예제

<html>
<head><meta charset="utf-8"></head>
<body>
HyperText Markup Language, commonly referred to as HTML, is the standard markup language used to create web pages. Along with CSS, and JavaScript, HTML is a cornerstone technology, used by most websites to create visually engaging webpages, user interfaces for web applications, and user interfaces for many mobile applications.[1] Web browsers can read HTML files and render them into visible or audible web pages. HTML describes the structure of a website semantically along with cues for presentation, making it a markup language, rather than a programming language.<br><br><br>

HTML elements form the building blocks of all websites. HTML allows images and objects to be embedded and can be used to create interactive forms. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items.<br><br><br>

The language is written in the form of HTML elements consisting of tags enclosed in angle brackets. Browsers do not display the HTML tags and scripts, but use them to interpret the content of the page<br><br><br>
</body>
</html>

 

등장시기

html2

댓글

댓글 본문
  1. 굿모닝
    br 태그도 p 태그처럼 문단 띄어쓰기 사용이지만 br 태그 횟수에 따라 문단 띄어쓰기가 가능해진다.
  2. 김돕희
    br 태그는 자유롭게 줄바꿈을 할 수 있도록 도와주는 종료태그가 없는 빈 태그이다.
  3. 메모하는개발자
    240116-완료
  4. 미래도비
    1.4
  5. JiHyun
    2023년 12월 14일 목요일 학습완료!
  6. 고요
    p 태그는 단락나누기, br태그는 단순 줄바꿈
  7. 원지영
    br 완료
  8. 다겸란
    감사합니다.
  9. DreamBoy
    2023.09.05. HTML - 주요태그 - 줄바꿈 - br 파트 완료했습니다.
  10. AgainstartJH
    2022년 11월 07일 월요일 학습완료!
  11. yuyu
    220922
  12. 헤밍웨이
    220822
  13. vigorously27
    2022년 7월 9일 학습완료!
  14. 이슬유치원
    22.6.20 줄바꿈 태그 <br>
  15. eunbee
    22-05-04
  16. G.I.R.O
    22.04.05 완료
  17. 09년생개발자
    2022/3/20 완료!
  18. INJE
    22/03/03
  19. 강수빈
    21.1.15 수강완료
  20. jjy_lee2468
    21.12.27완료
  21. syh712
    2021-12-17
  22. 코딩혁명
    수강완료. 감사합니다.
  23. 드림보이
    2021.11.04. 줄바꿈 -br 태그 파트 수강완료
  24. 황금아가리
    211002
  25. 김큼이
    20210914완료
  26. evian
    20210914 완료
  27. overmatch
    20210821 완료
  28. 두드
    2021.07.20 완료
  29. 2021.07.16 완
  30. 옥이야
    완료
  31. 감자먹는넘
    감자
  32. 오뉴오뉴
    2021.6.3
  33. barozaqu
    20210513.
  34. GelandeWagen
    210510 ok
  35. 역사단 보존서고지원병
    2021.04.14 완료
  36. 짜rr
    감사히 잘봣습니다
  37. yogg
    줄바꿈 태그 <br>
    그러나 의미적으로는 단락은 <p>태그를 사용하자
  38. 모리미
    완료
  39. genie
    210217 완료
  40. 전예진
    20.02.15 완료
  41. loveahav
    완료
  42. dypar
    2021-02-06
  43. 이현수
    2021.02.02(화)
  44. 임태경
    완료했어요 감사해요
  45. 이오
    2012.1.31 감사합니다~! <br>
  46. 스마일가이
    2021.01.24.완료 감사합니다
  47. 엘리심
    1/19 완료
  48. Minint
    2021.01.19
  49. 원코딩
    2020.11.30
  50. 김지원
    20.11.19
    br태그는 줄바꿈 태그이다.
    p태그와의 차이는 p태그는 단락별로 열림, 닫힌태그를 써야하는 반면에
    br태그는 내용이 없는 태그로 줄바꿈하고 싶은 위치에 열린태그만 적어주면 된다.
    예)
    <P>안녕하세요 저는 000입니다.</P>
    안녕하세요 저는 000입니다,<br >

    - br을 한번만 써주면 한줄만되며 br을 두번쓰면 두줄 세번쓰면 세줄....
    - p는 하나의 단락이라는 정보가 표현되지만 br태그는 시각적으로 줄바꿈을 표시한거 뿐이다.
    따라서 하나의 단락을 표현하고 싶다면 p태그를 사용하며 css로 간격을 조절하는것이 좋다.
버전 관리
egoing
현재 버전
선택 버전
graphittie 자세히 보기