HTML में “Commands” शब्द technically use नहीं होता, बल्कि हम इन्हें Tags और Elements कहते हैं।
लेकिन practical और exam point of view से, commonly use होने वाले tags को ही अक्सर HTML Commands कहा जाता है।
ये commands web page बनाने के लिए basic building blocks की तरह काम करते हैं।
1. Heading Commands
Heading tags का उपयोग titles और headings लिखने के लिए होता है।
<h1>Main Heading</h1>
<h2>Sub Heading</h2>
<h3>Small Heading</h3>Give feedback
<h1> सबसे बड़ा और <h6> सबसे छोटा heading होता है
2. Paragraph Command
Paragraph लिखने के लिए <p> tag use किया जाता है।
<p>This is a paragraph</p>Give feedback
Text को proper format में दिखाता है
3. Line Break Command
<br>Give feedback
यह text को नई line में ले जाता है
4. Horizontal Line Command
<hr>Give feedback
Page में एक horizontal line draw करता है
5. Text Formatting Commands
HTML में text को style करने के लिए कई tags होते हैं:
<b>Bold</b>
<i>Italic</i>
<u>Underline</u>Give feedback
Output:
- Bold text
- Italic text
- Underlined text
6. Link Command
<a href="https://google.com">Visit Google</a>Give feedback
एक page से दूसरे page पर जाने के लिए
7. Image Command
<img src="image.jpg" alt="Image">Give feedback
Web page में image दिखाने के लिए
8. List Commands
Unordered List (Bullet List)
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>Give feedback
Ordered List (Number List)
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>Give feedback
9. Table Commands
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Anand</td>
<td>20</td>
</tr>
</table>Give feedback
Data को rows और columns में दिखाने के लिए
10. Form Commands
<form>
Name: <input type="text">
<input type="submit">
</form>Give feedback
User input लेने के लिए
Summary Table (Quick Revision)
| Command | Use |
|---|---|
<h1> | Heading |
<p> | Paragraph |
<br> | Line Break |
<hr> | Horizontal Line |
<b>, <i>, <u> | Text Formatting |
<a> | Link |
<img> | Image |
<ul>, <ol>, <li> | Lists |
<table> | Table |
<form>, <input> | Form |
Important Points
- HTML commands actually tags ही होते हैं
- ये web page के structure और design को control करते हैं
- हर command का specific purpose होता है
- Practical exam में इनका use जरूरी होता है
Exam Point of View
- Basic commands हमेशा पूछे जाते हैं
- Table और Form important topics हैं
- Simple webpage बनाना आना चाहिए
- Syntax याद होना जरूरी है