写在前面:第一篇CSDN博客,用来督促自己,记录每次进步
<!-- 文档类型定义DTD -->
<!DOCTYPE html>
<html>
<head>
<!-- 定义网页的标题,显示在浏览器的标题栏中 -->
<!-- 有利于搜索引擎搜索(也是在搜索引擎中标题) -->
<!-- 是整体的概括 -->
<title>
我的第一个网页
</title>
<!-- 基底网址标记 -->
<!-- 用于设定浏览器中文件的绝对路径 -->
<!-- 在网页中,只需要写下相对标签即可 -->
<!-- <base href = "XXX" /> -->
<!-- 设置外部文件的链接标记 -->
<link rel="stylesheet" type="text/css" href="test.css">
<!-- Name 用于在网页中加入一些网页的描述信息 -->
<!-- 网页的关键字,网页描述信息 -->
<!-- http-equiv 在HTML文档中模拟HTTP协议的响应消息头 -->
<!-- 例如告诉浏览器是滞缓存页面-->
<!-- 使用什么样的字符集显示网页内容 -->
<meta name="keywords" content="handsome,beautiful">
<meta name="description" content="Everyone|could|be|handsome">
<meta http-equiv="refresh" content="1234;url=http://www.baidu.com">
<style>
body{
background:grey;
}
</style>
</head>
<!-- id,name,class,style等是通用属性,所有的元素都可以使用 -->
<!-- 只要是能够用样式控制的 就不要用HTML控制 -->
<body>
<h1>
This is my first WebPage!!
</h1>
<p>
Hello world!
</p>
<img src = "E:/学习/PHP笔记和练习/04/1.jpg" />
</body>
</html>
h1{
color : red;
font-size : 5cm;
}
p{
color : yellow;
font-size : 2cm;
}