html网页标题

扫码查看

HTML代码

 <html>
 <head>
     <!--<title>定义网页标题,显示在浏览器的标题-->
     <title>网页标题</title>
     <!--<base>            用于设定浏览器中文件的绝对路径,网页中的文件只需要写下文件的相对路径即可,这个路径就是base中指定下的路径-->
     <base>
     <!--<link>设置外部文件的链接标记,用于确定本页面和其他文档之间的关系-->
     <link rel="stylesheet" type="text/css" href="2.css">
     <!--name 用于在网页中加入一些关于网页的描述信息
     http-equiv属性用于在HTML文档中模拟HTTP协议的响应消息头
     name属性
         keywords关键字
         description描述
     http-equiv属性
         content-type文字类型
             -->
     <meta name="keywords" content="meta实例">
     <meta http-equiv="content-type" content="charset=gb2312">
 </head>
 <!--<body>在他中放置网页中所有内容
 bgcolor背景颜色
 text页面颜色
 -->
 <body>
     <h1>文本</h1>
     <p>我的世界</p>
 </body>
 </html>

CSS代码

 /* CSS Document */
 p{
     font-size:1cm;
     color:red;
 }
05-07 14:54
查看更多