html basic 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: basic html document

<!DOCTYPE html>
<html lang="pt-br" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="stylesheet" type="text/css" href="style.css">
	<title>...</title>
</head>
<body>
	...
<script type="text/javascript" src="script.js"></script>
</body>
</html>

Example 3: html

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


    </body>
</html>

Example 4: basic html code

<!DOCTYPE html>
<html>
<head>
  <title>put your title here</title>
</head>
<body>
</body>
</html>

Example 5: basic html

<p>My cat is very grumpy</p>

Tags:

Html Example