--- id: html-formatting title: "HTML Formatting" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["text formatting", "bold", "italic", "strong", "em", "mark", "sub", "sup", "del", "ins", "small"] 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", "formatting", "text", "semantics"] raw_sources: ["https://www.w3schools.com/html/html_formatting.asp"] applied_in: [] github_commit: "" --- # [[HTML Formatting]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) HTML provides several elements for displaying text with special meaning β€” some purely visual (``, ``) and some semantic (``, ``) that also convey importance or emphasis. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Formatting elements** β€” HTML contains several elements for defining text with a special meaning. [S1] - **Ten core elements** β€” ``, ``, ``, ``, ``, ``, ``, ``, ``, ``. [S1] - **`` vs ``** β€” `` defines bold text without extra importance; `` defines text with strong importance (also rendered bold). [S1] - **`` vs ``** β€” `` defines text in an alternate voice/mood (italic); `` defines emphasized text (italic), and a screen reader will pronounce `` words with verbal stress. [S1] - **Visual vs semantic** β€” choose ``/`` when meaning matters (accessibility, search), ``/`` for purely stylistic differences. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Inline semantic markup** β€” wrap a span of text in a formatting element inside flowing content (e.g. inside a `

`). [S1] - **Edit tracking** β€” pair `` (deleted) with `` (inserted) to show changes. [S1] - **Scientific notation** β€” use `` for subscript (e.g. chemical formulas) and `` for superscript (e.g. footnotes). [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) HTML contains several elements for defining text with a special meaning. The formatting elements are: [S1] - `` β€” Bold text - `` β€” Important text - `` β€” Italic text - `` β€” Emphasized text - `` β€” Marked text - `` β€” Smaller text - `` β€” Deleted text - `` β€” Inserted text - `` β€” Subscript text - `` β€” Superscript text **HTML `` and `` Elements** The `` element defines bold text, without any extra importance: [S1] ```html This text is bold ``` The `` element defines text with strong importance. The content inside is typically displayed in bold: [S1] ```html This text is important! ``` **HTML `` and `` Elements** The `` element defines a part of text in an alternate voice or mood. The content inside is typically displayed in italic: [S1] ```html This text is italic ``` The `` element defines emphasized text. The content inside is typically displayed in italic. A screen reader will pronounce the words in `` with an emphasis, using verbal stress: [S1] ```html This text is emphasized ``` **HTML `` Element** The `` element defines smaller text: [S1] ```html This is some smaller text. ``` **HTML `` Element** The `` element defines text that should be marked or highlighted: [S1] ```html

Do not forget to buy milk today.

``` **HTML `` Element** The `` element defines text that has been deleted from a document. Browsers usually strike a line through deleted text: [S1] ```html

My favorite color is blue red.

``` **HTML `` Element** The `` element defines a text that has been inserted into a document. Browsers usually underline inserted text: [S1] ```html

My favorite color is blue red.

``` **HTML `` Element** The `` element defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. It can be used for chemical formulas, like H2O: [S1] ```html

This is subscripted text.

``` **HTML `` Element** The `` element defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. It can be used for footnotes, like WWW[1]: [S1] ```html

This is superscripted text.

``` **HTML Text Formatting Elements** | Tag | Description | |---|---| | `` | Defines bold text | | `` | Defines emphasized text | | `` | Defines a part of text in an alternate voice or mood | | `` | Defines smaller text | | `` | Defines important text | | `` | Defines subscripted text | | `` | Defines superscripted text | | `` | Defines inserted text | | `` | Defines deleted text | | `` | Defines marked/highlighted text | ## πŸ› οΈ 적용 사둀 (Applied in summary) The examples show real inline uses: highlighting a shopping item (``), tracking an edit from blue to red (``/``), and notating science/footnotes (``/``). No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Bold vs important (HTML): ```html This text is bold This text is important! ``` Italic vs emphasized: ```html This text is italic This text is emphasized ``` Marked, deleted/inserted, sub/superscript: ```html

Do not forget to buy milk today.

My favorite color is blue red.

This is subscripted and superscripted text.

``` ## βš–οΈ 비ꡐ 및 선택 κΈ°μ€€ (Comparison & decision criteria) | Element | Renders as | Conveys meaning? | Use when | |---|---|---|---| | `` | Bold | No (purely stylistic) | You want bold text with no added importance [S1] | | `` | Bold | Yes β€” strong importance | The text is genuinely important (semantics/accessibility) [S1] | | `` | Italic | No (alternate voice/mood) | A span is in a different voice or mood, not emphasized [S1] | | `` | Italic | Yes β€” emphasis (screen reader stresses it) | You want to emphasize text meaningfully [S1] | ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) The source clarifies a frequent confusion: ``/`` and ``/`` look identical (bold/italic) but differ in meaning. `` and `` carry semantic weight (importance/emphasis) that assistive technology and search engines act on, while `` and `` are stylistic only. [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 Paragraphs]], [[HTML Styles]], [[HTML Basic]], [[HTML Elements]] - **μ°Έμ‘° λ§₯락:** Referenced whenever marking up inline text meaning β€” emphasis, importance, edits, or scientific notation. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” HTML Formatting β€” https://www.w3schools.com/html/html_formatting.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "HTML Formatting" page (Astra wiki-curation, P-Reinforce v3.1 format).