G1Project
G1Project
STRUCTURE
OF AN
EDUHUB
PRODUCT PAGE
CONTENTS
2
INTRODUCTION TO HTML5 FRAMEWORK
• HTML5 Declaration
: This tells the browser we’re using HTML5. It’s like a signpost for
our document.
• HTML Element
: The container for the entire webpage
• Head Element
: Contains Important Information like the title and styles.
• Body Element
: The heart where all the visible content lives
HEAD SECTION AND
ITS COMPONENT
The head section is like the
Brain of our webpage. It
contains important elements
such as the title and styles.
HEAD INPUT CODES:
<head>
<title>Maths Book</title>
<link rel="stylesheet" href=“style.css"> <!--
External CSS link -->
</head>
5
EXTERNAL CSS LINK
(STYLE SHEET)
7
The Body section is the heart of the webpage where all visible
BODY SECTIONcontent is placed
CSS:--
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
8
PRODUCT SHOWCASE
SECTION:
INPUT CODE:-- <div class="product-showcase">
<h1>EduHub Maths Book</h1> <!-- Product Name Heading -->
CSS:-- .product-showcase {
width: 80%;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
h1, h2 {
color: #333; OUTPUT:--
}
h2 {
9 margin-top: 20px;
}
IMAGE CAROUSEL SECTION:
INPUT <!-- Image Carousel Section -->
CODE:-- <div class="carousel">
<input type="radio" name="carousel" id="img1" checked>
<input type="radio" name="carousel" id="img2">
<input type="radio" name="carousel" id="img3">
<div class="carousel-images">
<div class="carousel-image" id="image1">
<img src="C:\Users\Use\Desktop\Practical file\img1.jpg"
alt="Product Image 1">
</div>
<div class="carousel-image" id="image2">
<img src="C:\Users\Use\Desktop\Practical file\img2.jpg"
alt="Product Image 2">
</div>
<div class="carousel-image" id="image3">
<img src="C:\Users\Use\Desktop\Practical file\img3.jpg"
alt="Product Image 3">
</div>
10
</div>
IMAGE CAROUSEL SECTION:
CSS:-- img { .carousel-image {
display: none;
width: 100%;
height:400px; height: 100%;
width:500px; object-fit: cover;
}
.carousel {
position: #img1:checked ~ .carousel-images #image1,
relative; #img2:checked ~ .carousel-images #image2,
#img3:checked ~ .carousel-images #image3 {
text-align: left;
display: block;
margin: 20px }
30px;
}
.carousel input {
display: none;
}
.carousel-images
{
position:
relative;
width: 100%;
height: 400px;
11 }
IMAGE 1
12
IMAGE 2
13
IMAGE 3
14
CAROUSEL CONTROLS
INPUT <div class="carousel-controls">
CODE:-- <label for="img1" class="carousel-control
prev">❮</label>
<label for="img2" class="carousel-control">❯</label>
<label for="img3" class="carousel-control">❯</label>
</div>
</div>
CSS:-- .carousel-controls {
position: absolute;
top: 50%;
width: 100%;
display: flex;
justify-content: space-
between;
transform: translateY(-50%);
}
.carousel-control {
background-color: rgba(0, 0,
0, 0.5);
color: #fff;
15 padding: 10px;
cursor: pointer;
Carousel
❮ controls
❯
16
<DIV> TAGS
The <div> tag defines a division or a section in an HTML document. The <div> tag is used
as a container for HTML elements
<LABEL> TAGS
The <label> element is used to associate a text label with a form <input> field. The label
is used to tell users the value that should be entered in the associated input field.
17
<A> ANCHOR TAG
User clicks on the button, the document which is linked, gets opened. <A> tag
which stands for ‘Anchor’ is used to create link in a document. The HREF is the
attributes of the <A> tag that takes the URL or the path of a web page to be
opened when user clicks on the link.
Usage In The Project:--
20
Final
Output:-
21
THANK YOU
Presented By
Sahitya Bhushan
Class- X – A
Group 1 Project