特殊符号在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;">

相关推荐
华仔啊12 分钟前
用 Vue3 + Canvas 做了个超实用的水印工具,同事都在抢着用
前端·vue.js·canvas
昔人'1 小时前
`tanslate=“no“`避免使用 HTML 中的翻译属性自动翻译品牌名称等
html
Bacon1 小时前
前端:从0-1实现一个脚手架
前端
Bacon1 小时前
前端项目部署实战 nginx+docker持续集成
前端
beckyye1 小时前
阿里云智能语音简单使用:语音识别
前端·语音识别·录音
东东2331 小时前
前端规范工具之husky与lint-staged
前端·javascript·eslint
jump6801 小时前
手写事件总线、事件总线可能带来的内存泄露问题
前端
岁月宁静2 小时前
在 Vue 3.5 中优雅地集成 wangEditor,并定制“AI 工具”下拉菜单(总结/润色/翻译)
前端·javascript·vue.js
执沐2 小时前
基于HTML 使用星辰拼出爱心,并附带闪烁+流星+点击生成流星
前端·html
atwednesday2 小时前
日志处理
javascript