basic html syntax code example

Example 1: html syntax

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML Syntax</title>
    <link rel="stylesheet" href="style.css">
    <script src="script.js"></script>
</head>
<body>
    <p>paragraph</p>
    <img src="img/myimage/png" alt="My Image">
    <a href="https://link.com">The Link</a>
</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

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


    </body>
</html>

Tags:

Html Example