HTML

HTML is a mark-up language used to set out what should be placed on a web page. Mark-up languages are not programming languages.

Web pages are stored as HTML documents.

HTML can do several things:

  • set where text should be placed
  • describe how text should look
  • create hyperlinks
  • embed images
  • create sections within the page
Diagram of a webpage and its components

Tags

HTML uses tags to tell the browser how the page should be displayed in a browser. There are many different tags used within web pages.

  • tags start like this: <tagname>
  • tags usually end like this: </tagname>, although some can self-close

Some important HTML tags:

  • <head> - States where the page begins and ends.
  • <title> - States the title of the web page.
  • <body> - States where the page content begins and ends.
  • <p> - States where new paragraphs of text begin and end.
  • <h1> - Creates headers, such as the main title of the page.
  • <img> - Embeds images. These tags can self-close.

Viewing HTML code

To see how a web page has been coded, use the ‘View Source’ option in the browser. HTML can look complicated at first, but by learning the basics you should be able to spot elements that you understand.

Creating HTML pages

It is possible to create HTML pages on a desktop computer and view them in a browser - but they will not be on the internet unless they are uploaded to a server. HTML pages can be written in plain text editors, such as Notepad, and saved as an HTML file.

Blog sites such as WordPress, Tumblr and Blogger are free platforms that allow users to customise their blogs by editing HTML.

Move on to Test
next