GS Tech Info
NOTE: There are a few but true information is available.
Html refers to Hyper text markup language. It is used for building the structure of a web-page. It is mostly text based language.
Tags define elements for a webpage like heading, paragraphs, links, forms, images, and more.
There are mainly two types of tag in Html
The staring of a tag are writtened in angle brakets and the closing of the tag is forward slash in the staring of tag name.
They are always written in openning and closing tag
There are many other paired tags such as:
1 h1 to h6 <!-- Heading tags -->
2
3 <h1>GS Tech Info</a>
4
5 <div>
6 ....
7 </div>
8
9 <p>Hello this is the GS Tech info</P>
Teh tag which is single, means there are no any closing tag and opening tag, there are jsut a single tag (without any pair).
For Example:
1 <br>
2 <hr>
There are many few unpaired tags
There are no any openning or closing tag, because these tags does not contains any content to render in the browser, they are able to change the output format for more clearty or readablity.
Example of the use of br tag
1 <p>This is a blog of Html (Hyper Text Markup Language)
2Output:
3 This is a blog of Html (Hyper Text Markup Language)
4
5And after using <br> tag;
6
7 <p>This is a blog of Html <br> (Hyper Text Markup Language)
8Output:
9 This is a blog of Html
10 (Hyper Text Markup Language)
11
This is the use of unpaired tags.
they will provide more readablity to your webpage.
The moost of the tags in Html is paired.
1<a href="https://gs-tech-info.vercel.app"/>GS Tech Info</a>
2 <!-- Redirect the user on internet -->
3Output:
4 GS Tech Info
5
6<a href="#id" />ID</a>
7 <!-- Link a element or component in a page -->
8Output:
9 ID
1<img src="img.png"/> <!-- the image will be rendered -->
1<h1>Hardware Components</h1>
2<ul>
3 <li>CPU</li>
4 <li>Ram</li>
5 <li>SSD</li>
6 <li>Key-board</li>
7<ul>
1<h1>Hardware Components</h1>
2<ol>
3 <li>CPU</li>
4 <li>Ram</li>
5 <li>SSD</li>
6 <li>Key-board</li>
7<ol>
1<table border>
2<tr>
3 <th>Name</th>
4 <th>Class</th>
5 <th>Roll No.</th>
6</tr>
7<tr>
8 <td>GS</td>
9 <td>10th</td>
10 <td>5</ts>
11</tr>
12</table>
1<h1>Login</h1>
2<form>
3 <input placeholder="Name" type="Name">
4 <br>
5 <br>
6 <input placeholder="Email" type="email">
7 <br>
8 <br>
9 <button>Login</button>
10</form>
1<h1>Hello World</h1>
2<h2>Hello World</h2>
3<h3>Hello World</h3>
4<h4>Hello World</h4>
5<h5>Hello World</h5>
6<h6>Hello World</h6>