创建html文档——html的文档元素和元数据元素

DOCTYPE——表示文档包含的是HTML5内容;

html——表示文档中html标记的开始;

head——表示html文档中元数据部分的开始;

body——表示html文档中内容部分的开始;

title——设置html文档的标题;

base——设置用作html文档中的相对url解析基础的url;

meta——添加对于html文档所含数据的说明;

        属性:charset——声明html文档的字符编码;

              http-equiv——设置html文档的默认样式或周期性地刷新页面;

style——定义文档内嵌样式;

link——载入包括样式表和网站标识在内的外部资源;

        属性:rel="prefetch"——预先载入预计马上就会用到的资源(firefox支持);

script——定义文档内嵌脚本;

          属性:src——载入外部脚本文件;

          属性:async——异步记载此脚本文件;

          属性:defer——加载完html后再加载此脚本文件;

noscript——显示为浏览器不支持或禁用了JavaScript的情况准备的内容;

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>上海远地资产管理有限公司</title>
    <base href="http://www.shydzc.com/" target="_blank"/>
    <meta name="author" content="jason"/>
    <meta name="description" content="上海远地资产管理有限公司(简称:远地资产),是一家专业的互联网金融服务平台."/>
    <meta http-equiv="refresh" content="5;http://www.shydzc.com"/>
    <!--另一种声明html页面所用字符编码的方法
    <meta http-equiv="content-type" content="text/html charset=utf-8"/>
    -->
    <link rel="stylesheet" type="text/css" href="style.css"/>
    <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>
    <script src="simple.js"></script>
    <script defer src="simple2.js"></script>
    <script async src="simple3.js"></script>
    <noscript>
        <h1>需要javascript脚本!</h1>
        <!--或者导到另一网站
        <meta http-equiv="refresh" content="0;http://www.shydzc.com"/>
        -->
    </noscript>
    <style media="screen AND (max-width:500px)" type="text/css">
        a{
            background-color: grey;
            color:white;
        }
    </style>
    <style media="screen AND (min-width:500px)">
        a{
            color: red;
            font-style: italic;
        }
    </style>
    <style media="print">
        a{
            color: red;
            font-style: italic;
        }
    </style>
</head>
<body>
<p>远地帮助更多优秀的中小型企业融资成功。</p>
<a href="home">访问上海远地资产</a>

</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值