Creating HTML Documents for Class 5
What is HTML? HTML stands for HyperText Markup Language. It is the standard language used to create web pages. HTML uses tags to structure content and define elements like headings, paragraphs, links, and images.
Basic Structure of an HTML Document An HTML document has a specific structure. Here’s how it looks:
-
<!DOCTYPE html> - Defines the document type.
-
<html> - The root element of an HTML page.
-
<head> - Contains meta-information (like the title).
-
<title> - The title of the document (appears on the browser tab).
-
<body> - Contains the content of the web page.
Creating Your First HTML Document You can create a simple HTML document using any text editor like Notepad. Here’s an example:
My First Web PageWelcome to My Web Page!
This is my first paragraph.
- HTML is easy to learn.
- You can create your own web pages.
- Practice makes perfect!
Understanding HTML Tags -
<h1> to
<h6> - Heading tags, where
h1 is the largest.
-
<p> - Paragraph tag for text.
-
<ul> and
<li> - Unordered list and list items.
Saving Your HTML Document 1. Save your file with a
.html extension (e.g.,
myfirstpage.html).
2. Open the file in a web browser to see your page!
Creating HTML documents is a fun way to express creativity and learn more about web development!