make html website code example
Example 1: setup html webpage
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Document</title>
</head>
<body>
</body>
</html>
Example 2: how to start a html file
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Example 3: how to make an html document
First, you have to tick "File name extensions" if you haven't.
Secondly, you need to make a file somewhere in YOUR user. Make sure that it
ends with .html
Then, copy this code:
<!DOCTYPE html>
<html>
<head>
<title>Name your document title</title>
</head>
<body>
Put your document apperance here...
</body>
</html>
Finally, open the HTML document and then you have your page!
Example 4: create page html
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>