[기초강좌] HTML Text Formatting - w3schools 번역 |
w3school 의 강좌 내용을 번역한 글입니다.
원문 : http://www.w3schools.com/html/html_formatting.asp
This text is bold
This text is italicThis is computer output
This is subscript and superscript
HTML Formatting Tags
HTML 은 <b>, <i> 와 같은 tag 를 이용하여 보여지는 형태를 달리 한다.
이런 HTML Tag 들을 formatting tag 라고 부른다. ( 전체 reference 는 이 페이지의 하단을 참고하길.. )
Tip
종종 <strong> 이 <b> 처럼, 그리고 <em> 이 <i> 처럼 표기된다.
하지만 이 태그들은 의미가 다르다.
<b>, <i> 는 각각 진하게, 이탤릭체로 를 의미한다.
<strong>, <em> 는 사용자가 "중요하다" 고 느끼게 만드는 데 의미가 있다.
요즘은 대부분의 브라우저들이 strong 을 진하게로, em 을 이탤릭체로 표기한다.
하지만 어느 날 브라우저가 strong 을 highlight 로 표기하기로 결정했다면, 진하게로 표기하고자 했던 이들에게는 재앙과 같을 것이다.
HTML Text Formatting Tags
| Tag | Description |
|---|---|
| <b> | Defines bold text |
| <em> | Defines emphasized text |
| <i> | Defines a part of text in an alternate voice or mood |
| <small> | Defines smaller text |
| <strong> | Defines important text |
| <sub> | Defines subscripted text |
| <sup> | Defines superscripted text |
| <ins> | Defines inserted text |
| <del> | Defines deleted text |
| <mark> | Defines marked/highlighted text |
HTML "Computer Output" Tags
| Tag | Description |
|---|---|
| <code> | Defines computer code text |
| <kbd> | Defines keyboard text |
| <samp> | Defines sample computer code |
| <var> | Defines a variable |
| <pre> | Defines preformatted text |
HTML Citations, Quotations, and Definition Tags
| Tag | Description |
|---|---|
| <abbr> | Defines an abbreviation or acronym |
| <address> | Defines contact information for the author/owner of a document |
| <bdo> | Defines the text direction |
| <blockquote> | Defines a section that is quoted from another source |
| <q> | Defines an inline (short) quotation |
| <cite> | Defines the title of a work |
| <dfn> | Defines a definition term |
'프로그래밍 놀이터 > Web' 카테고리의 다른 글
| [기초강좌] HTML Links - w3schools 번역 (0) | 2014.03.05 |
|---|---|
| [기초강좌] HTML Comments - w3schools 번역 (0) | 2014.03.04 |
| [기초강좌] HTML Paragraphs - w3schools 번역 (0) | 2014.02.25 |
| [기초강좌] HTML Headings - w3schools 번역 (0) | 2014.02.24 |
| [기초강좌] HTML 속성 ( Attributes ) - w3schools 번역 (0) | 2014.02.23 |
댓글