
HTML
Welcome to the chapter on HTML for Class 9. In this chapter, you will learn what HTML is, how to write basic HTML code, and how web pages are created. By the end of this chapter, you will be able to create simple web pages using HTML tags and understand the structure of a website.
Introduction to HTML
HTML stands for HyperText Markup Language. It is the standard language used to create web pages. HTML uses special codes called tags to tell the browser how to display text, images, links, and more.
Basic Structure of an HTML Page
Every HTML page has a basic structure:
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first web page.</p>
</body>
</html>
- <!DOCTYPE html>: Tells the browser this is an HTML5 document.
- <html>: The root element of the page.
- <head>: Contains information about the page (like the title).
- <body>: Contains the content that appears on the page.
Common HTML Tags
- <h1> to <h6>: Headings (h1 is the biggest, h6 is the smallest)
- <p>: Paragraph
- <a>: Link
- <img>: Image
- <ul>, <ol>, <li>: Lists (unordered, ordered, list item)
- <br>: Line break
- <table>: Table
Creating a Simple Web Page
Here is an example of a simple HTML page:
<!DOCTYPE html>
<html>
<head>
<title>About Me</title>
</head>
<body>
<h1>My Name is Rahul</h1>
<p>I am learning HTML.</p>
<a href="https://www.example.com">Visit Example</a>
</body>
</html>
Practice Questions
- What does HTML stand for?
- Write the HTML code to display "Welcome to My Website" as a heading.
- Which tag is used to add a picture to a web page?
- How do you create a link in HTML?
- What is the difference between <ul> and <ol>?
Challenge Yourself
- Create a web page with your name, a short paragraph about yourself, and a list of your hobbies.
- Add an image and a link to your favorite website.
Did You Know?
- HTML was invented by Tim Berners-Lee in 1991.
- All websites use HTML to display content.
Glossary
- HTML: HyperText Markup Language, used to create web pages.
- Tag: A code used in HTML to define elements on a page.
- Element: A part of an HTML page, like a heading or paragraph.
- Attribute: Extra information added to a tag (like
srcin<img>).
Answers to Practice Questions
- HyperText Markup Language
- <h1>Welcome to My Website</h1>
- <img>
- <a href="url">Link Text</a>
- <ul> creates an unordered (bulleted) list, <ol> creates an ordered (numbered) list.
Practice writing HTML code to build your own web pages and explore the world of web development!
Quick Navigation
- Algorithms and Flowcharts in Programming
- Visual Basic
- Animations
- HTML(Links, Anchors and Table tags)
- MS-Word
- MS-Excel(Formula Auditing, Data Tools, Protecting and Sharing workbooks/worksheets, Working with cell range)
- MS-PowerPoint
- Hardware
- Software
- Input & Output Devices
- Memory & Storage Devices
- Flash CS6
- Communication Technology(Networking, Internet and Multimedia)
- Operating Systems(Types-Interactive (GUI based), Real Time and Distributed, Commonly used OS)
- Using Windows 7
- Introduction to Scratch
- Introduction to Python(2.7.0)
- Latest Developments in the field of IT