Sop1 1
Sop1 1
CSS :CSS stands for cascading style sheet.CSS describes how HTML elements
are to be displayed on screen, paper, or in other media. It can control the
layout of multiple web pages all at once
a selector
a declaration block
H1{color:yellow;font-size:18 px}
Code :
index.html
<html>
<head>
<title> Guru Gobind Singh Public School and Junior College
</title>
<meta name="author" content="Guru Gobind Singh Jr. College">
<meta name="description" content="School, Junior College
and Gradiation College">
<meta name="keyword" content="College,Engineering,Junior
College,school,Polytechnic">
<link rel="stylesheet" href="college.css">
</head>
<body>
<h1>Guru Gobind Singh Public School and Junior College </h1>
<p>Guru Gobind Singh Public School and Junior College
is located at Indira nagar. Our college
has separate classrooms for every class and there are practical
labs for each subject. </p>
<label>Labs Available for Subjects</label>
<b>Physics, Chemistry, Biology, IT and
Geography</b><br/></br>
<i>Students can visit lab for
<u>extra studies</u></i><br/></br>
Separate teachers are available for every class
9<sup>th</sup>,10<sup>th</sup>,11<sup>th</sup> and
12<sup>th</sup>.<br/></br>
<img src="college.jpg" height="200px" width="200px" alt="Guru
gobind singh college"><br/></br>
<a href="page2.html">Send Us Feedback</a>
</body>
</html>
Page2.html :
<html>
<head>
<title>Feedback : K.K.Wagh</title>
<meta name="author" content="K.K.Wagh College">
<meta name="description" content="Feedback
Page allows user to contact college and get information">
<meta name="keyword"
content="Feedback,College,Engineering,JuniorCollege,school,Universal
school">
<link rel="stylesheet" href="college.css">
</head>
<body align="center">
<h2>Send us Feedback</h2>
<form name="feedform" method="post">
<label>Enter Name:</label><input type="text"
name="username" required><br/><br/>
<label>You are : <input type="radio"
name="usertype" value="company">Company
<input type="radio" name="usertype" value="person">Person <br/><br/>
<label>Enter Email:</label><input type="email"
name="mailid" required pattern=
"[a-zA-Z]{1}[a-zA-Z0-9]*@[a-zA-Z]{5}.[a-zA-Z]{3}"><br/><br/>
<textarea name="feedback"
placeholder="Enter Feedback" rows="10"
cols="50"></textarea><br/><br/>
<input type="submit" name="submit"
value="Submit">
</form>
</body>
</html>
College.css
body { background-color:pink; color:green; }
h1,h2 { text-align:center; }