Learn HTML Basics: Titles, Paragraphs, Lists, Links, and Images


Webpages are made up of various elements
Think about the websites you frequently visit.
News sites have large headlines, body text, related article links, and photos.
Online stores display product images, prices, descriptions, and purchase buttons.
Similarly, webpages are composed of multiple HTML tags creating a single screen.
In this lesson, we'll learn the five most commonly used elements:
Headings
Paragraphs
Lists
Links
Images
These five elements form the foundation of nearly every website.
Heading Tags (h1 ~ h6)
Headings are the most important element for structuring page content.
HTML provides six heading levels from <h1> to <h6>.
<h1>Largest Heading</h1>
<h2>Second Heading</h2>
<h3>Third Heading</h3>
<h4>Fourth Heading</h4>
<h5>Fifth Heading</h5>
<h6>Smallest Heading</h6>
Lower numbers indicate more important headings.
Especially <h1>, which should generally be used only once per page as it represents the most important title on that page.
Search engines also recognize <h1> tags as significant information.
Paragraph Tags (p)
When writing regular text on a webpage, use the <p> tag.
<p>HTML is a markup language that creates web page structure.</p>
<p>CSS is a styling language that makes HTML look good.</p>
Using paragraph tags separates text visually, and browsers automatically apply appropriate spacing between paragraphs.
When writing longer content, it's easier to read when broken into multiple shorter paragraphs.
List Tags (ul, ol, li)
Use list tags when displaying multiple items.
There are two main types of lists:
Unordered List
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
These display as bullet-point lists on screen.
Ordered List
<ol>
<li>Learn HTML</li>
<li>Learn CSS</li>
<li>Learn JavaScript</li>
</ol>
These automatically display with numbers.
Commonly used when the order of items matters.
Link Tag (a)
The <a> tag is used for linking to other pages.
<a href="https://www.google.com"
Google to visit
</a>
The href attribute specifies the destination address.
To open in a new tab, add target="_blank":
<a href="https://www.google.com" target="_blank"
Google in new tab
</a>
Using target="_blank" opens the link in a new browser tab.
This is commonly used for linking to external sites.
Image Tag (img)
Use the <img> tag to display images on webpages.
<img src="cat.jpg" alt="Cat photo"
Key attributes include:
src: Location of the image filealt: Text description of the image
If an image fails to load, the alt text will appear instead.
Search engines and screen readers also use alt content for accessibility.
Adjusting Image Size
You can specify image size as follows:
<img src="cat.jpg" width="300" alt="Cat"
Or with height specified too:
<img src="cat.jpg" width="300" height="200" alt="Cat"
However, modern web development typically uses CSS for sizing rather than HTML attributes.
For this lesson, focusing on basic HTML syntax is sufficient.
Putting It All Together
You can create a simple webpage by combining the tags we've learned.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"
<title>HTML Practice</title>
</head>
<body>
<h1>Introduction to HTML & CSS Web Design</h1>
<p>Learning basic HTML tags.</p>
<h2>Topics Covered</h2>
<ul>
<li>Headings</li>
<li>Paragraphs</li>
<li>Lists</li>
<li>Links</li>
<li>Images</li>
</ul>
<a href="https://example.com" target="_blank"
Visit Homepage
</a>
</body>
</html>
While simple, this basic structure will become much more visually appealing once CSS is applied.
Common Beginner Mistakes
1. Forgetting to Close Tags
<h1>Learning HTML
Always include closing tags.
<h1>Learning HTML</h1>
2. Incorrect Image Path
<img src="cat.jp"
Mistyped file names or extensions will prevent images from displaying.
3. Missing href Attribute
<a>Homepage</a>
This won't work as a clickable link.
You must include the href attribute.
4. Overusing h1 Tags
Use only one <h1> per page for the main title.
Use <h2>, <h3>, etc., to create proper heading hierarchy.
Key Takeaways
Let's summarize what we've learned:
<h1>through<h6>are heading tags.<p>is used for paragraphs.<ul>and<ol>create lists.<li>defines each item in a list.<a>creates links to other pages.<img>displays images.The
altattribute is crucial for image descriptions and accessibility.
These tags form the foundation of HTML, so it's important to master them early on.
In Closing
In this lesson, we learned how to use headings, paragraphs, lists, links, and images to create web content.
With just these basic elements, you can create simple introduction or information pages.
The next lesson will cover tables (Table) and forms (Form), where we'll learn to build interactive websites that exchange information with users. Join us as we progress toward creating more practical website structures.
FAQ
Why are heading levels important?
Heading levels (h1-h6) create a content hierarchy that helps both users and search engines understand the structure of your page.
What does alt text do for images?
Alt text provides a description of an image if it fails to load, improves accessibility for screen readers, and helps with SEO.
Korean Source
This article is an English localization of a Korean-language report from BlogScore. Original: [Html/CSS 강좌] 4강 제목, 문단, 목록, 링크, 이미지 태그 배우기