Topics in this sectionIntroduction to Web Design2 topics
- HTML Basics
- CSS Styling
Understanding HTML: The Language of Web Pages
Every time you open a web page in a browser like Chrome or Firefox, you are looking at a document written in HTML — HyperText Markup Language. HTML is the standard language used to create and structure all websites. By learning HTML, you can build your own web pages and control how information is displayed.
HTML uses special markers called tags to tell the browser how to display content. A tag is a word or symbol enclosed in angle brackets, like <p> for a paragraph or <h1> for a main heading. When you combine opening tags and closing tags with content inside, you create an element.
For example, <p>This is a paragraph.</p> tells the browser to display the text inside as a paragraph. The browser reads these tags and shows the formatted result on your screen.
Every HTML document follows a standard structure. This structure has four main parts that must appear in order:
- DOCTYPE declaration — tells the browser this is an HTML5 document
<html>element — the container for all HTML content<head>section — contains metadata (information about the page, not visible content)<body>section — contains everything you see on the page
Here is how these parts fit together:
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Welcome to My Page</h1>
<p>This is my first webpage built with HTML.</p>
</body>
</html>
The <title> tag inside the <head> section sets the text that appears on the browser tab — it does not appear on the page itself. Everything inside <body> is what users actually see.
HTML provides six levels of headings, from <h1> (most important) to <h6> (least important). Search engines use headings to understand what your page is about, so use <h1> for your main title and lower headings for subsections.
<h1>Main Heading</h1>
<h2>Section Heading</h2>
<h3>Subsection Heading</h3>
In practice, a page about a Juba market might look like this:
<h1>Konyo Konyo Market in Juba</h1>
<h2>What You Can Buy</h2>
<p>Konyo Konyo Market is one of the largest markets in Juba. You can find fresh vegetables, dried fish, sorghum, and groundnuts.</p>
The <p> tag creates paragraphs of text. Browsers automatically add space between paragraphs.
To emphasize important words, HTML provides two useful tags:
<strong>— makes text bold, indicating strong importance<em>— makes text italic, indicating emphasis
<p><strong>Important:</strong> Always save your HTML files with the extension <em>.html</em>.</p>
Follow these steps to create a simple HTML page:
- Open a text editor like Notepad (Windows) or TextEdit (Mac).
- Type the following code exactly as shown:
<!DOCTYPE html>
<html>
<head>
<title>About Wau</title>
</head>
<body>
<h1>Welcome to Wau</h1>
<p>Wau is a city in Western Bahr el Ghazal. It is known for its <strong>hot weather</strong> and <em>busy markets</em>.</p>
<h2>Things to See</h2>
<ul>
<li>The Wau Museum</li>
<li>Local bomas surrounding the city</li>
<li>Weekly markets selling dura and maize</li>
</ul>
</body>
</html>
- Click File > Save As.
- In the file name box, type:
wau.html - In the "Save as type" dropdown, select All Files (otherwise Notepad may add .txt to the end).
- Click Save.
- Double-click the
wau.htmlfile to open it in your web browser.
You should see your webpage displayed with the heading, paragraph text, and the list of places. This is the same process used to create every web page on the internet.
| Term | Meaning |
|---|---|
| HTML | HyperText Markup Language — the language used to create web pages |
| Tag | A marker like <p> or </p> that tells the browser how to format content |
| Element | A complete unit consisting of an opening tag, content, and a closing tag |
<head> | The section containing page metadata (title, links to styles) |
<body> | The section containing all visible content |
<h1>–<h6> | Heading tags, with <h1> as the most important |
<p> | Paragraph tag |
<strong> | Bold text tag |
<em> | Italic text tag |
In South Sudan, HTML skills can be used to create websites for local businesses, schools, or community organisations. For example, a student in Malakal could build a simple webpage for a nearby clinic that lists services, opening hours, and contact information — making it easier for community members to find essential health services using only a basic phone or computer. As internet access expands across the country, the ability to build web pages becomes a valuable skill for communication, education, and small business promotion.
Question
What are the four main parts of an HTML document, in the correct order?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet