一、HTML【HyperText Markup Language超文本标记语言】简介

来源:互联网 发布:怎么样找淘宝客户 编辑:程序博客网 时间:2024/06/06 19:16
1.网页语言html的结构【都是一/的形式存在】
  <html>
        <head>  
     头部
 <title>   
    网页的标题
 </title>
   </head>

<body>
     内容
   <body>
  </html>
 
2.列表格式
   A.无序
   <ul>
       <li>
      内容(一对代表就一列)
  </li>
   </ul>
   B.有序
   <ol>
       <li>
      内容
  </li>
   </ol>
   
3.详细内容
   A.标题 
     <h1>   名   </h1>           其中有h1----h6
   B.标签
     a.<p>  </p>段落标签
b.<span>  </span>  区间标签
   C.文本
     a.<font color="颜色" size="字体大小" face="字体">  </font>
b.<em> 斜体 </em>
c.<strong> 加粗1 </strong>
d.<b>   加粗2   </b>
 
4.表格
   A.格式
     <table>   
   <caption>  标题   </caption>
第一行
<tr align="center">   //这一行的内容居中
   <td>  //具体空格
      内容1
</td>
</tr>
…………

     </table>
   B.特殊
         a.行之间合并  <td rowspan="2">  </td>
b.列之间合并  <td colspan="2">  </td>
c.设置方格个数、宽度和高度
  <table width="300px" height="300px" border="3"> </table>
  
5.控件
 <br/>文本框
 <input type="text" value="这是一个文本框"/>
 <br/>密文框
 <input type="password"/>
 <br/>按钮框
 <input type="button" value="按钮"/>
 <br/>单项选择控件
 <input type="radio" name="A"/>
 <input type="radio" name="A"/>
 <input type="radio" name="A2"/>
 <input type="radio" name="A2"/>
 <br/>多项选择控件
 <input type="checkbox" name="B"/>
 <input type="checkbox" name="B"/>
 <input type="checkbox" name="B"/>
 <input type="checkbox" name="B"/>
 <br/>下拉框
 <select>
       <option>
  选项1
  </option>
   <option>
选项2
  </option>
   <option>
选项3
  </option>
 </select>
 <br/>编辑框
 <textarea cols="100" rows="5">
 </textarea>

6.提交按钮
  <input type="submit" value="注册"/>
  重置按钮
  <input type="reset" value="重置"/>
原创粉丝点击