whatisthis?
html. HTML 특수문자 코드표 본문
- HTML에서는 특정 문자들이 예약되어있기 때문에 표기의 혼란을 막기 위해
특수문자를 숫자표현 or 문자표현으로 작성한다.
예를 들면, 공백을  로 쓰거나, <와 >을 가각 <, >처럼 쓴다.
(그냥 막 갖다붙인게 아니고, lt = less than과 같이 의미가 다 있다.)
특수문자
|
숫자표현
|
문자표현
|
설명
|
space | &%09 &%10 &%32 |
수평탭 줄삽입 여백 |
|
  | | space (non-breaking space) |
|
< | < | < | less than |
> | > | > | greater than |
& | & | & | ampersand |
' | ' | ' (IE에서 안됨) | apostrophe |
" | " | " | quotation mark |
‘ | ‘ | ‘ | left single quotation mark |
’ | ’ | ’ | right single quotation mark |
“ | “ | “ | left double quotation mark |
” | ” | ” | right double quotation mark |
° | ° | ° | degree |
· | · | · | middle dot |
× | × | × | multiplication |
÷ | ÷ | ÷ | division |
? | − | − | minus |
∞ | ∞ | ∞ | infinity |
∼ | ∼ | ∼ | simular to |
≠ | ≠ | ≠ | not equal |
≤ | ≤ | ≤ | less or equal |
≥ | ≥ | ≥ | greater or equal |
? | – | – | en dash |
? | — | — | em dash |
? | • | • | bullet |
… | … | … | horizontal ellipsis |
′ | ′ | ′ | minutes |
″ | ″ | ″ | seconds |
? | © | © | copyright |
? | ® | ® | registered trademark |
™ | ™ | ™ | trademark |
ⓒ |
© | © | 저작권 |
- html에서는 두칸 이상의 띄어쓰기도 하나로 인식하기 때문에
여러개의 띄어쓰기가 필요할 때는
를 이용해야한다.
<div> 여러줄 띄어쓰기 </div>
만약,  라는 문자 그대로를 출력하려면?
>> 그냥 를 쓰면 스페이스가 반환되므로
&글자를 &로 바꾸어 쓴다.
<div>&nbsp;</div>
ref.
Entity - MDN Web Docs Glossary: Definitions of Web-related terms | MDN
An HTML entity is a piece of text ("string") that begins with an ampersand (&) and ends with a semicolon (;) . Entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code), and invisible characters (
developer.mozilla.org
HTML Standard
HTMLLiving Standard — Last Updated 3 February 2022 ← 13.2 Parsing HTML documents — Table of Contents — 14 The XML syntax → 13.5 Named character references 13.5 Named character references This table lists the character reference names that are sup
html.spec.whatwg.org
(HTML&DOM) HTML 엔티티(entity) - 이스케이프(escape), 이스케이핑(escaping)
안녕하세요. 이번 시간에는 HTML 엔티티에 대해서 알아보겠습니다! 혹시 HTML 소스를 보다가 나 < 또는 >를 보신 적이 있나요? 이 문자들은 HTML 파일이 깨져서 나타나는 문자가 아닙니다.
www.zerocho.com
'WEB STUDY > HTML,CSS' 카테고리의 다른 글
html. Embedded Contents - 추가설명 (0) | 2022.02.04 |
---|---|
html. 멀티미디어(video/audio) 태그 - 추가설명 (0) | 2022.02.04 |
HTML 기본 태그 총정리 (hyperlink O) (1) | 2022.02.04 |
수정중 ㅡ Html. class와 id, name의 차이 (0) | 2022.01.24 |
CSS part 2 - Float prac.02 (0) | 2022.01.10 |