HTML入门笔记1

55 阅读1分钟

`

HTML入门笔记1
html入门
HTML的发明者:
伟大的万维网之父-伯纳斯-李爵士

HTML起手式:
charset="UTF-8" 包含所有语言
http-equiv="X-UA-Compatible" content="IE=edge" 禁用缩放,兼容手机
name="viewport" content="width=device-width, initial-scale=1.0" 告诉IE使用最新内核
title标题

常用的表章节标签:
标题 h1-h6
章节 section
文章 article
段落 p
头部 header
脚部 footer
主要内容 main
旁支内容 aside
划分 div

全局属性:
class
contenteditable 使可编辑
hidden 使不可编辑
id 唯一
style 样式
tabindex 不能用鼠标时用tab,值为-1选不到,正数按大小顺序选择
title 标题

常用内容标签:
  • pre(preview) 保留空格、回车、tab
  • hr 分隔线
  • br 换行
  • a 链接
  • em(emphasis) 强调
  • strong 加粗
  • code code里面的字体是等宽的
  • q(quote) 引用
  • blockquote 换行的引用
授课教师:饥人谷方方
©菜鸟乱写的
`