《HTML入门笔记1》

202 阅读1分钟

HTML是谁发明的

Tim Berbers-Lee,俗称李爵士

HTML 起手应该写什么

<DOCYTPE html>
<html lang="en">
<head>
<meta chareset="UTF- 8">
<mata name="viewpot" content="width=divice-width,initial -scale=1.0">
<meta http-equiv="X-UA-Compatible" content="Ie=edge">
<title><Document></title>
</head>
<body>
</body>
</html>

常用的表章节的标签有哪些,分别是什么意思(h1~h6、section、article、main、aside 等等)

有h1~h6、section、article、main、aside 等等
h1到h6是第一级目录到最后一级,section表示章节,article一篇文章,mian表示内容,aside是旁边的

全局属性有哪些

class | 规定元素的类名(用于规定样式表中的类)。
contenteditable | 规定是否允许用户编辑内容。
contextmenu | 规定元素的上下文菜单。
dir | 规定元素中内容的文本方向。
draggable | 规定是否允许用户拖动元素。
hidden | 规定该元素是无关的。被隐藏的元素不会显示。
id | 规定元素的唯一 ID。
style | 规定元素的行内样式。
tabindex | 规定元素的 tab 键控制次序。
title | 规定有关元素的额外信息。

常用的内容标签有哪些,分别是什么意思(a、strong、em、code、pre 等等)

常用的标签有a、strong、em、code、pre 等等,a代表超链接:可以跳转到指定地点,strong是加租强调,em是emphasis:更强调,code会代码:能让代码对齐,pre是preview:能显示代码原来的格式-空格显示