Learning Outcome
5
Open and run an HTML file in the browser
4
Explain the purpose of important HTML tags
3
Understand the basic structure of an HTML document
2
Create the first .html file
1
Create a project folder for HTML development
To build a proper house, you need:
HTML provides the structure of the webpage
Different HTML tags act like different parts of the building
Without structure, a webpage cannot be displayed properly in the browser.
Now that we understand the importance of webpage structure, let us start creating our first HTML project practically.
Creating First HTML File
Understanding Basic HTML Structure
Creating First HTML File
Understanding Important HTML Tags
Understanding Basic HTML Structure
Creating First HTML File
Understanding Important HTML Tags
Understanding Basic HTML Structure
Creating First HTML File
Writing First HTML Program
A Project Folder is a directory used to store all files related to a website or web application.
It helps developers organize files, manage HTML/CSS/JS/images, and keep the project structure clean and understandable.
Open your
system.
Create a new folder on Desktop
Give folder name: HTMLProject
An HTML file contains webpage structure and content written using HTML tags.
Saved using the .html extension
Can contain text, images, links, and buttons
Every HTML document follows a standard structure that :
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>Organizes webpage content properly
Helps browsers display pages correctly
Makes code easy to read and manage
Creates the foundation of every webpage
Defined at the beginning of the html page
The root element that contains all the elements
Specifies more details of the webpage to the browser
Specifies more details of the webpage to the browser
Content that displays like paragraph,images,links
<!DOCTYPE html>
<html>
<head>
<title>First HTML Page</title>
</head>
<body>
<h1>Welcome to Web Development</h1>
<p>This is my first HTML webpage.</p>
</body>
</html>
Summary
5
Opened and executed the HTML file in the browser
4
Written your first HTML program
3
Learned the purpose of important HTML tags
2
Understood the basic HTML document structure
1
Created the first .html file
Quiz
Which tag defines the root element of an HTML document?
A. <body>
B. <head>
C. <html>
D. <title>
Quiz-Answer
Which tag defines the root element of an HTML document?
A. <body>
B. <head>
C. <html>
D. <title>