zoukankan      html  css  js  c++  java
  • HTML 5--基础

     1 <!doctype html>
     2 <html>
     3 <head>
     4 <meta charset="utf-8">
     5 <META name="description" content="this website provide you the benfit of booking rooms in the best hotels of US">
     6 <META name="keywords" content="hotel,online,booking">
     7 <META name="author" content="hotel,online,booking">
     8 <META http-equiv="refush" content="30">
     9 <base href="/公共性文档/"></base>
    10 <title>无标题</title>
    11 <style type="text/css">
    12     h1{color:crimson}
    13     p{font-style: italic;}
    14     </style>
    15 </head>
    16 
    17 <body>
    18 <img src="1..jpg"/>
    19 <br>
    20 <h1>    标题一        </h1>
    21 <p>第一段内容
    22  <BR>
    23     Best hotel.
    24   <BR>
    25    第二段内容
    26    <BR>
    27     Next hotel.
    28     <BR>
    29 
    30    第三段内容
    31     <BR>
    32    Last hotel.
    33    </p>
    34 <!--被注释内容-->
    35 </body>
    36 </html>

    知识点:

    1.<style>   含有css内容

    2.<br> 空行

    3.<h> 从h1到h6标题级别由大到小

    4.

    <base href="/公共性文档/"></base>
    <img src="1..jpg"/>
    图片来源

    5.<p>段落

    6.引用外部资源文件,最常用的就是css文件。在.css文件和html文件在同一个文件目录下,可以用<link>



  • 相关阅读:
    Ruby(1):入门
    html 制作静态页面新知识
    mysql 可视化界面操作指令
    html 基础
    Eclipse导入Java工程导入错误
    shell 25个常用命令
    java JDBC
    java 8新特性 instant
    git
    spring mvc 注解详解
  • 原文地址:https://www.cnblogs.com/Catherinezhilin/p/8745279.html
Copyright © 2011-2022 走看看