博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
字符实体的特殊符号_HTML实体– HTML空间以及其他HTML符号和特殊字符代码的列表
阅读量:2520 次
发布时间:2019-05-11

本文共 8970 字,大约阅读时间需要 29 分钟。

字符实体的特殊符号

Most ASCII characters have a special code you can use in HTML to make that character reliably appear.

大多数ASCII字符都有特殊的代码,您可以在HTML中使用该代码来可靠地显示该字符。

These HTML Entities are particularly helpful for, say, manually inserting whitespace into your HTML.

这些HTML实体对于例如将空白手动插入HTML尤其有用。

Each of these codes starts with an ampersand and ends with a semicolon.

这些代码中的每一个都以“&”号开头,以分号结尾。

You can use these anywhere in your HTML to reliably create that character. It should render the same regardless of which language your users' browsers are set to.

您可以在HTML中的任何位置使用这些字符来可靠地创建该字符。 无论用户的浏览器设置为哪种语言,它都应呈现相同的效果。

Some of symbols these have easier-to-remember codes. For example, the Euro currency character (€) is €

这些符号中的某些具有易于记忆的代码。 例如,欧元货币字符(€)为€

Where possible, I've used these easier-to-remember codes instead of their numeric codes.

在可能的情况下,我使用了这些易于记忆的代码,而不是数字代码。

如何使用  空格字符代码 (How to Use the   whitespace character code)

For example, if you wanted to insert a whitespace character, you could do something like this:

例如,如果要插入空格字符,则可以执行以下操作:

Superpower: listening

You can even insert several of these in a row to create make-shift text padding:

您甚至可以将其中几个插入一行以创建临时文本填充:

Superpower:   listening

如何使用&13;在HMTL中制作换行符。 换行符代码 (How to Make a Newline in HMTL using the &13; newline character code)

If you wanted to force a newline:

如果要强制换行符:

This is paragraph text and woops there is a new line.

And yes, you can use several of these back-to-back, too:

是的,您也可以连续使用其中一些:

This is paragraph text and woops there are several new lines.

常用HTML实体字符代码的完整列表 (A Full List of Commonly-Used HTML Entity Character Codes)

Below is a nice ASCII-formatted table of the most commonly-used symbols and characters. It took me a while to assemble all of these get them looking good.

下面是一个漂亮的ASCII格式的表格,其中包含最常用的符号和字符。 我花了一些时间来组装所有这些东西,使它们看起来不错。

As a developer, when I search for these codes I often get results that are image-based. These are inaccessible to people with visual disabilities, and make it hard for everyone to copy-paste the codes.

作为开发人员,当我搜索这些代码时,通常会得到基于图像的结果。 视障人士无法访问这些代码,这使每个人都很难复制粘贴代码。

So if you find this helpful, please link to it and share it with your friends so more people can benefit from it. 😉

因此,如果您发现此功能有用,请链接到此页面并与您的朋友分享,以便更多的人可以从中受益。 😉

+----------+--------+-----------------------------+|  &code   | symbol |         description         |+----------+--------+-----------------------------+| !    | !      | exclamation point           || "    | "      | double quotation mark       || #    | #      | hash symbol (octothorpe)    || $    | $      | dollar sign                 || %    | %      | percentate sign             || &    | &      | ampersand                   || '    | '      | apostrophe                  || (    | (      | left parenthesis            || )    | )      | right parenthesis           || *    | *      | asterisk                    || +    | +      | plus sign                   || ,    | ,      | comma                       || -    | -      | hyphen                      || .    | .      | period                      || /    | /      | forward slash               || 0    | 0      | the number 0                || 1    | 1      | the number 1                || 2    | 2      | the number 2                || 3    | 3      | the number 3                || 4    | 4      | the number 4                || 5    | 5      | the number 5                || 6    | 6      | the number 6                || 7    | 7      | the number 7                || 8    | 8      | the number 8                || 9    | 9      | the number 9                || :    | :      | colon                       || ;    | ;      | semicolon                   || <    | <      | less-than symbol            || =    | =      | equals symbol               || >    | >      | greater-than symbol         || ?    | ?      | question mark               || @    | @      | at symbol                   || A    | A      | uppercase A                 || B    | B      | uppercase B                 || C    | C      | uppercase C                 || D    | D      | uppercase D                 || E    | E      | uppercase E                 || F    | F      | uppercase F                 || G    | G      | uppercase G                 || H    | H      | uppercase H                 || I    | I      | uppercase I                 || J    | J      | uppercase J                 || K    | K      | uppercase K                 || L    | L      | uppercase L                 || M    | M      | uppercase M                 || N    | N      | uppercase N                 || O    | O      | uppercase O                 || P    | P      | uppercase P                 || Q    | Q      | uppercase Q                 || R    | R      | uppercase R                 || S    | S      | uppercase S                 || T    | T      | uppercase T                 || U    | U      | uppercase U                 || V    | V      | uppercase V                 || W    | W      | uppercase W                 || X    | X      | uppercase X                 || Y    | Y      | uppercase Y                 || Z    | Z      | uppercase Z                 || [    | [      | left square bracket         || \    | \      | backslash                   || ]    | ]      | right square bracket        || ^    | ^      | caret                       || _    | _      | underscore                  || `    | `      | backtick                    || a    | a      | lowercase a                 || b    | b      | lowercase b                 || c    | c      | lowercase c                 || d   | d      | lowercase d                 || e   | e      | lowercase e                 || f   | f      | lowercase f                 || g   | g      | lowercase g                 || h   | h      | lowercase h                 || i   | i      | lowercase i                 || j   | j      | lowercase j                 || k   | k      | lowercase k                 || l   | l      | lowercase l                 || m   | m      | lowercase m                 || n   | n      | lowercase n                 || o   | o      | lowercase o                 || p   | p      | lowercase p                 || q   | q      | lowercase q                 || r   | r      | lowercase r                 || s   | s      | lowercase s                 || t   | t      | lowercase t                 || u   | u      | lowercase u                 || v   | v      | lowercase v                 || w   | w      | lowercase w                 || x   | x      | lowercase x                 || y   | y      | lowercase y                 || z   | z      | lowercase z                 || {   | {      | left curly brace            || |   | |      | vertical bar                || }   | }      | right curly brace           || ~   | ~      | tilde                       || ←   | ←      | left arrow                  || ↑   | ↑      | up arrow                    || →   | →      | right arrow                 || ↓   | ↓      | down arrow                  || ↔   | ↔      | left-right arrow            || ⇐   | ⇐      | left double arrow           || ⇑   | ⇑      | up double arrow             || ⇒   | ⇒      | right double arrow          || ⇓   | ⇓      | down double arrow           || ⇔   | ⇔      | left-right double arrow     || ‘  | ‘      | left single smart quote     || ’  | ’      | right single smart quote    || “  | “      | left double smart quote     || ”  | ”      | right double smart quote    || ‚  | ‚      | single low quotation mark   || „  | „      | double low quotation mark   || –  | -      | en dash                     || —  | –      | em dash                     ||     |        | nonbreaking space           || ¡  | ¡      | inverted exclamation mark   || §   | §      | section sign (used in law)  || ¦ | ¦      | broken vertical bar         || ©   | ©      | copyright symbol            || ®    | ®      | registered trademark symbol || ™  | ™      | trademark sign              || ¢   | ¢      | cent sign                   || £  | £      | Pound Sterling sign         || ¥    | ¥      | Yen sign                    || €   | €      | Euro sign                   || ± | ±      | plus-or-minus sign          || µ  | µ      | micro symbol (mu)           || &183;    | ·      | middle dot character        || °    | °      | degree sign                 || ¹   | ¹      | superscript one             || ²   | ²      | superscript two (squared)   || ³   | ³      | superscript three (cubed)   || ¶   | ¶      | paragraph sign              || · | ·      | middle dot                  || ¼ | ¼      | one quarter fraction        || ½ | ½      | one half fraction           || ¾ | ¾      | three quarters fraction     || ¿ | ¿      | inverted question mark      || †  | †      | dagger                      || ‡  | ‡      | double dagger               || •  | •      | bullet                      || …  | …      | ellipsis (three dots)       |+----------+--------+-----------------------------+

翻译自:

字符实体的特殊符号

转载地址:http://rvzzd.baihongyu.com/

你可能感兴趣的文章
Android Socket连接PC出错问题及解决
查看>>
Android Studio-—使用OpenCV的配置方法和demo以及开发过程中遇到的问题解决
查看>>
第2天线性表链式存储
查看>>
python自动化测试-D11-学习笔记之一(yaml文件,ddt)
查看>>
mysql存储过程使用游标循环插入数据
查看>>
Ubuntu 12.04 添加新用户并启用root登录
查看>>
20145309信息安全系统设计基础第9周学习总结上
查看>>
c# 字段、属性get set
查看>>
td内容超出隐藏
查看>>
Spring CommonsMultipartResolver 上传文件
查看>>
Settings app简单学习记录
查看>>
SQLAlchemy
查看>>
多线程
查看>>
使用缓存的9大误区(下)转载
查看>>
appium键值对的应用
查看>>
MyEclipse 8.X 通用算法
查看>>
selenium.Phantomjs设置浏览器请求头
查看>>
分布式数据库如何选择,几种分布式数据库优缺点一览
查看>>
BZOJ 4443: 小凸玩矩阵【二分图】
查看>>
苹果 OS X制作u盘启动盘
查看>>