当前位置: 首页 > news >正文

HTML中的文字与分区标记

1.font标记:用来设置文字的字体,大小,颜色,等属性

<!--font:font标记用来设置字体大小颜色属性size:设置字号,默认是3号,+1表示4号,-1表示2号,取值范围是[+1,+7]或[-7,-1]color:设置文字的颜色,有 black blue gray green lime...共16钟face:设置字体,默认为宋体--><font size="+1" color="green" face="宋体"> 潇潇暮雨子规啼</font>

2.hn标记:标题标记,n为1~6,n越大标题越小

 <!-- hn:标题标记属性align:对齐方式有 left right center--><h2>我是一个标题</h2>

3.段落标记p,自动再段落前后换行的

4.br换行标记是一个单标记,两个换行标记相当于一个p

 <!-- p:段落标记,自动再段落前后添加换行属性align:对齐方式有 left right center--><p>大家好!</p>

4.预格式化标记pre:保留源代码中的格式

    <!-- pre:预格式化标记  保留源代码中的格式 --><pre>hey will be staying for five days.How long time will you be staying? </pre>

 

5.居中标记center 

    <!--center: 居中 --><center>Are you ok?</center>

6.缩排标记 blockquote:左侧缩进,而且让字数变得紧凑

 <!--blockquote: 缩排标记 左侧缩进,而且让字数变得紧凑--><blockquote>The Greenwood Boys are a group of pop singers.At present,they are visiting all partsof the country.They will be arrving here tomorrow.They will be comming by train and most of the young people in thw town will be meeting themat the station. Tomorrow evening they will be singing at the Wrokers' Club.The Greenwood Boys will be staying five days. During this time,they will give five performances.As usual,the police will have a difficult time.they will be trying keep  order.It is always the same one these occasions.</blockquote>

 

7.水平线标记hr:就是一条分割线

<!-- hr:水平线 size:大小width:宽度color=水平线颜色align:对齐方式 默认居中center 也可以left right --><hr/ size="5%"  width="100%" color="red" align="right" >

 

所有代码


<html>
<head><title>东方翱翔</title>
</head><!-- 
bgcolor:背景颜色
bgcolor="blue"background:背景图片
background="./imgs/B.jpg"link alink vlink:超链接访问前后的颜色
link="green" alink="yellow" vlink="black"--><body><!-- p:段落标记 有自动换行的功能 --><!--font:font标记用来设置字体大小颜色属性size:设置字号,默认是3号,+1表示4号,-1表示2号,取值范围是[+1,+7]或[-7,-1]color:设置文字的颜色,有 black blue gray green lime...共16钟face:设置字体,默认为宋体--><font size="+1" color="green" face="宋体"> 潇潇暮雨子规啼</font><!-- hn:标题标记,属性align:对齐方式有 left right center--><h2>我是一个标题</h2><!-- p:段落标记,自动再段落前后添加换行属性align:对齐方式有 left right center--><p>大家好!</p><!-- pre:预格式化标记  保留源代码中的格式 --><pre>hey will be staying for five days.How long time will you be staying? </pre><!--center: 居中 --><center>Are you ok?</center><!-- hr:水平线 size:大小width:宽度color=水平线颜色align:对齐方式 默认居中center 也可以left right --><hr/ size="5%"  width="100%" color="red" align="right" ><!--blockquote: 缩排标记 左侧缩进,而且让字数变得紧凑--><blockquote>The Greenwood Boys are a group of pop singers.At present,they are visiting all partsof the country.They will be arrving here tomorrow.They will be comming by train and most of the young people in thw town will be meeting themat the station. Tomorrow evening they will be singing at the Wrokers' Club.The Greenwood Boys will be staying five days. During this time,they will give five performances.As usual,the police will have a difficult time.they will be trying keep  order.It is always the same one these occasions.</blockquote><!-- hr:水平线 --><hr/ color="red"><p align="right"> 东方翱翔 &copy;版权所有</p></body>
</html>

 

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • Docker高级管理之compose容器编排与私有仓库的部署
  • UE5 对象池
  • 【研赛论文】数学建模2024华为杯论文word/latex模板
  • 希捷,AI时代的存储“破壁者”
  • R语言数据整理和分析(1)
  • 对接开源大模型应用开发平台最佳实践
  • B3635 硬币问题
  • vue3 指定元素全屏 screenfull(可直接粘贴使用)
  • 【Python机器学习】循环神经网络(RNN)——对RNN进行预测
  • Ansible自动化部署kubernetes集群
  • PowerShell收集信息及绕过PowerShell权限
  • 使用Nignx打包前端项目
  • Java数据结构(十)——冒泡排序、快速排序
  • 22_图论中的高级数据结构
  • kubectl 命令介绍以及使用
  • 【个人向】《HTTP图解》阅后小结
  • 8年软件测试工程师感悟——写给还在迷茫中的朋友
  • Apache的80端口被占用以及访问时报错403
  • golang 发送GET和POST示例
  • HTTP 简介
  • Koa2 之文件上传下载
  • leetcode46 Permutation 排列组合
  • 百度贴吧爬虫node+vue baidu_tieba_crawler
  • 道格拉斯-普克 抽稀算法 附javascript实现
  • 如何编写一个可升级的智能合约
  • 视频flv转mp4最快的几种方法(就是不用格式工厂)
  • 写给高年级小学生看的《Bash 指南》
  • 学习ES6 变量的解构赋值
  • 3月7日云栖精选夜读 | RSA 2019安全大会:企业资产管理成行业新风向标,云上安全占绝对优势 ...
  • 大数据全解:定义、价值及挑战
  • ​ 无限可能性的探索:Amazon Lightsail轻量应用服务器引领数字化时代创新发展
  • # Pytorch 中可以直接调用的Loss Functions总结:
  • # SpringBoot 如何让指定的Bean先加载
  • #70结构体案例1(导师,学生,成绩)
  • #Datawhale AI夏令营第4期#AIGC文生图方向复盘
  • #nginx配置案例
  • #Z0458. 树的中心2
  • #鸿蒙生态创新中心#揭幕仪式在深圳湾科技生态园举行
  • (10)工业界推荐系统-小红书推荐场景及内部实践【排序模型的特征】
  • (17)Hive ——MR任务的map与reduce个数由什么决定?
  • (BAT向)Java岗常问高频面试汇总:MyBatis 微服务 Spring 分布式 MySQL等(1)
  • (Java数据结构)ArrayList
  • (ZT)一个美国文科博士的YardLife
  • (笔试题)合法字符串
  • (超简单)使用vuepress搭建自己的博客并部署到github pages上
  • (二)七种元启发算法(DBO、LO、SWO、COA、LSO、KOA、GRO)求解无人机路径规划MATLAB
  • (附源码)springboot青少年公共卫生教育平台 毕业设计 643214
  • (附源码)计算机毕业设计SSM智慧停车系统
  • (机器学习的矩阵)(向量、矩阵与多元线性回归)
  • (剑指Offer)面试题34:丑数
  • (转)Java socket中关闭IO流后,发生什么事?(以关闭输出流为例) .
  • (转载)Linux 多线程条件变量同步
  • .gitignore文件_Git:.gitignore
  • .helper勒索病毒的最新威胁:如何恢复您的数据?
  • .locked1、locked勒索病毒解密方法|勒索病毒解决|勒索病毒恢复|数据库修复