美文网首页
2-前端学习之表格表单

2-前端学习之表格表单

作者: 繁华落尽2018 | 来源:发表于2017-05-18 13:59 被阅读7次

1. 新建一个页面

html:xt  + tab xt是xhtml的写法
!+tab  html5的写法

2. 编码格式

  • charset 规定了网页的编码格式
  • keywords 用于搜索的关键字]]]
  • description 网页描述 搜索的时候一个简介
  • http-equiv 网页重定向,5秒回跳转页面
  • author 告诉搜索引擎你的站点的制作作者
  • Robots 文件是否被检索,且页面上的链接是否可以被查询
    • all:文件被检索,页面上的链接可以被查询
    • none:文件不被检索,页面上的链接不可以被查询
    • index:文件将被检索
    • follow:页面上的链接可以被查询
    • noindex:文件不被检索,页面上的链接可以被查询
    • nofollow:文件不被检索,页面上的链接可以被查询
  • link 链接外部样式表文件
  • icon图标
<head>
<meta charset="UTF-8" >
<meta name="keywords" contect="关键字">
<meta name= "description" contect ="网页描述">
<meta http-equiv="refresh" contect ="5;http://www.baidu.com">
<meta name="Author" contect="你的姓名" >
<meta name="Robots" contect="all|none|index|noindex|follow|nofollow">
<link rel="stylesheet" href="1.css">
<link rel="icon" href="favicon.ico">
</head>
* ascll ansi (满足英文的编码格式)
* unicode (日文,韩文)
* gbk gb2312 (中文)
* big5 (繁体)
* utf-8(支持全部国家语言通用编码)

3. 表格

展示数据,是对网页重构的一个有益补充

  • border="1" 边框
  • width="300" 宽度
  • height="111" 高度
  • cellspacing="2" cell之间的宽度
  • cellpadding="3" 内容距边框的距离
  • align="left|center|right" 如果直接给表格用则表格居中,局左,局右 、如果给tr或者td使用则tr或者td内容相应变化
  • bgcolor=”“ 背景色
<table border="1" width="500" height="300" cellspacing="0" cellpadding="10" align="center" bgcolor="yellow">
    <tr align="center">
        <td>hah h</td>
        <td>pdf</td>
        <td>asdf</td>
    </tr>
        <tr.>
        <td>asdf</td>
        <td>dd</td>
        <td>sss</td>
    </tr>
</table>

】】】】

相关文章