HTML入门笔记1

76 阅读1分钟

1. HTML 是谁发明的

Tim Berners-Lee

2. HTML 起手应该写什么


<!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>

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

标题 h1 ~ h6
章节 section
文章 article
段落 p
头部 header
脚部 footer
主要内容 main
旁支内容 aside
划分 div

4. 全局属性有哪些

class
contenteditable
hidden
id
style
tabindex
title

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

a: 超链接 
strong : 表示内容本身的重要性 
em: 表示语气上的强调 
code: 专门用来存放显示代码内容 
per: 该标签内包含内容的空格,换行符的被完整保留, 不会被html自动缩略成一个空格