常用html标签

来源:互联网 发布:远程会诊软件哪家好 编辑:程序博客网 时间:2024/04/29 18:29
  • 为什么许多标签要成对(pair)出现?

    一首一尾,确定区间,也即确定标签起作用的区间。

markdown足够简洁,但并不完备,有时还是需要交由强大的html来处理:

功能 代码 说明 换行 <br> 没有结束符</br> 超链接 <a href="http://"></a> 注意href="http://"必须以http://开头否则,生成的链接这里的链接附加在当前页面的链接之后的 超链接在新窗口中打开 <a href="", target="_blank"> markdown的相关设置[链接](http://...)是在当前页进行跳转 页内跳转到锚(anchor,定点) <a href="#anchor"></a> 也被markdown所支持[锚点](#anchor)
注意#号后没有任何空格
不管是几级标题(针对markdown),都有单#号进行标识 由其他页面跳转到锚 <a href="http://www.***.com/#anchor"></a> 也被markdown所支持[锚点](http://www.***.com/#anchor) 字体字号 <font color="#", size="px"></font> 尖括号 左部:&lt;(l:less,表示小于号)
右部:&gt;(g:greater,大于号) < > 空格 &nbsp; nbsp:No Breaking SPace
中文状态下要使用四个&nbsp;表达首行的两个缩进的问题 标题居中 <h1/6 align="center"></h1/6> 加黑/加粗 <b></b>
<strong></strong> 两者没有区别,
字符长短的不同,
等价于markdown ** ** 着重 <em></em> em:emphasis
等价于markdown * * 下划线 <u> </u> markdown 不支持这一特性 <img>标签的align属性 <img align="value" /> value:
left、right、
middle、top、bottom 文字居右 <p align="right"></p>



最右(right-most)演示:

hello

表格

<table><tr>    <th colspan="3"></th>    <th></th>           // <th></th>表示表头head</tr>                   // <tr></tr>表示表格的一行row<tr>    <td></td>    <td></td>           // <td></td>表示普通单元格</tr></table>

一个相对复杂的表格

<table border="1"  summary="this table gives some statistics about fruit   flies: average height and weight, and percentage     with red eyes (for both males and females)."> <caption><em>a test table with merged cells</em></caption> <tr><th rowspan="2"><th colspan="2">average <th rowspan="2">red<br>eyes <tr><th>height<th>weight <tr><th>males<td>1.9<td>0.003<td>40% <tr><th>females<td>1.7<td>0.002<td>43%</table>

web 相关

以条目的形式进行记录,在学习中可能用到的网站相关的知识。

  • URL(所谓的统一资源定位符)地址对大小写敏感;

  • 对一个网页ctrl+f进行搜索时,对大小写不敏感;

0 0
原创粉丝点击