Skip to content
Search

HTML:Tutorials:Basic

lastmod 2018-08-17created 2018-06-282 edits

Explains basic usage.

Hello World program

<!DOCTYPE html>
<html>
  <head>
    <title>Hello HTML</title>
  </head>
  <body>
    <p>Hello World!</p>
  </body>
</html>

HTML basic usage

HTML headings. (Headings can be defined from h1 to h6.)

<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>

HTML paragraphs:

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

HTML links. (The link address is specified in the href attribute of a.)

<a href="http://www.w3schools.com">This is a link</a>

HTML images

<img src="w3schools.jpg" width="104" height="142" />

See also