HTML Basics - Div Tag: Hints
HTML Basics - Div Tag: Hints
Design an HTML page that will show the variation between each paragraph using the div
element as shown in the screenshot.
Hints :
Tag <div> :
The HTML <div> tag is used for defining a section of your document. With
the div tag, you can group large sections of HTML elements together and
format them with CSS. By default, browsers always place a line break
before and after the <div> element. However, this can be changed with
CSS.
Syntax :
<div> XXX </div>
Sample Screenshot :
Constraints :
Note :
Content :
Template Code:
PROGRAM
<!DOCTYPE html>
<html>
<body>
<div id="firstDiv">
Eventsforce helps you manage events more effectively by simplifying your everyday tasks and
processes.
It can deliver all the functionality you require for any type of event regardless of size or complexity.
More importantly, Eventsforce solutions can help you save time, cut costs and make better use of
your event data.
</div>
<div id="secondDiv">
We believe that technology alone is not enough to deliver sustainable results for your events and
we are committed to offering more.
From event planning and account management to support services and software development the
collective experience of our staff helps us bring a collaborative approach to customers,
</div>
<div id="thirdDiv">Eventsforce is the preferred technology partner for events professionals working in
a broad range of industries from associations to corporations,
We have considerable experience and history of supporting organisations across all these industries
and take pride in understanding what matters
</div>
<br>
</body>
</html>
………………………………………………………………………………………………………………………………………………………………
Sample Screenshot :
Constraints :
Note :
Content :
Eventsforce helps you manage events more effectively by simplifying your everyday tasks
and processes. It can deliver all the functionality you require for any type of event –
regardless of size or complexity. More importantly, Eventsforce solutions can help you save
time, cut costs and make better use of your event data.
Template Code :
PROGRAM
Sample Screenshot :
Constraints :
Note :
Content :
Eventsforce helps you manage events more effectively by simplifying your everyday tasks
and processes. It can deliver all the functionality you require for any type of event –
regardless of size or complexity. More importantly, Eventsforce solutions can help you save
time, cut costs and make better use of your event data.
Template Code :
PROGRAM
<!DOCTYPE html>
<html>
</p>
</html>
………………………………………………………………………………………………………………………………………………………………….
Design an HTML page using a table with border-collapse as shown in the screenshot.
Syntax :
border-collapse: separate|collapse|initial|inherit;
Sample Screenshot :
Constraints :
The table doesn't contain border color/style. The table will look as follows, after using
the border-collapse property
Note :
Content :
Duratio
Name Venue
n
Corporate Events ABC Hall 2 hrs
Wedding Planning Country Club 3 hrs
Product Launches Echo Venue 2 hrs
Seminor on Cloud XYZ Hall 4 hrs
Computing
Heavenly Fashion Spark Venue 2 hrs
Gala Dinners National Resort 2 hrs
International
Award Ceremony 3 hrs
venue
Template Code :
PROGRAM
<!DOCTYPE html>
<html>
<body>
<table style="border-collapse:collapse">
<tr>
<th>Name</th>
<th>Venue</th>
<th>Duration</th>
</tr>
<tr>
<td>Corporate Events</td>
<td>ABC Hall</td>
<td>2 hrs</td>
</tr>
<tr>
<td>Wedding Planning</td>
<td>Country Club</td>
<td>3 hrs</td>
</tr>
<tr>
<td>Product Launches</td>
<td>Echo Venue</td>
<td> 2 hrs</td>
</tr>
<tr>
<td>XYZ Hall</td>
<td> 4 hrs</td>
</tr>
<tr>
<td>Heavenly Fashion</td>
<td>Spark Venue</td>
<td> 2 hrs</td>
</tr>
<tr>
<td>Gala Dinners</td>
<td>National Resort</td>
<td> 2 hrs</td>
</tr>
<tr>
<td>Award Ceremony</td>
<td>International venue</td>
<td> 3 hrs</td>
</tr>
</table>
</body>
</html>
…………………………………………………………………………………………………………………………………………………………………
Tables - colspan
Design an HTML page for the schedule list using colspan attribute in the table as shown in
the table.
Sample Screenshot :
Constraints :
Content :
Note :
Template Code :
PROGRAM
<html>
<head>
<title>Tables</title>
</head>
<h2>Event Schedule </h2>
<body>
<table border ="5">
<tr>
<th>Name</th>
<th>Venue</th>
<th>Start Time</th>
<th>End Time</th>
</tr>
<tr>
<td>Corporate Events</td>
<td>ABC Hall, 3rd Floor</td>
<td colspan ="2">Yet to start</td>
</tr>
<tr>
<td>Wedding Planning</td>
<td>Country Club</td>
<td>1.1.2019 7.00AM</td>
<td>1.1.2019 9.00AM</td>
</tr>
<tr>
<td>Product Launches</td>
<td>City Tower, Hall No 2</td>
<td colspan="2">Yet to start</td>
</tr>
<tr>
<td>Seminar on Cloud Computing</td>
<td>XYZ Hall</td>
<td colspan="2">Yet to start</td>
</tr>
<tr>
<td>Heavenly Fashion</td>
<td>Spark Venue</td>
<td>21.3.2018 5.00PM</td>
<td>21.3.2018 8.00PM</td>
</tr>
<tr>
<td>Gala Dinners</td>
<td>National Resort</td>
<td>12.1.2018 7.00 PM</td>
<td>12.1.2018 10.00 PM</td>
</tr>
<tr>
<td>Award Ceremony</td>
<td>Echo Venue</td>
<td colspan="2">Yet to start</td>
</tr>
<tr>
<td>Asian Party</td>
<td>RK Restaurant</td>
<td colspan="2">Yet to start</td>
</tr>
<tr>
<td>Dinner Tonight</td>
<td>Tower, Hall No 4</td>
<td colspan="2">Yet to start</td>
</tr>
<tr>
<td>Incentive Party</td>
<td>Five Star Hall</td>
<td colspan="2">Yet to start</td>
</tr>
</table>
</body>
</html>
…………………………………………………………………………………………………………………………………………………………
Sample Screenshot :
Constraints :
Onclicking each image, the corresponding HTML page will appear.
Note :
Template Code :
PROGRAM
<!DOCTYPE html>
<html>
<h3>wedding Invitation</h3>
<h3>Corporate Events</h3>
<h3>Social Gatherings</h3>
</body>
</html>
…………………………………………………………………………………………………………………………………………………………………
Sample Screenshot :
Constraints :
On clicking the icon, it should open the respective links which are given in the content.
Content :
Use the template images to display the FB, Twitter, LinkedIn icons in the image tag. FB,
Twitter, LinkedIn icons have to go below link for respective pages.
For FB - https://www.facebook.com/
For Twitter - https://twitter.com/
For linkedIn - https://www.linkedin.com/
Set the width and height for images as 25 px.
Constraints :
Note :
Template Code :
</html>
………………………………………………………………………………………………………………………………………………………
Sample Screenshot :
Constraints :
Additional Constraints :
Template Code :
PROGRAM
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
h1{
color:#F835C0;
h2{
color:#ff0000;
h3{
color:#15D365;
h5{
color: #9F41F5;
</style>
</head>
<hr>
</p>
<hr>
<hr>
All our services are reliable and offered keeping the exact
<hr>
<h3 id='h3Tag'>Address</h3>
<p>14/509A,Sterlin Street,Nungambakkam
Chennai - 600034.</p>
<h3 id='h3Tag'>Mobile</h3>
<p>Manager-9596645125</p>
<h3 id='h3Tag'>Landline</h3>
<p>0422-2727272</p>
<h3 id='h3Tag'>EMail</h3>
<p>pinkfragevent123@gmail.com pinkfragOfficial@gmail.com
</p>
</body>
</html>
……………………………………………………………………………………………………………………………………………………………….
Sample Screenshot :
Constraints :
Additional Constraints :
The following text-transform properties must be applied for the <div> elements respectively
Apply text-transform - none for div with class 'wedding'
Apply text-transform - uppercase for div with class 'conference'
Apply text-transform - lowercase for div with class 'birthdayParty'
Apply text-transform - capitalize for div with class 'liveShows'
Apply text-transform - inherit for div with class 'photography'
Note :
Content :
PROGRAM
<!DOCTYPE HTML>
<HTML>
DIV.CONFERENCE {
BORDER: BLACK;
BACKGROUND-COLOR: BLUE;
TEXT-TRANSFORM: UPPERCASE;
}
DIV.BIRTHDAYPARTY {
BORDER: BLACK;
BACKGROUND-COLOR: SEA GREEN;
TEXT-TRANSFORM: LOWERCASE;
}
DIV.LIVESHOWS {
BORDER: BLACK;
BACKGROUND-COLOR: PEACH;
TEXT-TRANSFORM: CAPITALIZE;
}
DIV.PHOTOGRAPHY {
BORDER: BLACK;
BACKGROUND-COLOR: YELLOW;
TEXT-TRANSFORM: INHERIT;
}
</STYLE>
</HEAD>
<BODY>
<H1>PINK FRAG EVENT ORGANIZER</H1>
<DIV CLASS="WEDDING">
<H3>WEDDING EVENT</H3>
OUR PASSIONATE TEAM OF WEDDING EXPERTS ARE METICULOUS IN
ENSURING THAT
EVERY ASPECT OF THE DAY IS SEAMLESSLY STYLISH, FROM OUR
DELECTABLE MENUS
TO GLORIOUS FLOWERS, VENUE FINDING AND DRESSING, PRODUCTION AND
ENTERTAINMENT.
</DIV>
<DIV CLASS="CONFERENCE">
<H3>CONFERENCES</H3>
OUR CONFERENCES ARE DESIGNED TO MEET THE EVER-CHANGING NEEDS
OF THE
CUSTOMER, WITH THE GOAL OF BRINGING INDUSTRY PROFESSIONALS
TOGETHER TO
SHARE THEIR EXPERTISE, EXCHANGE IDEAS AND FACILITATE BUSINESS.
</DIV>
<DIV CLASS="BIRTHDAYPARTY">
<H3>BIRTHDAY PARTY</H3>
PLANNING A BIRTHDAY PARTY? WHETHER A WILD PARTY WITH FRIENDS OR A
CRAZY
PARTY FOR THE KIDS,MOST IMPORTANTLY, PURPLE7 HELPS YOU GATHER
THAT EVER
IMPORTANT CATERING SERVICES WILL BE ARRANGED AS PER YOUR
REQUIREMENTS AND
BUDGET.ENGAGE YOUR GUESTS IN VARIETY OF EVENTS.HOST THE PARTY
WITH A
LIVELY ANCHOR.
</DIV>
<DIV CLASS="LIVESHOWS">
<H3>LIVE SHOWS</H3>
IF YOU ARE LOOKING FOR ENTERTAINMENT ANY TIME OF THE DAY OR NIGHT,
THEN
YOU ARE AT THE RIGHT PLACE. WE BRING YOU THE LIST OF ALL THE HOT
AND
HAPPENING ENTERTAINING EVENTS/ACTIVITIES GOING ON OR LINED UP IN
COIMBATORE. YOU JUST NEED TO TELL US YOUR MOOD AND TASTE IN
ENTERTAINMENT, REST WE ENSURE YOU GET THE BEST TIME OF YOUR LIFE.
</DIV>
<DIV CLASS="PHOTOGRAPHY">
<H3>PHOTOGRAPHY</H3>
WE CAPTURE YOUR BEST MOMENTS IN LIFE AND MAKE IT AN EVERLASTING
TREASURE
TO PRESERVE. WE ARE WELL EXPERIENCED IN EVENTS COVERAGE,
WEDDING
PHOTOGRAPHY, CANDID PHOTOGRAPHY, MODELLING PHOTOGRAPHY AND
INDUSTRIAL
PHOTOGRAPHY. MAKE USE OF OUR PHOTOGRAPHY SERVICES FOR A
LASTING IMPRESSION.
</DIV>
</BODY>
</HTML>
‘’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’………………………………………………………………………………………………………
Sample Screenshot :
Constraints :
Note :
Content :
h1 - Wedding Album
img src attribute ="wedding.jpg"
Template Code :
PROGRAM
<!DOCTYPE html>
<html>
</html>
………………………………………………………………………………………………………………………………………
…………………..
<html>
<head>
<style>
.register{
Border:1px solid black;
}
#player{
Border:1px solid black;
Padding-right:40px;
Margin-bottom:5px;
}
#medical{
Border:1px solid black;
Margin-right:5px;
}
</style>
</head>
<body>
<center>
<table id=”register”>
<tr>
<td><h2>Player Registration Form</h2></td>
</tr>
</table>
</center>
<div class=”register”>
<div class=”player”>
<center>
<form>
<table id=”player”>
<th>Player Information</th>
<tr>
<td>Personal Name:</td>
<td><input type=”text” id=”name”></td>
<td>Country:</td>
<td><select id=”country”> <option>India</option>
<option>Japan</option></select></td>
</tr>
<tr>
<td>Birthdate(mm/xx/yyyy):</td>
<td><input type=”text” id=”dob”></td>
<td>Email</td>
<td><input type=”text” id=”email”></td>
</tr>
<tr>
<td>Address:</td>
<td><input type=”text” id=”address”></td>
</tr>
<tr>
<td>Gender:</td>
<td>
<input type=”radio” value=”Male” id=”gender”>
<label>Male</label>
<br>
<input type=”radio” value=”Female” id=”gender”>
<label>Female</label>
</td>
</tr>
<tr>
<td>Phone Number</td>
<td><input type=”text” id=”number”></td>
</tr>
</table>
</form>
</center>
</div>
</div>
<div class=”medical”>
<center>
<form>
<table id=”medical”>
<th>Medical Information</th>
<tr>
<td>Emergency Contact:</td>
<td><input type=”text” id=”emContact”></td>
<td>Guardian Contact:</td>
<td><input type=”text” type = “text”id=”contact”> </td>
</tr>
<tr>
<td>Insurance Carrier:</td>
<td><input type=”text” id=”insurance”></td>
<td>Policy:</td>
<td><input type=”text” id=”policy”></td>
</tr>
</table>
</body>
</html>