REACTHTML
REACTHTML
<html>
<head>
<title>JMIT</title>
</head>
<body>
</html>
OUTPUT
Basic HTML Tags
<html>
<head>
<title>JMIT</title>
</head>
<body>
<font color=red size=70>FONT TAG</font><!--FONT TAG-->
<hr>
<a href="https://www.google.com/"
target="_blank">Google </a>
<a href="https://www.facebook.com/"
target="_blank">Facebook</a><!--ANCHOR TAG-->
<hr><!--HORIZONTAL TAG-->
</body>
</html>
OUTPUT
4
FORMATION OF TABLE IN HTML
<html>
<head><title>TABLE TAG<title></head>
<body>
<h2 align>TABLE TAG</h2>
<table border=1 align=center cellspacing=10 cellpadding=10>
<tr>
<th>SRNO</th>
<th>Name.</th>
<th>Roll No.</th>
<th>Class</th>
</tr>
<tr>
<td>1</td>
<td>Sahil</td>
<td>1222365</td>
<td>2-CSE-B</td>
</tr>
<tr>
<td>2</td>
<td>Vedant</td>
<td>1222373</td>
<td>2-CSE-B</td>
</tr>
<tr>
<td>3</td>
<td>Aakash</td>
<td>1222351</td>
<td>2-CSE-B</td>
</tr>
</table>
</body>
</html>
OUTPUT
INPUT TAG HTML
<html>
<head></head>
<body>
<form>
<table border=1 align=center>
<tr>
<th>username</th>
<td>
<input type="text"/>
</td>
</tr>
<tr>
<th>password</th>
<td>
<input type="password"/>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input type="button" value="Login"/>
</td>
</tr>
</table>
</form>
</body>
</html>
OUTPUT
Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
</head>
<body>
<form>
<h2>Payment Information</h2>
<p>*Card Type:
<select name="card_type" id="card_type" required>
<option value="">--Select a card type-- </option>
<option value="visa">Visa Card</option>
<option value="rupay">Rupay Card</option>
<option value="master">Master Card</option>
</select>
</p>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
</head>
<body>
</html>
OUTPUT
INTERNAL CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
<style>
#first {
background-color: yellow;
align-items: end;
border: solid red;
font: bolder;
}
div {
background-color: blue;
align-items: end;
border: solid red;
font: bolder;
font-size: medium;
}
.hum {
background-color: blue;
align-items: end;
border: solid red;
font: bolder;
font-size: larger;
}
</style>
</head>
<body>
<div id="first">
Yellow
</div>
<div>
<h1>NEXT ALGORITHM</h1>
</div>
<div class="hum">
<marquee><b>CSS<b></marquee>
</div>
</body>
</html>
OUTPUT
EXTERNAL CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="externalCSS.css">
<style>
#first {
background-color: yellow;
align-items: end;
border: solid red;
font: bolder;
font-size: xx-large;
}
div {
background-color: blue;
align-items: end;
border: solid red;
font: bolder;
font-size: medium;
}
</style>
</head>
<body>
<div id="first">
Yellow
</div>
<div>
<h1>CSS</h1>
</div>
<div class="external">
<marquee><b>EXTERNAL CSS<b></marquee>
</div>
</body>
</html>
FILE : externalCSS.css
.external {
background-color: royalblue;
text-decoration: red;
}
OUTPUT
Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
</head>
<body>
<form>
<h2>Payment Information</h2>
<p>*Card Type:
<select name="card_type" id="card_type" required>
<option value="">--Select a card type-- </option>
<option value="visa">Visa Card</option>
<option value="rupay">Rupay Card</option>
<option value="master">Master Card</option>
</select>
</p>
Key Id Class
ID is unique in a page and can only apply The class can be applied to multiple
to at most one element elements so it could be multiple
Uniqueness
times on a single page.
ID :
<!DOCTYPE html>
<html>
<head>
<title>
Id demo
</title>
<style>
#idDemo{
color:green;
font-size:25px;
}
</style>
</head>
<body style="text-align:center">
<h1>Get element by Id</h1>
<p id="idDemo">Demo for Id selector</p>
</body>
</html>
Class :
<!DOCTYPE html>
<html>
<head>
<title>
Class demo
</title>
<style>
.classDemo{
color:orange;
font-size:25px;
}
</style>
</head>
<body style="text-align:center">
<h1>Get element by class<h1>
<p class="classDemo">Demo for class selector</p>
</body>
</html>
OUTPUT
OUTPUT
DISPLAY PROPERTY
The Display property in CSS defines how the components (div, hyperlink,
heading, etc) are going to be placed on the web page. As the name
suggests, this property is used to define the display of the different parts
of a web page.
Syntax:
display: value;
Property values:-flex
EXAMPLE :
!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1 style="text-align: center;">
Snails
</h1>
<hr>
<p class="*">
A snail is a shelled gastropod. The name is most often
applied to land snails, terrestrial pulmonate gastropod
molluscs. However, the common name snail is also used for
most of the members of the molluscan class Gastropoda
that have a coiled shell that
is large enough for the animal to retract completely into.
When the word "snail" is used in this most general sense, it
includes not just land snails but also numerous species of
sea snails and freshwater snails. Gastropods that naturally
lack
a shell, or have only an internal shell, are mostly called slugs,
and land snails that have only a very small shell (that they
cannot retract into) are often called semi-slugs.
</p>
<br>
<img style="float: right; width: 350px;" src="Snail.jpg">
<p>
Snails have considerable human relevance, including as
food items, as pests, and as vectors of disease, and their
shells are used as decorative objects and are incorporated
into jewelry. The snail has also had some cultural
significance, tending to be
associated with lethargy.
</p>
</body>
</html>
OUTPUT
ALIGN-ITEMS AND JUSTIFY-CONTENT
The align-items property is used to set the alignment of items inside the
flexible container or in the given window.
EXAMPLE :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
<style>
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;}
.content {
background-color: #f2f2f2;
padding: 20px;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="content">
<h1>Welcome to My Webpage</h1>
<p>This is a sample content created using the align-items and
justify-content properties in CSS.</p>
<p>These properties are used to align and position elements
within a flex container.</p>
</div>
</body>
</html>
OUTPUT
BOOTSTRAP
ASSIGNMENT USING CONTAINER,
CONTAINER FLUID,COL-MD
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1">
<title>Hello, world!</title>
</head>
<body>
<div class="container" style="border:1px solid red">
<div class="row">
<div class="col-md-4" style="background-color: red; font-size: xx-
large;">first</div>
<div class="col-md-4" style="background-color: violet;font-
size: xx-large;">second</div>
<div class="col-md-4" style="background-color: tomato;font-
size: xx-large;">third</div>
</div>
</div>
<div class="container-fluid" style="border:1px solid red">
hello
</div>
QUERIES IDE(SQL) :
Creating database
Creating Table
Adding column to the table
Inserting values
Insertion into Table
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Document</title>
</head>
<body>
<table>
<tr>
<th>Username</th>
<td>
<input type="text" id="t1">
</td>
</tr>
<tr>
<th>password</th>
<td>
<input type="password" id="t2">
</td>
</tr>
<tr>
<td>
<input type="button" value="Login"
onclick="user_input()">
</td>
</tr>
</table>
<script>
function user_input() {
user = document.getElementById("t1").value
pass = document.getElementById("t2").value
if (user == "jmit" && pass == "college") {
window.location.href = 'welcome.html'
}
else {
alert("Username : " + user + " " + "Password : " + pass)
alert("invalid username and password")
}
}
</script>
</body>
</html>
OUTPUT
REACT
React
Npx Create-React-App :
React Environment :