html框架 字体颜色 列表 表格 图片 定义列表 a标签

<!DOCTYPE html> 文档声明
<html lang="en"> 语言类型 英文缩写

<head>
  <meta charset="UFT-8"> charset字,符集 UFT-8编码格式
  <title> TITLE</title>
  <meta name="keywords" content="内容"> 关键词
  <meta name="description" content="内容"> 网页描述
</head>

<body>
</body>
</html>


字体颜色
<    style="color:red;">
<    style="color:rgb(255,0,0)">
<    style="color:#f00;>

标签
<h1></h1> 1-6 标题标签
<p></p> 段落标签
<hr/> 水平线标签 属性:size="高" width="宽"
<div/> 分区
<br/> 换行
<span></span> 组合行内元素
ctrl+/ 单行注释
ctrl+shift+/ 多行注释
&lt; 小于号
&gt; 大于号
&nbsp; 空格

列表
<ol>
  <li></li> 有序列表
</ol>

<ul>
  <li></li> 无序列表
</ul>
ol ul 属性 type="disc实心圆 circle空心圆 square实心方块" start=" "

表格
<table> 定义表格
  <caption>表格标题</caption>
  <tr>表格行</tr>
  <th>表格头</th>
  <td>表格单元格</td>
</table>
table 属性 border="" 表格边框
cellpadding 单元边沿与内容的间距
cellspacing 单元格之间的间距

图片
<img src="图片标签"> src引用图片位置
alt=" " 未找到图片提示 必须有
title=" " 提示

定义列表标签
<dl>
  <dt></dt>
  <dd></dd> 描述dt
</dl>

a标签 <a></a>
<a href="地址"></a> 链接指向的页面
target="_blank" 新窗口中打开
target="_self" 当前窗口打开 默认
定义标记 <span id="top" or name="top"> 目标位</span>
标记位置 <a herf="#top">到达目标位置</a>

 

 

 

posted @ 2017-10-10 11:14  小熊v  阅读(809)  评论(1编辑  收藏  举报