html structure w3schools code example

Example 1: html basic structure

<!DOCTYPE html>
<html>
  
  <head>
  	<title>Some Title</title>
    <link href="css_file.css" rel="stylesheet"> <!-- external CSS -->
  </head>
  
  <body>
    <!-- main content -->
  </body>
  
</html>

Example 2: html starter

<!DOCTYPE html>
<html>
<head>
	<title>PUT A TITLE HERE</title>
</head>
<body>
	<canvas id="canvas" width="200" height = "200"></canvas>

	<script type="text/javascript">
		//put your code here
	</script>
</body>
</html>

Example 3: html structure

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

</body>
</html>

Example 4: html

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>HTML basics</title>
    </head>
    <body>


    </body>
</html>

Example 5: html basic structure

<!DOCTYPE html>
<head>
	<!-- Miscellaneous Stuff Here -->
</head>
<body>
	<!-- Main Divs here -->
</body>

Tags:

Html Example