HTML5(week1)

1、背景

  • http(HyperText Transfer Protocol) :
    data communication for the web

  • html(HyperText Markup Language):
    main mark-up language for creating Web pages and information that can be displayed on Web browser

  • url(universal resource locator):
    to reference a web page

2、笔记

  • title head ... 均为element
    1、强调< em>
    2、注释
    3、> <head>
    ...
    <title>home page</title>
    ...
    </head>
    4、图片链接< a href="http://tgtiger.vicp.cc">
    <img src="images/w3c.png"width="72" height="48"
    alt="tg's web site">
    <\a>
    5、版本标记<!doctype html>

3、小例子

<!doctype html>
<html>
<head>
<title>how to build a web page</title>
</head><body><h1>how to build web page</h1><p>"hello world!!"<\p></body></html>`

6、meta
<head>
<meta charset="UTF-8">
</head>
7、五个特殊字符
&amp ;和&
&lt ;小于<
&gt ;大于>
& nbsp ; 多空格输出
&quot ;引号"
8、属性(鼠标放上去会显示注释)

  • <abbr title="Hypertext Markup Language "5"">HTML5</abbr>
    第一个5显示不出来
  • <abbr title="Hypertext Markup Language &quot ;5&quot ;">HTML5</abbr>
    将引号换为&quot ;5就可以显示出来
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容