HTML

Syntax

Some tags need opening and closing tags: <tagname>Your content</tagname>

For example <html>...</html>

Some tags need only opening tag: <tagname Your content/>

For example <img/>

Important tags

You need these tags for all of your web pages:

  • <!DOCTYPE html> declaration defines this document to be HTML5.
  • <html> element is the root element of an HTML page.
  • <head> element contains meta information about the document.
  • <body> element contains the visible page content.

Create HTML File

Click on the image to see it in full size.

×
CSS Introduction