特殊符号在Html中的代码及常用标签格式的记录

Html 特殊符号转译代码

序号 符号 表示符 序号 符号 表示符 序号 符号 表示符
1 [ &#91; 2 / &#47; 3 < &#60;
4 ] &#93; 5 \ &#92; 6 > &#62;
7 ! &#33; 8 # &#35; 9 & &#38;
10 $ &#36; 11 % &#37; 12 空格 &nbsp;
圆点 &bull; 或 &#8226;

Html文字格式标签的设置

p标签等段落内部设置单个字的样式:<span style="font-weight: bold; font-size: 1.5em;"> </span>

首行文字缩进2个字符:<p style="text-indent: 2em;">

下划线文字:<p style="text-decoration: line-through;">

删除线文字:<p style="text-decoration: line-through;">

居中显示:< p style="text-align: center;">

字体1.6px、1.8倍行高、深灰色的文字段落:<p style="font-size: 16px; line-height: 1.8; color: #333;" >

这是紫色、24像素、Arial字体的文字:<p style="color: purple; font-size: 24px; font-family: 'Arial', sans-serif;">

这是橙色、加粗、带有背景色的文字:<p style="color: #ff6600; font-size: 18px; font-weight: bold; background-color: #f0f0f0; padding: 15px;">

相关推荐
乖女子@@@5 小时前
Vue-Pinia
前端
Github项目推荐5 小时前
你的中间件一团糟-是时候修复它了-🛠️
前端·后端
deepdata_cn5 小时前
基于JavaScript的智能合约平台(Agoric)
javascript·区块链·智能合约
Bacon5 小时前
JWT 鉴权:小白友好版讲解 + 图形化拆解
前端
Maschera966 小时前
扣子同款半固定输入模板的简单解决方案
前端·react.js
待╮續6 小时前
Java开发 - 缓存
前端·bootstrap·html
webKity6 小时前
React 的基本概念介绍
javascript·react.js
Scarlett6 小时前
初识cocos,实现《FlappyBird》h5游戏
前端·cocos creator
古夕6 小时前
Vue 3 复杂表单父子组件双向绑定的最佳实践
前端·javascript·vue.js