HTML: Skeleton Code For A Basic Web Page

HTML

The following skeleton code is used as the basic foundation for creating a new HTML web page.

The absolute most basic HTML code required to create a web page is provided here. This is great for basic testing or to get a working page up quickly:

<html>  <head>    <title>Hello, world!</title>  </head>  <body>    <p>Hello, world!</p>  </body></html>

A better basic foundation is provided below:

<!DOCTYPE html><html lang="en">    <head>        <meta charset="UTF-8" />        <meta http-equiv="content-type" content="text/html; charset=utf-8" />        <meta name="viewport" content="width=device-width,initial-scale=1">        <meta name="description" content="Your great description goes here!" />        <title>Hello, world!</title>    </head>    <body>        <p>Hello, world!</p>    </body></html>

Reference:
W3 Consortium: https://www.w3.org/
HTML Standard: https://html.spec.whatwg.org/multipage/
DOM Standard: https://dom.spec.whatwg.org/

Leave a comment