Web Technology Lab 1
Web Technology Lab 1
In this tutorial we are going to design these three section with the help of their
subsections. Subsections are created as per the website content.
Header
Top header
Logo
Main menu
Main Body
Slider section
marquee, about us
Gallery
Footer
Quick link
Contact information
Copyright information
Firstly, Create the folder on dekstop, my folder name is college website. Inside
folder college website, create two sub folder : - 1) css and 2) images
Inside college website folder I am creating HTML file file name - index.html
Top Header section HTML code. Copy this code and paste in
index.html file
index.html
<!------ Header HTML Starts ------->
<div class="header">
<div class="container">
<b> NEWS : </b>
<marquee> My college: Intelligence plus curiosity-that is the root of true education. </marquee>
</div>
</div>
<!------ Header HTML Ends ------->
Top Header section CSS code. Copy this code and paste in
style.css file
style.css
/********* Header HTML CSS Starts **********/
.header {
background: #46b7c1;
padding: 6px;
}
.header b {
background: #fff;
color: red;
padding:10px;
font-size: 20px;
}
.header marquee {
font-size:20px;
color: #ffffff;
width: 80%;
}
/********* Header HTML CSS End **********/
Output Of Top Header
Please copy and paste the below code to design Logo and Main Menu section
Top Logo And Main Menu Section HTML code. Copy this code
and paste in index.html file
index.html
<!------ Design Logo And Main Menu Section HTML Startss ------->
<div class="container">
<!-------------------------LOGO SECTION--------------------------->
<img src="images/logo.png" class="logo">
<!-------------------------MENU SECTION-------------------------->
<nav>
<a href="#">Home</a>
<a href="#">About us</a>
<a href="#">Events</a>
<a href="#">Gallery</a>
<a href="#">Notice Board</a>
<a href="#">Blogs</a>
<a href="#">Contact us</a>
</nav>
</div>
<!------ Design Logo And Main Menu Section HTML End ------->
Top Logo And Main Menu Section CSS code. Copy this code
and paste in style.css file
style.css
/********* Design Logo and Menu section CSS Starts **********/
.logo {
height:60px;
}
/*Menu Section Menu Section*/
nav {
float: right;
padding:25px 0px;
}
nav a {
color: black;
text-decoration: none;
font-size:18px;
padding:2px 10px;
font-weight:500;
}
/********* Design Logo and Menu section CSS End **********/
Please copy and paste the below code to design Slider section
Slider Section HTML code. Copy this code and paste in
index.html file
index.html
<!------ Slider HTML Starts ------->
<div class="slider">
<img src="images/slider.jpg">
</div>
<!------ Slider HTML End ------->
Slider Section CSS code. Copy this code and paste in style.css
file
style.css
/********* Slider CSS Starts **********/
.slider img {
width: 100%;
}
/********* Slider CSS End **********/
Please copy and paste the below code to design Campus, events and notice board
section
/********* Campus, Events and Notice Board section CSS End **********/
Please copy and paste the below code to design About Us section
Please copy and paste the below code to design School Info, Award and Certificate
section
Please copy and paste the below code to design Testimonial section
Please copy and paste the below code to design Gallery section
Please copy and paste the below code to design Placement section
Please copy and paste the below code to design footer section