《HTML入门笔记1》

一、HTML起源

  Tim Berners-Lee于1990年左右发明了HTML

二、HTML起手

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>

三、常用的表章节的标签

h1,h2,h3,h4,h5,h6-----------------------标题

section--------------------------------------章节

article---------------------------------------文章

p----------------------------------------------段落

header--------------------------------------头部

footer----------------------------------------脚部

main----------------------------------------主要内容

aside----------------------------------------旁支内容

div-------------------------------------------划分

四、全局属性

class

contenteditable

hidden

id

style

tabindex

title

五、常用的内容标签

ol+li----------------------------有序列表

ul+li----------------------------无序列表

dl+dt+dd---------------------描述列表

pre----------------------------可以用pre标签保留回车,空着,Tab键

code--------------------------展示代码

hr-----------------------------分割线

br-----------------------------换行

em---------------------------强调文本,默认文字斜体

strong----------------------强调文本,默认字体加粗

q----------------------------quote的缩写,表示引用

posted @ 2021-03-18 10:57  hey-李高冷  阅读(47)  评论(0编辑  收藏  举报