I studied HTML and CSS to build my academic website jianglanwei.com:
Jianglan Wei | Carnegie Mellon Robotics Institute
This chapter is adapted from the HTML tutorial by W3Schools.com:
HTML, or Hyper Text Markup Language, is the standard markup language for creating webpages. Here is a simple HTML document:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
<a href="<https://www.w3schools.com>">This is a link</a>
<img src="w3schools.jpg">
</body>
</html>
<!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly. It must only appear once, at the top of the page (before any HTML tags). The <!DOCTYPE> declaration for HTML5 is <!DOCTYPE html>.<html> element is the root element of an HTML page.<head> element contains meta information about the HTML page.<title> element specifies a title for the HTML page (which is shown in the browser’s title bar or in the page’s tab).<body> element defines the document’s body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.<h1> to <h6> tags define the HTML headings. The <p> tag defines a paragraph. See HTML Headings & Paragraphs.<a> tag defines a HTML link. The link’s destination is specified in the href attribute. See HTML Links.