Starting a Business - 1440x460

HTML: What is HTML?

HTML is the language that gives a web page its content and structure. From the headings and paragraphs you read to the images, links and buttons you click, HTML provides the basic building blocks of a website.

When you open a website, your browser reads its HTML and uses it to work out what to display. Other web languages, like CSS and JavaScript, help determine how that content looks and what happens when you interact with it.

Almost every website you’ll ever visit uses HTML in some form. But you don’t need to know how to write it to build a website of your own.

 

What is HTML?

HTML stands for HyperText Markup Language. It’s a standard language used to organise content on web pages in a way that browsers can understand.

The ‘HyperText’ part refers to the ability to link one page to another, while ‘Markup’ refers to the way we label different pieces of content.

HTML uses what are known as tags to tell a browser what each piece of content is. A heading, for example, might sit between two heading tags, while a paragraph sits between two paragraph tags.

Here’s what a few lines of HTML might look like and how a browser would display them:

The HTML code
<h1>Welcome to my website</h1>
<p>Thanks for stopping by!</p>
<a href="https://example.com">Find out more</a>

What you see in your browser

Welcome to my website

Thanks for stopping by!

Find out more

The browser reads the HTML tags and displays a heading, a paragraph and a clickable link. Visitors see the finished content rather than the code behind it.

 

What is HTML used for?

HTML is used to organise just about everything you see on a web page, from a single line of text to a product listing in an online shop.

On a typical business website, HTML might be used to:

✓ Display headings and paragraphs.

✓ Add images and videos to a page.

✓ Create links between pages.

✓ Add buttons, checkboxes and contact form fields.

✓ Organise information into lists and tables.

✓ Provide information about a page to search engines.

HTML also plays an important role in website accessibility. Using the right tags helps assistive technologies like screen readers understand the structure of a page and makes it easier for people to navigate your website.

 

What are HTML tags?

HTML tags are short pieces of code enclosed in angle brackets. Most come in pairs: an opening tag that marks the start of an element and a closing tag that marks its end.

For example, <strong>Hello</strong> marks the word Hello as important, which browsers typically display in bold.

Some tags, such as those used to display images, don’t need a closing tag.

Common HTML tags and what they do

HTML tag What it does Example use
<h1> Creates a main heading. The title of a blog post.
<h2> Creates a section heading. A new section within an article.
<p> Creates a paragraph. A product description.
<a> Creates a hyperlink when given a destination. A link to your contact page.
<img> Displays an image. A product photo or company logo.
<button> Creates a button. An ‘Add to basket’ button.
<strong> Marks text as important. Highlighting a key piece of information.
<table> Organises data into a table. A comparison of products or prices.

 

What is the difference between HTML, CSS and JavaScript?

You could build a whole website using nothing but HTML, but it would probably look rather basic.

HTML works alongside other web languages to create the kinds of websites we’re used to visiting today.

CSS (Cascading Style Sheets) takes care of things like colours, fonts, spacing and layout, while JavaScript makes pages more interactive.

Imagine you’re building a button for your online shop. HTML puts the button on the page, CSS makes it green with rounded corners, and JavaScript can make it update your customer’s basket when they click it.

HTML
Add to basket

HTML creates the button and gives it a label.


HTML + CSS
Add to basket

CSS changes the button’s colour, shape, size and font.


HTML + CSS + JavaScript

✓ Added to basket

Your basket: 1 item

JavaScript can respond to a click, change the button’s label and update the basket without reloading the page.


Other languages, like PHP, can work behind the scenes on the web server, fetching information from a database and generating the HTML that gets sent to your browser.

 

How HTML compares with other web languages

Language What it does Where it’s used Example
HTML Gives a web page its structure. Browser Marks up the product name, image and price.
CSS Controls how a web page looks. Browser Sets the button colour and adjusts the layout for phones.
JavaScript Makes pages interactive and can also run on the server. Browser and server Updates the basket total without reloading the page.
PHP Builds pages and handles requests on the server. Server Fetches product details from the database and builds the page in a Woo shop.
Python Powers web apps and processes data on the server. Server Finds matching products when someone searches a shop built with Python.

 

Do I need to know HTML to build a website?

You can build a professional-looking website without writing a single line of HTML.

With Website Builder, you can choose a template, add your text and images, move things around and publish your website. The HTML is taken care of behind the scenes.

The same goes for a site you build with Managed Hosting for WordPress. Every time you add a heading, insert an image or create a link using the WordPress block editor, you’re creating content that WordPress turns into HTML for your visitors.

Of course, knowing a little HTML can give you more freedom to customise your website. And with AI tools able to write, explain and help fix code, there’s never been an easier time to give it a go.

 

Try it yourself: Take a peek behind any website

You can see the HTML behind almost any web page using your browser.

On a desktop or laptop, right-click on a web page and select View page source. You’ll see the original HTML sent to your browser, along with references to things like scripts and stylesheets.

Alternatively, select Inspect to explore individual elements on the page, including their HTML and CSS.

You can even experiment with changing text or colours in the browser’s developer tools. Don’t worry, any changes you make are temporary and only appear in your own browser.

 

Does HTML matter for SEO?

Good HTML helps search engines understand what your website is about. Using descriptive page titles, logical headings, meaningful links and alternative text for images can all help make your content easier to understand.

For example, marking up the main title of an article as an H1 heading rather than simply making the text bigger and bolder gives that heading a clear role in the structure of the page.

Most modern website builders and WordPress themes handle much of this for you. When adding content, just make sure you’re using the heading, paragraph and other formatting options as intended.

 

Is HTML a programming language?

HTML is technically a markup language rather than a programming language. It describes what content is and how it’s organised, rather than providing instructions for calculations, decisions or other programmed behaviour.

That’s where programming languages like JavaScript and PHP come in. They can perform tasks, process information and change the content of a page based on what happens.

 

What is HTML5?

HTML5 was a major update to HTML that introduced features to help websites work better across modern devices and browsers.

It brought in new ways to embed video and audio directly into web pages, along with tags like <article>, <header> and <footer> that make it easier to describe the different parts of a website.

HTML continues to evolve today through what’s known as the HTML Living Standard, rather than through numbered releases alone.

Find your perfect domain name today

Edit Template

In this article

If you’re just getting started with search engine optimisation (SEO), you might be tempted to go through Google’s ranking factors one by one and create a list of things you need to do...

Your domain ending helps set the tone for your website before anyone clicks. It isn’t just a part of your web address — it can influence how professional and trustworthy your business appears...

If you’re starting an online business, you can’t just expect potential customers to find you and spend money on your product or service. You need to promote your site in the right places...

For more, check out: Local SEO in 10 – How Do I Get My Business Found Online?

...