《HTML入门笔记1》

86 阅读1分钟

1.HTML是Tim Berners-Lee和同事 Daniel W. Connolly于1990年创立的。

2.HTML起手应该写什么

<!DOCTYPE html>
<html lang = "zh-CN">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
</head>
<body></body>
</html>

3.常用的表章节的标签有哪些,分别是什么意思

  • h1~h6 表示标题
  • section 章节
  • artcle 文章
  • header 头部
  • footer 脚部
  • main 主要内容
  • aside 旁系内容
  • p 段落

4.全局属性有哪些

  • class
  • contenteditable
  • hidden
  • id
  • style
  • tabindex
  • title

5.常用的内容标签有哪些,分别是什么意思

  • ol+li 有序列表
  • ul+li 无序列表
  • dl+dt+dd dt表示对象 dd表示对dt的描述
  • pre 保留行内输入的空格
  • hr 分割线
  • br 换行
  • a 链接
  • em 表示语气上的强调
  • strong 表示重要内容
  • code 保留等宽,可通过与“pre”标签组合达到输出代码段的效果
  • quote 引用
  • blockquote 引用,块级元素