前端开发学习笔记-1-html

一、框架

<!DOCTYPE html>

<html>

  <head>

    <meta chartset="utf-8" name="keywords" content="HTML, CSS, XML">

    <title>第一个框架</title>

    <base href=“www.baidu.com/image” target="_blank">

    <link rel="stylesheet" type="text/css" href="mystyle.css">

    <script>

    <noscript>

    

      <style type="text/css">

      body {background-color:yellow}

      p{color:red}

      </style>

  </head>

  <body>

    <h1>标题一</h1>

    <a href="http://www.runoob.com/" style="text-decoration:none;>链接地址</a>

    <img src="image/log.png" alt="我是一张图片" border=“0” align="middle" style="float:left" width=“32” height=“32” usemap="#我是一张图片">

  </body>

</html>

 

二、场景应用标签

(1)邮件

  含抄送及主题内容_<a href="mailto:bbc@163.com?cc=cctv@tv.com&subject=你好吗&body=欢迎大家来喝茶!" target="_top">发送邮件</a>

(2)全局设置

  页面上URL默认地址_<base href="http://www.runoob.com/images/" target="_blank">

  页面标记属性_<meta chartset="utf-8">

    --关机键词<meta name="keywords" content="HTML, CSS, XML">  

    --描述内容<meta name="description" content="免费 Web & 编程 教程">

    --作者<meta name="author" content="Runoob"> 

  外部链接属性_<link rel="stylesheet" type="text/css" href="mystyle.css">

    --logo图片<link rel="shortcut icon" href="图片url">

  刷新页面_<meta http-equiv="refresh" content="30">

(3)内外联样式

  style-属性,<style></style>标签,外联l<link rel="stylesheet" type="text/css" href="myself.css">

(4)图片

  局部图片设定_

    <img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">

      <map name="planetmap">
        <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm">
        <area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm">
        <area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
      </map>

(5)表格

    <table border="1" cellpadding="10">     <!--边框和边距-->

      <caption>我是一个表格</caption>    <!--表格头-->

      <tr>

        <th>Header 1</th>

         <th colspan="2">Telephone</th>   <!--占两列,即:合并单元格-->

      </tr>

      <tr>

          <th rowspan="2">Telephone:</th>   <!--占两行,即:合并单元格-->

         <td>row 1, cell 2</td>

      </tr>

      <tr>

        <td>row 2, cell 1</td>

        <td>row 2, cell 2</td>

      </tr>

      <tr>
        <td>这个单元格包含一个列表
          <ul>
            <li>apples</li>
            <li>bananas</li>
            <li>pineapples</li>
          </ul>
        </td>
        <td>HELLO</td>
      </tr>

    </table>

posted @   兮佑皇叔  阅读(20)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示