Introduction to web page Designing using HTML

 

HTML (Hyper Text Markup Language) is the foundational language used to structure and design web pages. It uses a system of tags to define elements like headings, paragraphs, and images.

 

Basic structure of a HTML document

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Page Title</title>
</head>
<body>
    <!-- Visible content goes here -->
</body>
</html>

What is HTML?

HTML (HyperText Markup Language) is the standard language used to create web pages. It uses tags written inside angle brackets, such as <p> and <h1>, to tell the browser how to display content. HTML was created by Tim Berners-Lee.

Basic Structure of an HTML Document

<html>
  <head>
    <title>My First Page</title>
  </head>
  <body>
    <h1>Welcome</h1>
    <p>This is my first web page.</p>
  </body>
</html>
  • <html> is the root element that contains the whole page.
  • <head> holds information about the page, such as its title.
  • <title> sets the text shown on the browser tab.
  • <body> contains everything visible on the page.

Types of Tags

  • Container (paired) tags have an opening and closing tag, e.g. <b>…</b>.
  • Empty (unpaired) tags have no closing tag, e.g. <br> and <hr>.

Commonly Used Tags

  • <h1> to <h6> headings
  • <p> paragraph
  • <b>, <i>, <u> bold, italic, underline
  • <a href=”…”> hyperlink
  • <img src=”…”> image
  • <ol>, <ul>, <li> lists
  • <table>, <tr>, <td> tables

Important Questions

Q. What is HTML? Who developed it?
Ans. HTML is the markup language used to create web pages. It was developed by Tim Berners-Lee.

Q. Differentiate between container tags and empty tags.
Ans. Container tags have both an opening and a closing tag, like <p></p>. Empty tags have only an opening tag, like <br>.

Q. Which section of an HTML document contains the visible content?
Ans. The <body> section.