html常用标签快速检索

来源:互联网 发布:java微信公众开源框架 编辑:程序博客网 时间:2024/06/15 01:23

页面结构

<html></html>最外层,表明采用html语言,所有的其他标签都包含在这个标签内部。

<title></title>标题,显示在浏览器顶端

<body></body>正文部分


属性标签。可以在标签内部用空格分隔表示属性

align 对齐方式:center

bgcolor 背景颜色:yellow,

border 边框宽度



文字和段落格式

<h1></h1>标题。一共有6个,会显示不同大小的字体

<p></p>段落。段落和段落之间有一个回车空行

<br/>换行

<hr/>创建水平线

<b>粗体

<i>斜体


表格

<table>插入表格

<tr>行标

<td>列表(table data)


<a herf="URL">LinkWorld</a>插入超链接

<img scr="URL" width=" " height=" "/>插入图片


采用style的例子,格式

style="name1:value1;name2:valve2;"

<h2 style="background-color:red">

<h1 style="font-family:verdana;color:blue;background-color:#ffff00;">

<p style="font-family:arial;color:red;font-size:20px;">


完整的html参考手册

http://www.w3school.com.cn/tags/index.asp

HTMl标准属性手册

http://www.w3school.com.cn/tags/html_ref_standardattributes.asp

文本格式标签

http://www.w3school.com.cn/html/html_formatting.asp

常用的字符实体

http://www.w3school.com.cn/html/html_entities.asp