《HTML入门笔记1》

90 阅读1分钟

HTML是谁发明的

  • 万维网www的发明
  • www=URL+HTTP+HTML
  • www就是万维网world wide web
  • 中文直译就是:像世界那么大的网

  • 1990年左右诞生:李爵士

  • 如何制作出网页

  • 域名知识
  • HTTP服务器知识
  • HTML知识

  • 其他

  • HTML

  • HTML的全称是HyperText Markup Language
  • 中文翻译为超文本标记语言,更多信息可以在维基百科上看到

HTML里最常用的标签有:

  • h1~h6标签,表示标题
  • a标签,表示页面跳转
  • div标签,表示内容分块

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>

常用的表章节的标签有哪些

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

全局属性有哪些

所有标签都有的属性

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

常用的内容标签有哪些

  1. ol+li(ordered list+list item)
  • ol表示有序的列表,li表示列表里面的某一项
  1. ul+li(unordered list+list item)
  • ul表示没有顺序的列表
  1. dl+dt+dd(description list+term+data)
  • dl用来描述一个东西,dt里面写的是描述的谁,dd里面写的是描述的内容
  1. pre(preview的缩写)
  2. hr
  • hr是分割线
  1. br(break的缩写)
  • br是用来换行的
  1. a(anchor的缩写)
  • a标签是用来超链接的
  1. em(emphasis的缩写)
  • em表示强调,语气很重要
  1. strong
  • strong表示本身很重要
  1. code
  • code里面的字体是等宽的
  1. q(quote的缩写)
  • quote默认表示行内引用
  1. blockquote
  • 表示结构里引用