知识点

2019-10-09  本文已影响0人  BJ000

meta标签:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="GB2312" />

<meta name="keywords" content="HTML5,JavaScript,前端,Pthon" />

<meta name="description" content="发布H5、JS等前端相关的信息" />

<meta http-equiv="refresh" content="5;url=http://www.baidu.com" />

<title>meta标签</title>

</head>

<body>

<h1>5秒以后跳转页面</h1>

</body>

</html>

内联框架:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="GB2312">

<title>内联框架</title>

</head>

<body>

<h1>我是demo11</h1>

<iframe src="demo--10--XHTML的语法规范.html" width="500px" height="500"></iframe>

</body>

</html>

超链接:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="GB2312">

<title>内联框架</title>

</head>

<body>

<h1>我是demo11</h1>

<iframe src="demo--10--XHTML的语法规范.html" width="500px" height="500"></iframe>

</body>

</html>

XHTML的语法规则:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8" />

<title>XHTML语法结构</title>

</head>

<body>

这是一个注释

-->

      <p>我是一个p标签</p>

<hr>

abc

<br>

bcd

<br>

efg

<hr>

<p>哈哈哈<font color="red">次哈</font>哈哈</p>

<h1>谁敢管我</h1>

</body>

</html>

CSS:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="GB2312">

<title>CSS</title>

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

<style type="text/css">

p{

color:red;

font-size:40px;

}

</style>

</head>

<body>

<p>咪咪咪咪咪咪咪</p>

<p>哈哈哈哈哈哈哈</p>

<p>噗噗噗噗噗噗噗</p>

</body>

</html>

CSS语法:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="GB2312">

<title>CSS语法</title>

<style type="text/css">

/*

选择器  声明块

*/

        p{

color:red;

font-size:40px;

}

</style>

</head>

<body>

<p>你好,吃饭了吗?</p>

</body>

</html>

上一篇下一篇

猜你喜欢

热点阅读