特定元素的属性
src:通常用于img
, script
, video
, audio
元素,指定外部资源的地址
href:通常用于a
, link
元素,标识文档中引用的的超文本
header
, footer
, aside
, section
, nav
video
, audio
移除的元素:
basefont 、 big 、 center 、 font 、 s 、 strike 、 tt 、 u
frame 、 frameset 、 noframes
每个html元素都有的属性
行内元素:span
, a
, input
, b
, em
, i
, strong
特点:
块级元素:div
, p
, H1-H6
, ul-li
, header
, footer
, table
特点:
两者转换可以通过display
属性设置:block
, inline
, inline-block
锚点(anchor)是一种特殊的链接
在HTML中,通过元素的id属性设置锚点,可以定位到页面特定的位置
1 | <h2 id="h2">锚点</h2> |
在SEO中所谓的TDK就是指:title、description、keywords
title: 标题标签
description:描述标签
keywords:关键字标签
严格模式:html会按照浏览器支持的最高标准进行运行
混杂模式:html会按照向下兼容的方式运行,可以用来模拟老式浏览器的行为
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment