常用特殊字元
很多特殊的符號是需要特別處理的,比如說“<”;、“>”這兩個符號若想要呈現在網頁上,是沒有辦法直接打“<”的,要呈現“<”必須輸入編碼表示法:“<”,常用的如下:
參考網頁:
- Punctuation - Wikipedia, the free encyclopedia
- WIK - The HTML Document Character Set
- 周明網頁製作系列 - 特殊字元實體參照碼
| 原始碼 | 呈現結果 | 符號名稱 |
|---|---|---|
| | (一個不斷行空白) | space |
| & | & | ampersand |
| ' | ' | single quote |
| " | " | double quote |
| < | < | less than sign |
| > | > | great than sign |
| ü | ü | |
| Ü | Ü | |
| ä | ä | |
| Ä | Ä | |
| ö | ö | |
| Ö | Ö | |
| ‹ | ‹ | |
| › | › | |
| « | « | |
| » | » | |
| ` | backquote / grave accent | |
| ′ | prime | |
| ~ | tilde / swung dash | |
| ! | exclamation mark | |
| @ | at | |
| # | number sign / pound sign / hash / crosshatch / octothorp | |
| $ | dollar sign | |
| % | percentage | |
| ^ | ||
| * | asterisk | |
| ( ) ( ) | curved brackets / parentheses | |
| [ ] 【 】 | square brackets | |
| { } | curly brackets | |
| 〈 〉 | angle brackets | |
| : | colon | |
| , | camma | |
| . | full stop / period | |
| ‒ – — ― | dashes | |
| … ... | ellipsis | |
| - ‐ | hyphen | |
| ‽ | interrobang | |
| ? | question mark | |
| ; | semicolon | |
| / | slash / solidus | |
| \ | backslash | |
| · | interpunct | |
| ⁂ | asterism | |
| _ | underscore / understrike | |
| | | vertical bar / vertical line / pipe | |
| • | bullet | |
| † ‡ | dagger | |
| ° | degrees | |
| ¤ | currency | |
| § | section sign | |
| ¶ | pilcrow |