728x90
SMALL
#HTML
#br
HTML recognizes multiple consecutive spaces or line breaks as a single space. Therefore, even if you break a line in the code or float it several times, it will be expressed by floating once.
If you want a line break inside a block element, use the br tag. The following is an example of line breaks using the br tag.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
</head>
<body>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nec mollis nulla.
Phasellus lacinia tempus mauris eu laoreet. Proin gravida velit dictum dui consequat malesuada.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nec mollis nulla.<br>
Phasellus lacinia tempus mauris eu laoreet. Proin gravida velit dictum dui consequat malesuada.
</p>
</body>
</html>
The first paragraph is represented by a line break in the code, but in a web browser it floats. The second paragraph breaks where the br tag is.
If you want to write continuously, enter
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
</head>
<body>
<p>Lorem ipsum dolor</p>
</body>
</html>
728x90
LIST
'HTML' 카테고리의 다른 글
[HTML] HTML/q, blockquote/quote (0) | 2022.08.04 |
---|---|
[HTML] HTML/ol, ul, dl/sorted list, unsorted list, definition list (0) | 2022.08.04 |
[HTML] HTML/h1, h2, h3, h4, h5, h6, p/ title and paragraph (0) | 2022.08.04 |
[HTML] HTML / Grammar (0) | 2022.08.04 |
[html] Table (Table) Total organization (total organization, merge, alignment, screen color) (0) | 2022.07.22 |