掌握网页代码基本格式

墨彻酱

网页代码有固定的基本格式。下面,我们来看看网页代码基本格式是什么样的吧。

基本格式如下

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>这里填写标题</title>

</style>

</head>

<body>

HTML代码

</body>
</html>

掌握网页代码基本格式

标示符

网页代表是用标示名来表示开始和结束的,比如
<head></head>表示网页的头部
<title></title>表示网页的名称
<body></body>表示网页的主体部分

掌握网页代码基本格式

段落

<p style="color:blue;font-size:20px;">段落</p>>

掌握网页代码基本格式

运行

然后在浏览器中运行,如下图所示:

掌握网页代码基本格式