<!DOCTYPE html>
<html lang="en">
<head>
<link href="css/style.css" rel="stylesheet">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>My First Bootstrap Application</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body>
<h3 class="head">This page contains a horizontal form.
</h3>
<div class="container">
<form class="form-horizontal">
<div class="form-group">
<label for="name" class="col-xs-1">Name</label>
<div class="col-xs-10">
<input type="text" class="form-control" id="name" placeholder="Enter your Name"/>
</div></div>
<div class="form-group">
<label for="age" class="col-xs-1">Age</label>
<div class="col-xs-10">
<input type="text" class="form-control" id="age" placeholder="Enter your Age"/>
</div></div>
<div class="form-group">
<label for="no" class="col-xs-1">Number</label>
<div class="col-xs-10">
<input type="text" class="form-control" id="no" placeholder="Enter your Mobile Number"/>
</div></div>
<div class="form-group">
<label for="gr" class="col-xs-1">Gender</label>
<div class="col-xs-10">
<input type="text" class="form-control" id="gr" placeholder="Enter your Gender"/>
</div></div>
<div class="form-group">
<label for="email" class="col-xs-1">E-Mail</label>
<div class="col-xs-10">
<input type="mail" class="form-control" id="mail" placeholder="Enter your E-Mail Id"/>
</div></div>
<div class="form-group">
<label for="intro" class="col-xs-1">Description</label>
<div class="col-xs-10">
<textarea class="form-control" id="intro" placeholder="Enter something about yourself"></textarea>
</div></div>
<div class="col-xs-offset-1"><button type="submit" class="btn btn-info">Submit</button>
<button type="reset" class="btn btn-info">Reset</button></div>
</form>
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
style.css
.col1{
background: red;
}
.col2{
background: green;
}
.col3{
background: yellow;
}
.col4{
background: blue;
}
.head{
background: yellow;
}
<html lang="en">
<head>
<link href="css/style.css" rel="stylesheet">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>My First Bootstrap Application</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body>
<h3 class="head">This page contains a horizontal form.
</h3>
<div class="container">
<form class="form-horizontal">
<div class="form-group">
<label for="name" class="col-xs-1">Name</label>
<div class="col-xs-10">
<input type="text" class="form-control" id="name" placeholder="Enter your Name"/>
</div></div>
<div class="form-group">
<label for="age" class="col-xs-1">Age</label>
<div class="col-xs-10">
<input type="text" class="form-control" id="age" placeholder="Enter your Age"/>
</div></div>
<div class="form-group">
<label for="no" class="col-xs-1">Number</label>
<div class="col-xs-10">
<input type="text" class="form-control" id="no" placeholder="Enter your Mobile Number"/>
</div></div>
<div class="form-group">
<label for="gr" class="col-xs-1">Gender</label>
<div class="col-xs-10">
<input type="text" class="form-control" id="gr" placeholder="Enter your Gender"/>
</div></div>
<div class="form-group">
<label for="email" class="col-xs-1">E-Mail</label>
<div class="col-xs-10">
<input type="mail" class="form-control" id="mail" placeholder="Enter your E-Mail Id"/>
</div></div>
<div class="form-group">
<label for="intro" class="col-xs-1">Description</label>
<div class="col-xs-10">
<textarea class="form-control" id="intro" placeholder="Enter something about yourself"></textarea>
</div></div>
<div class="col-xs-offset-1"><button type="submit" class="btn btn-info">Submit</button>
<button type="reset" class="btn btn-info">Reset</button></div>
</form>
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
style.css
.col1{
background: red;
}
.col2{
background: green;
}
.col3{
background: yellow;
}
.col4{
background: blue;
}
.head{
background: yellow;
}
0 comments:
Post a Comment