๐ Real Life Examples of HTML Tags: Websites You Use Every Day
HTML (HyperText Markup Language) is the standard markup language for creating web pages. HTML tags are the building blocks of any website. They define the structure and content of the page. Let's explore some common tags and where you might see them:
๐ Quick Study Guide
- ๐งฑ <div>: Used for creating divisions or sections on a webpage. Think of it as a container.
- ๐๏ธ <p>: Represents a paragraph of text.
- ๐ผ๏ธ <img>: Embeds an image into the webpage. Key attributes include
src (source) and alt (alternative text).
- ๐ <a>: Creates a hyperlink to another webpage or a specific section of the current page. The
href attribute specifies the link's destination.
- ๐งฎ <ul> and <ol>: Used for creating unordered (bulleted) and ordered (numbered) lists, respectively.
- ๐ <li>: Represents a list item within an unordered or ordered list.
- ๐ฐ <h1> to <h6>: Defines headings of different levels. <h1> is the most important heading, and <h6> is the least.
- โจ๏ธ <input>: Used within forms to create interactive controls for users to enter data.
- ๐ <table>, <tr>, <th>, <td>: Used to create tables for displaying data in rows and columns.
<table> is the container, <tr> defines a row, <th> defines a header cell, and <td> defines a data cell.
๐งช Practice Quiz
-
Which HTML tag is used to create a hyperlink?
- <p>
- <a>
- <img>
- <div>
-
Which tag is used to embed an image in HTML?
- <image>
- <src>
- <img>
- <pic>
-
What does the <ul> tag represent?
- Ordered List
- Unordered List
- Definition List
- Navigation List
-
Which tag defines the most important heading?
- <h6>
- <h3>
- <h1>
- <h9>
-
Which HTML tag is used to create a table row?
- <table>
- <td>
- <tr>
- <th>
-
Which tag is commonly used to create sections or containers on a webpage?
- <span>
- <div>
- <section>
- <article>
-
Which tag is used to create an interactive control for user input in a form?
- <button>
- <textarea>
- <input>
- <select>
Click to see Answers
- B
- C
- B
- C
- C
- B
- C