Chapter 3. HTML Basics

HTML is used to structure a web page and provide content, while CSS adds styles to the structure and content. In this chapter, you will learn the basics of HTML coding, including syntax, the role of HTML tags, and how attributes work.
This chapter introduces essential HTML elements, such as headings, paragraphs, and various sectioning tags, that are fundamental for structuring content on web pages.
It may take time for beginners to fully grasp concepts like semantics. For now, you can skim through the sections, and return to them once you are more familiar with HTML.
What We Cover in This Chapter
The following topics are covered in this chapter:
What Is HTML?
This section explains what HTML (HyperText Markup Language) is, how it functions as the backbone of web pages, and how it structures content using tags.
HTML Element
Learn what an HTML element is, how it is composed of a start tag, content, and an end tag, and how HTML elements are used to create a web page structure.
Attribute
This section introduces HTML attributes, which provide additional information about elements. You will learn how attributes are applied within start tags to modify element behavior or appearance.
HTML Document Structure
Discover the fundamental structure of an HTML document, including the <html>
, <head>
, and <body>
sections, and understand their roles in an HTML page.
Layout Semantics
This section covers the semantic tags in HTML, like <header>
, <footer>
, and <main>
, that help define the structure and meaning of a web page.
Heading and Paragraph Tag
Understand the importance of headings (<h1>
to <h6>
) for structuring content hierarchically, and how paragraphs (<p>
) are used for text content.
Text-Level Semantics
Learn about the text-level semantic tags such as <em>
, <strong>
, and <code>
, which provide meaning to specific parts of the content.
Space, Line-break and Tag in Content
This section covers how HTML handles spaces, line breaks, and special characters, and how to use entities like &
, <
, and >
to display reserved characters.
Comments in HTML Document
Comments are used to annotate HTML code for clarity. Learn how to use comments effectively within an HTML document to improve code readability without affecting its output.
Learn offline for better focus!
A book for this course is available on Amazon.
HTML & CSS Visual Guide
Step By Step Manual for Complete Beginners with Zero Coding Experience to Build Stunning Websites from Scratch
Get the Book Now