<!DOCTYPE html>
<html>
<head>
<title>Home - My first website</title>
</head>
<body>
<h1>Hello!</h1>
<a href="http://google.com">Google</a>
</body>
</html>
<DOCTYPE html>This tells the browser that this file is an HTML file, not a textfile. Again, we have to tell the browser what the content, "from here to here", is.
<html>Whatever content that is inside the <html> tag becomes html code.
Websites are made up of two parts: the head and the body. On the <head>, we configure the website. We do invisible settings. On the <body>, we put the content: what the users will see.
<head>We configure and do the settings of our page.
e.g.) title
<meta>| attributes | about |
|---|---|
content | |
name |
<body>We put the content that the users will see.