Skip to content
Gaswad

Getting to Know the HTML Markup Language

6 min read 10 views 0 comments

Introduction

Have you ever wondered how a web page appears in a browser? Behind almost every web page, from a simple blog to a large online store, HTML is what organizes its structure. Headings, paragraphs, images, and even buttons are all arranged using HTML.

If you want to learn how to build websites, HTML is the most logical place to start. It is easy to read, does not require any special software, and its results can be seen immediately in a browser. In this article, we will discuss what HTML is, what its basic structure looks like, and how you can get started learning it.

Is HTML Actually a Programming Language?

Technically, HTML is not a programming language; it is a markup language. Its full name is HyperText Markup Language. Its job is not to perform calculations or make decisions, but to “label” the contents of a page so that the browser knows which parts are headings, paragraphs, images, or links.

Unlike programming languages such as Python or JavaScript, HTML does not have logic such as conditionals (if-else) or loops. However, in everyday conversation, many people still refer to it as a programming language, and that is fine as long as you understand the difference.

A Brief History of HTML

HTML was created by Tim Berners-Lee, a physicist at CERN, around 1989–1991 as part of the World Wide Web project. The original goal was simple: to create a way for scientific documents to be connected through links.

Since then, HTML has continued to evolve through several versions. Version 2.0 was released in 1995, HTML 4.01 became a standard in 1999, and HTML5 became an official W3C standard in 2014. Today, HTML is maintained as a “living standard” by WHATWG, which means it is continuously updated without introducing new version numbers.

Basic Structure of an HTML Document

Every HTML page has a framework that is almost always the same. Here is the simplest example:

<!DOCTYPE html>
<html lang="id">
  <head>
    <meta charset="UTF-8">
    <title>Halaman Pertamaku</title>
  </head>
  <body>
    <h1>Halo, Dunia!</h1>
    <p>Ini halaman web pertama yang aku buat.</p>
  </body>
</html>

Here is what each part means:

  • <!DOCTYPE html> tells the browser that the document uses HTML5.

  • <html> wraps the entire contents of the page. The lang="en" attribute indicates that the page language is English.

  • <head> contains information about the page that is not displayed directly, such as the tab title and character settings.

  • <body> contains everything displayed on the screen: text, images, buttons, and so on.

Try saving the code above as a file named index.html, then open it in a browser. Once it appears, you have officially created a web page.

Commonly Used HTML Elements and Tags

HTML works through elements, which consist of an opening tag, content, and a closing tag. For example: <p>Hello</p>. Some elements also have attributes, such as <a href="https://example.com">. Here are the tags you will encounter most often:

Tag

Purpose

Example

<h1> to <h6>

Headings and subheadings

<h1>Main Heading</h1>

<p>

Paragraph

<p>Paragraph content</p>

<a>

Link to another page

<a href="/contact">Contact</a>

<img>

Displays an image

<img src="photo.jpg" alt="Cat photo">

<ul>, <ol>, <li>

Bulleted and numbered lists

<ul><li>Apple</li></ul>

<div>

Generic container for grouping elements

<div>...</div>

<button>

Button

<button>Submit</button>

<form>, <input>

Forms and input fields

<input type="text">

<table>

Data table

<table><tr><td>A</td></tr></table>

One more thing: the alt attribute on images is important. It contains an image description that screen readers can read aloud for visually impaired users. It is also displayed if the image fails to load.

HTML5 and Semantic Elements

Since HTML5, there has been a group of tags whose names directly describe their purpose. These are called semantic elements. Instead of wrapping everything in <div> elements, you can use tags with more meaningful names:

  • <header> for the header of a page or a specific section.

  • <nav> for navigation menus.

  • <main> for the main content of a page.

  • <article> and <section> for grouping content.

  • <footer> for the bottom section of a page.

The benefits are tangible. Your code becomes easier to read, search engines can better understand your page content, and screen readers can help users navigate between sections more easily. HTML5 also introduced media tags such as <video> and <audio>, eliminating the need for additional plugins.

Working Together with CSS and JavaScript

HTML almost never works alone. In web development, there is a trio of technologies that complement one another:

  • HTML structures the page and its content. Think of it as the frame and walls of a house.

  • CSS controls the appearance, including colors, font sizes, and layout. Think of it as the paint and decoration.

  • JavaScript adds interaction and logic, such as menus that can be opened and closed or forms that are automatically validated. Think of it as the electrical wiring and appliances.

A common learning path is to start with HTML, continue with CSS, and then move on to JavaScript. This way, you first understand what you are styling and making interactive.

How Do You Get Started Learning?

The good news is that you do not need to install anything complicated. You only need the following:

  1. A text editor. Your computer’s built-in Notepad will work, but Visual Studio Code is more convenient because it offers syntax highlighting and autocomplete suggestions.

  2. A browser. Use whichever one you already have: Chrome, Firefox, Edge, or Safari.

  3. A small exercise. Start by creating a personal introduction page with a heading, photo, paragraph, and list of hobbies.

  4. Experiment. Change the code, save it, then refresh the browser and see what changes. This is a quick way to learn.

  5. Use references. MDN Web Docs and W3Schools are useful resources to consult whenever you get stuck.

Do not be afraid of making mistakes. If you forget to close a tag, the layout might become messy—and that is actually a good way to learn.

Conclusion

HTML may not be a programming language in the strict sense, but it is the foundation of every web page. By understanding document structure, common tags, and HTML5 semantic elements, you will have a strong foundation for moving on to CSS and JavaScript.

The key is simply to get started. Create an index.html file, write a few tags, and see the result in your browser. From there, the rest will follow naturally.

About the author

Rakhman Dev.

Next up / recommended reads

Discussion (0)

Leave a comment

Comments are checked before they appear.

Your email address will not be shown or shared.

No comments yet: be the first to write one.