html code for website code example

Example 1: simple html website coding

<!DOCTYPE html>
<html>
<head>
<style>
body {background="purple";}
</style>
<title>Page Title<title>
</head>
<body>
<h1>Yay</h1>
<p>yay is a word used to describe that your happy!</p>
</body>
</html>

Example 2: setup html webpage

<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!--optional css --><link rel="stylesheet" href="style.css" />
    <title>Document</title>
  </head>
  <body>
  </body>
</html>

Example 3: html start a page

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

Example 4: how to start a html file

<!DOCTYPE html>
<html>
	<head>
		<title>Page Title</title>
	</head>
	<body>
      
	</body>
</html>

Example 5: html site

<center>
  <h1>The a tag</h1>
</center>
<a href="https://arnav.tcode.in">Visit Acode(Learn HTML{For free[Easy]})</a>
<p>Note: this will not work on files if you are on a external website</p>

Tags:

Html Example