-
headlines
this is a headline
-
paragraph
this is a paragraph
-
anchor element(links)
this is a link
-
image
Image elements are self-closing, which means they do not need a closing tag.
Just like websites have URLs, images on the web also have URLs. Image URLs typically end with the .jpg or .png file extension.
URL:统一资源定位符
-
video(followings are copied from www.codecademy.com)
<video width="320" height="240" controls> <source src="video-url.mp4" type="video/mp4"> </video>widthandheight: Set the size of the screen that displays the video.controls: Adds play, pause and volume control.source src: Sets the URL of the video to play.type: Specifies different video formats.
-
unordered list
- first list
- second list
-
division
...
-
metadata
<!DOCTYPE html>: Tells the web browser to expect an HTML document.<html>...</html>: The root of the HTML document and parent of all other HTML elements on the webpage.<head>...</head>: Enclose other metadata about the site, such as its title.<title>...</title>: Contains the site's title, which is one way users can find your site through a search engine, like Google.<meta charset="utf-8"/>: Tells the web browser which character set to use. In this case, the character set is "utf-8".
one example:
<!DOCTYPE html>
<html>
<head>
<title>Ollie Bike Sharing</title>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="main.css">
</head>