- 固定格式
<!DOCTYPE html>
<html>
...
</html>
Basic terminology 术语
<>: things inside called tags,一般成对出现,可以嵌套(nest)Head
there’re always two parts to an HTML file: the head and the body.
<html>
<head>
</head>
<body>
</body>
</html>
head:一般包含HTML file的信息,如title(in the browser bar)
<head>
<title>Title</title>
</head>
body:put your content,如text,images,links
<body>
<p>paragraph</p>
</body>
- Tags
<h1></h1> -- CEO biggest
<h2></h2> -- VP
<h3></h3> -- Director
<h4></h4> -- Middle Management
<h5></h5> -- Lowly assistant
<h6></h6> -- Gets coffee for everyone
- Links – go places
<a href="website url">derp</a>
eg:<a href="http://www.baidu.com">Baidu</a>
derp:link名,可点击(链接有下划线)
- Image
<img src="picture url" />
下划线结束
给图像设置link,点击图片跳转网页
<a href="website url">
<img src="picture url" />
</a>