HTML - 텍스트 형식 고정, 문단 추가, 구분선 추가
코드
<!DOCTYPE html>
<html>
<body>
<pre>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</pre>
<p>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</p>
<h1>This is heading 1</h1>
<hr>
<p>This is some other text.</p>
<hr>
코드 분석
<pre> </pre> 는 사용자가 사이에 적은 내용에 대하여 그대로 출력 합니다.
<p></p>는 하나의 단락을 나타내며, 한줄로 출력 됩니다.
<hr>는 하나의 단락, 줄을 그려주어 텍스트를 구분 지어 줄때 사용합니다. 특이하게 </hr>이 존재 하지 않습니다.

댓글
이름만 적고 남길 수 있어요