Blogger Information
Blog 34
fans 0
comment 0
visits 20001
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
html文档的组成
OC的PHP大牛之路
Original
4276 people have browsed it

html文档的组成

html文档由以下三部分组成:

1. html代码:html代码可以称为模板或者结构

初始文档截图

1.1 <!doctype html>表示为该文档为html文档(文档类型声明)

1.2 <html>xxx</html>html为标签或者叫根标签,也可以叫根元素;一个html文档只有一个根元素;(html根元素下面只有两个子元素,它们分别为<head>xxx</head>和<body>xxx</body>

1.2.1 <head>xxx</head>叫头元素,一般是给浏览器、搜索引擎看的,用户不在意。<title>xxx</title>标签为html文档的标题,用户可见。

1.2.2<body>xxx</body>叫主体元素,是给用户看的。

2. css样式:控制html元素的样式或布局

3. js脚本:js是javascript的简写,js控制着页面元素的交互

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post