Web Technologies

HTML

What the hell is HTML?

HTML (or HyperText Markup Language) is the language of the web. It is a markup language used to write the content in webpages, such as the one you're reading now! On its own, HTML looks pretty boring, but another language called CSS can be used to add a little style to a webpage. Click here to see the CSS file used to style this website.

HTML syntax

HTML uses tags to break up elements in the webpage. Tags are most often used in pairs, to surround content that belongs in that particular element. For example, to display a heading with the text "Hello there", the corresponding HTML code would be: <h1>Hello there!</h1>. <h1> and </h1> are the tags, and "Hello there!" is the content.

Tags can also have attributes, which alter the way they display and behave. The 'href' attribute, for example, points to an external file, which is needed when embedding hyperlinks. Below is a list of common html tags and attributes: