Professional Documents
Culture Documents
HTML
HTML
HTML
HTML stands for Hypertext Markup Language. It is the standard markup language used to
create web pages. HTML is a combination of Hypertext and Markup language. Hypertext
defines the link between web pages. A markup language is used to define the text document
within the tag to define the structure of web pages.
This language is used to annotate (make notes for the computer) text so that a machine can
understand it and manipulate text accordingly. Most markup languages (e.g. HTML) are human-
readable. The language uses tags to define what manipulation has to be done on the text.
Advantages of HTML:
Disadvantages of HTML:
1. HTML can only create static web pages. For dynamic web pages, other languages have
to be used.
2. A large amount of code has to be written to create a simple web page.
3. The security feature is not good.
Features of HTML
1
Basic structure of html:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>GeeksforGeeks</h1>
</body>
</html>
2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Academy Website</title>
<style>
.main{
width : 50%;
margin: auto;
padding: 10px;
html, body {
margin: 0;
padding: 0;
*{
box-sizing: border-box;
3
body { background-color:whitesmoke; line-height:1.6; color: #0f0e0e;}
</style>
</head>
<body>
<header>
<div class="container-fluid">
<form class="d-flex">
</form>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
4
<li class="nav-item">
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</header>
</html>
5
6
Code of orderedlistandunorderedlist.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body{
width: 50%;
margin: auto;
background:#e7e9e8;
</style>
</head>
<body>
<h1>list</h1>
<ol>
<li>messi</li>
<li>ronaldo</li>
<li>neymar</li>
7
</ol>
<ul>
<li>g-wagon</li>
<li>bugati</li>
<li>bmw</li>
</ul>
<dl>
<dd>inter miami</dd>
<dd>AL-nassar</dd>
<dd>al-hilal</dd>
</dl>
</body>
</html>
Image of orderedandunorderedlist.html:
8
Code of registrationform.html:
9
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
h1{
text-align: center;
.child2{
width: 50%;
margin: auto;
background:#eeff00;
.parent {
margin: 1rem;
padding: 2rem;
text-size-adjust: 6px;
10
</style>
</head>
<body>
<div class="child2">
<br>
<br>
<label>
Gender :
</label><br>
<br>
<br>
<label>
11
Phone :
</label>
<br>
<label for="Address">Address</label>
<br> <br>
Email:
<br> <br>
Password:
<br> <br>
Re-type password:
</form>
<script src="./bootstrap-5.3.0-dist/js/bootstrap.bundle.js"></script>
</body>
</html>
12
Image of registrationform.html:
13
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.main{
width : 50%;
margin: auto;
padding: 10px;
table,tr,td,th{
border-collapse: collapse;
table{
width: 50%;
margin: auto;
td{
padding: 5px;
14
}
</style>
</head>
<body>
<div class="main">
<table style="width:100%">
<caption>list of students</caption>
<tr>
<tr>
<th>first name</th>
<tr>
<tr>
<td rowspan="2">1.</td>
<td>saugat</td>
<td>pandey</td>
</tr>
15
<tr>
<td>sauren</td>
<td>shrestha</td>
</tr>
<tr>
<tr>
<tr>
<td rowspan="2">2.</td>
<td>naveen</td>
<td>panday</td>
</tr>
<tr>
<td>parthak</td>
<td>kandel</td>
</tr>
</table>
</div>
</body>
</html>
16
Image of table6.html:
17