simple hello world html code example

Example 1: HTML hello world

<!DOCTYPE html>
<html>
  <body>
  	Hello World!
  </body>
</html>

Example 2: hello world html

<!DOCTYPE html>
<html>
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSS goes here -->
    <link></link>

    <title>Hello, world!</title>
  </head>
  <body>
    <h1>Hello, world!</h1>
    <!-- JS goes here -->
    <script></script>
  </body>
</html>

Example 3: how to print hello world in html

<!DOCTYPE html>
<html>
  <head></head>
  <body>HELLO WORLD</body>
</html>

Example 4: simple hello world cod in html

<html>
<head>
<title>Page Title</title>

</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>


</body>
</html>

Tags:

Html Example