--- id: html-paragraphs title: "HTML Paragraphs" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["paragraph tag", "p element", "br", "pre", "hr", "line break", "preformatted text", "horizontal rule"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.90 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["html", "web", "frontend", "w3schools", "paragraphs", "text"] raw_sources: ["https://www.w3schools.com/html/html_paragraphs.asp"] applied_in: [] github_commit: "" --- # [[HTML Paragraphs]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The `

` element defines a paragraph that always starts on a new line with browser-added margins, and the browser collapses any extra spaces and blank lines in the source. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`

` defines a paragraph** β€” always starts on a new line; browsers add white space (margin) before and after. [S1] - **Whitespace is collapsed** β€” the browser automatically removes any extra spaces and lines when the page is displayed. [S1] - **Display is unpredictable** β€” you cannot be sure how HTML will display; different screen sizes and resized windows give different results. [S1] - **`
` is a line break** β€” inserts a single line break without starting a new paragraph; it is an empty element with no end tag. [S1] - **`

` preserves formatting** β€” preformatted text displays in a fixed-width font and keeps both spaces and line breaks. [S1]
- **`
` is a thematic break** β€” defines a thematic change in content, displayed as a horizontal rule. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Don't rely on source whitespace** β€” formatting must come from tags/CSS, not extra spaces or newlines. [S1] - **`
` for in-paragraph breaks** β€” use it when you want a new line without a new paragraph. [S1] - **`
` for poems/code-like text** β€” when whitespace and line breaks must be preserved. [S1]

## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details)
**HTML Paragraphs**
A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph. The `

` element defines a paragraph: [S1] ```html

This is a paragraph.

This is another paragraph.

``` **HTML Display** You cannot be sure how HTML will be displayed. Large or small screens, and resized windows, will create different results. With HTML, you cannot change the display by adding extra spaces or extra lines in your HTML code. The browser will automatically remove any extra spaces and lines when the page is displayed. [S1] **HTML Line Breaks** The HTML `
` element defines a line break. Use `
` if you want a line break (a new line) without starting a new paragraph: [S1] ```html

This is
a paragraph
with line breaks.

``` The `
` tag is an empty tag, which means that it has no end tag. [S1] **The HTML `
` Element**
The HTML `
` element defines preformatted text. The text inside a `
` element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks: [S1]
```html
  My Bonnie lies over the ocean.

  My Bonnie lies over the sea.
``` **HTML Horizontal Rules** The `
` tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule. The `
` element is used to separate content (or define a change) in an HTML page. The `
` tag is an empty tag, which means that it has no end tag. [S1] **Tag reference** | Tag | Description | |---|---| | `

` | Defines a paragraph | | `


` | Defines a thematic change in the content | | `
` | Inserts a single line break | | `
` | Defines pre-formatted text |

## πŸ› οΈ 적용 사둀 (Applied in summary)
The poem inside `
` shows when preformatting is needed (preserving the layout of verse), while `
` and `
` show how to control breaks within and between content blocks. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Two paragraphs (HTML): ```html

This is a paragraph.

This is another paragraph.

``` Line breaks within a paragraph: ```html

This is
a paragraph
with line breaks.

``` Preformatted text: ```html
  My Bonnie lies over the ocean.

  My Bonnie lies over the sea.
``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) A common beginner expectation is corrected here: extra spaces and blank lines in the HTML source do NOT affect the rendered output β€” the browser collapses them. Use `
`, `
`, or CSS for intended spacing. [S1]

## βœ… 검증 μƒνƒœ 및 신뒰도
- **μƒνƒœ:** draft
- **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯)
- **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body)
- **μ‹ λ’° 점수:** 0.90
- **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery)

## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph)
- **μƒμœ„/루트:** [[HTML Tutorial]]
- **κ΄€λ ¨ κ°œλ…:** [[HTML Headings]], [[HTML Basic]], [[HTML Formatting]], [[HTML Elements]]
- **μ°Έμ‘° λ§₯락:** Referenced whenever laying out body text, breaks, and preformatted blocks on a page.

## πŸ“š 좜처 (Sources)
- [S1] W3Schools β€” HTML Paragraphs β€” https://www.w3schools.com/html/html_paragraphs.asp

## πŸ“ λ³€κ²½ 이λ ₯ (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "HTML Paragraphs" page (Astra wiki-curation, P-Reinforce v3.1 format).