HTML, or Hyper Text Markup Language to give its full name, is one of the most commonly used languages for creating webpages. Here is a short example of HTML code to get you started...
<h1>My First Heading</h1>
<p>My first paragraph.</p>
- The DOCTYPE declaration defines the document type
- The text between <html> and </html> describes the web document
- The text between <body> and </body> describes the visible page content
- The text between <h1> and </h1> describes a heading
- The text between <p> and </p> describes paragraph
Using the description, a web browser can display a document with a heading and a paragraph.
HTML tags are keywords (tag names) surrounded by angle brackets:
- HTML tags normally come in pairs like <p> and </p>
- The first tag in a pair is the start tag, the second tag is the end tag
- The end tag is written like the start tag, but with a slash before the tag name
- The start tag is often called the opening tag. The end tag is often called the closing tag
The purpose of a web browser (Chrome, IE, Firefox, Safari) is to read HTML documents and display them.
The browser does not display the HTML tags, but uses them to determine how to display the document:
It’s incredible to think how much the world has changed since Sir Tim Berners-Lee first started the World Wide Web in 1989, while working at the CERN particle physics laboratory in Switzerland. By 1991, the first people outside CERN started to join this new web community. Since then, the web has taken over our lives and it’s showing no sign of stopping.
Who knows where the web will take us in the future? Perhaps in another 10 years every person will have their own website. If one thing’s certain, it’s that a website is a very valuable thing to have these days.
If you own a business, a web presence is a must. If you don’t, you still might want a personal blog or portfolio site to sell your skills to prospective employers. Of course, your ability to create and maintain a website is severely limited unless you learn HTML and CSS code, the code that all websites run on.