导航,头部,CSS基础

  1. 制作自己的导航条。
  2. HTML头部元素:
    1. <base>  定义了页面链接标签的默认链接地址
    2. <style>  定义了HTML文档的样式文件
    3. <link>  定义了一个文档和外部资源之间的关系
  3. 练习样式表:
    1. 行内样式表
    2. 内嵌样式表
    3. 外部样式表
  4. 分别练习定义三类选择器:
    1. HTML 选择器
    2. CLASS 类选择器
    3. ID 选择器
      <!DOCTYPE html>
      <html lang="en">
      <head>
          <meta charset="UTF-8">
          <title>TEST</title>
          <link href="wk1.2.css"rel="stylesheet"type="text/css">
          <base href="http://www.gzcc.cn/">
      </head>
      <body>
      <nav>
          <a href="http://www.gzcc.cn/html/yonghufenglei/xuesheng/">学生</a>
          <a href="http://www.gzcc.cn/html/yonghufenglei/jiaoshi/">教师</a>
          <a href="http://www.gzcc.cn/html/yonghufenglei/xiaoyou/">校友</a>
          <input type="text" name="search">搜索
          <input type="button" name="login" value="登录">
           <input type="button" name="login" value="取消"><br>
          <img src="http://www.gzcc.cn/2016/images/banner.png">
      </nav>
      <h1><span style="background-color: gold;font-size: larger"; fon>通知</h1>
         <p> 校内新闻 </p>
      <p class="textpink" >科学教研</p>
      <p id="t">通知公告</p>
      
      
      <h1>广州商学院</h1>
      <h2>2017</h2>
      <p></p>
      
      
      
      <div>
          <p><span style="background-color: cyan;font-size: larger"; fon>网络选修课</span></p>
      
      </div>
      
      
      <div id="container" style="width:400px">
          <div id="header" style="background-color:cyan;"><h2 align="center" style="margin-bottom:0;">登录</h2></div>
      
          <div id="contant" style="background-color:aquamarine;height:150px;width:400px;float:left;">
              <form action=" "...></form>
      
                 <form>
              username:<input type="text" name="username" placeholder="请输入用户名"><br>
              password:<input type="password" name="passname" placeholder="请输入密码"><br>
              <input type="radio"name="role" value="stu">student
              <input type="radio" name="role" value="tea">teacher<br>
      
              <input type="button" value="login">
              <input type="button" value="cancle">
          </form>
          </div>
      
          <div id="footer" style="background-color:chartreuse;clear:both;text-align:center;">版权</div>
      
      </div>
      
      
      <div id="container" style="width:400px">
          <div id="header" style="background-color:cyan;"><h2 align="center" style="margin-bottom:0;">搜索</h2></div>
      
            <div id="contant" style="background-color:aquamarine;height:250px;width:400px;float:left;">
              <form action=" "...></form>
             <form>
          <select >
              <option>问答</option>
              <option>收藏</option>
          </select>
      </form>
              <ul>
                  <li>python</li>
                  <li>datebase</li>
              </ul>
      
              <ol>
                  <li>python</li>
                  <li>datebase</li>
              </ol>
       <dl>
           <dt>学院</dt>
           <dd>会计学院</dd>
           <dd>信息学院</dd>
           </dl>
      
      
          </div>
      
          <div id="footer" style="background-color:chartreuse;clear:both;text-align:center;">版权</div>
      
      </div>
      
      
      <hr>
      <p>友情链接</p>
      <a href="http://www.gzcc.cn/">广州商学院</a>
      <img src="http://www.gzcc.cn/2016/images/banner.png" width="500" height="200" alt="gzcc.cn"/>
      
      </body>
      </html>
        p{color: gold;}
              h1{color: darkgreen;}
              .textpink{color: fuchsia;}
              #t{color: aqua;}

posted @ 2017-10-17 19:05  091王卡  阅读(129)  评论(0)    收藏  举报