常用编写软件以及基本结构(html用什么软件编写好一点)

html常用编写软件以及基本结构

编辑器(vscode,hbuilder,webstrom…)—->a.html —>浏览器

vs code 官方下载网站:https://code.visualstudio.com/

!+ enter —>创建模板(得到下面模板)

<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
<title>Document</title>
</head>
<body>

</body>
</html>
1234567891011

<!-- 不是html标签 这声明是文件类型定义(DTD),作用是为了告诉浏览器该文件类型,让浏览器用哪种规范解析这文件 -->
<!DOCTYPE html>
<!-- 根标签 -->
<html lang=\"en\">
<!-- 头部 不写给用户展示的一些设置 -->
<head>
<!-- meta 元信息标记 一个meta进行一项配置 -->
<!-- charset 字符集:UTF-8 字符编码的一种 万国码
字符集:
ASCII 美国标准信息码 7位2二进制 128个符号 0000000-1111111
Unicode 8位2进制 256个 UTF-8
中国编码:
GB2312 4000+汉字
GBK 6000+ 韩语 日语 蒙古语 繁体字
GB18030
-->
<meta charset=\"UTF-8\">
<!-- 网页的标题 -->
<title>Document</title>
</head>
<!-- 给用户看的 -->
<body>
hello world
</body>
</html>

(0)
小多多的头像小多多创始人

相关推荐

发表回复

登录后才能评论