Thursday, March 28, 2024

HTML Basic Tags

 

TagDescriptionExample
<html>Defines the root of an HTML document<html></html>
<head>Contains metadata about the document<head></head>
<title>Sets the title of the document<title>Welcome to My Website</title>
<body>Contains the content of the document<body><h1>Hello, World!</h1></body>
<h1> - <h6>Heading tags (largest to smallest)<h1>Main Heading</h1>
<p>Paragraph<p>This is a paragraph.</p>
<a>Anchor (creates a hyperlink)<a href="https://www.example.com">Link</a>
<img>Image<img src="image.jpg" alt="Image Description">
<ul>Unordered list<ul><li>Item 1</li><li>Item 2</li></ul>
<ol>Ordered list<ol><li>First</li><li>Second</li></ol>
<li>List item<ul><li>Item 1</li><li>Item 2</li></ul>
<table>Defines a table<table><tr><td>Row 1, Cell 1</td></tr></table>
<tr>Table row<tr><td>Row 1, Cell 1</td></tr>
<td>Table data cell<td>Row 1, Cell 1</td>
<th>Table header cell<th>Name</th><th>Age</th>
<form>Defines a form<form action="/submit" method="post"></form>
<input>Input field<input type="text" placeholder="Enter text">
<button>Button<button>Click Me</button>
<div>Division (for grouping content)<div><p>Content here</p></div>
<span>Inline division<p>This is a <span>small</span> word.</p>

These are some of the most commonly used HTML tags. Each tag serves a specific purpose and helps structure the content of a web page.

No comments:

Post a Comment

Class: X Session: 2023-24 Computer Applications (Code 165) Sample Question Paper (Theory)

Check the Link of Sample Question Paper  https://drive.google.com/file/d/1Do3jskK-Ipt380Jl1XW1EpwlMVeQG41R/view?usp=drive_link https://drive...