Class 10 Chapter 5 and 6
Class 10 Chapter 5 and 6
ny
pa
om
C
&
nd
ha
C
S.
CHAPTER 5: HTML-DHTML AND CSS
Exercises
OBJECTIVE TYPE QUESTIONS
A. MULTIPLE CHOICE QUESTIONS (MCQs)
1. is a style sheet language used for describing the look and
formatting of a document written in a markup language.
a) HTML
b) Java Script
c) CSS
d) DHTML
Ans: c) CSS
2. DHTML is a combination of and .
a) DOM and Static HTML
b) HTML and JavaScript
c) XML and HTML
d) None of the above
Ans: b) HTML and JavaScript
3. Which type of pages gets created from DHTML?
a) Static
b) Dynamic
c) Hyper
d) Global
Ans: b) Dynamic
4. Which of the following HTML Video format is not supported in IE?
a) WebM
b) MP4
c) Ogg
d) All of the above
Ans: c) Ogg
5. Which Boolean attribute specifies that the video will be loaded and repeats the media
(audio/video) file from the beginning when it reaches to end?
a) Autoplay
b) Autobuffer
c) Controls
d) Loop
Ans: d) Loop
6. Which property in CSS wraps block of text and other inline elements around an image?
a) Float
b) Wrap
c) Clear
d) Align
Ans: a) Float
7. Which property in CSS can declare font-weight, font-face & font-size by using only one CSS
property?
a) All Font
b) Font All
c) All
d) Font
Ans: d) Font
8. The external style sheet is linked into the head section of an HTML file using by which tag?
a) <Font>
b) <Title>
c) <Style>
d) <A>
Ans: c) <Style
9. Which css property you will use if you want to add some free space between a border and its
ny
content?
a) Padding
pa
b) Spacing
c) Margin
d) Border
om
Ans: a) Padding
10. Which of the following defines a measurement in points?
a) in
C
b) em
c) pt
&
d) pc
Ans: c) pt
nd
1. Font‐family style differentiates between Serif, Sans Serif and Monospace font faces.
5. DHTML use combination of technologies such as HTML, CSS and Java Script to create interactive
webpages.
6. Cascading Style Sheets (CSS) is a simple style sheet language used to define the look of a
document written in a markup language.
7. CSS is very limited in Browser compatibility as it can display content differently in different
browser.
8. There are three ways to apply CSS to an HTML document. They are Inline, Internal and External
Styles.
9. The outline properties are not supported by IE6 and Netscape 7.
10. The shorthand property for fonts is Font.
THEORETICAL QUESTIONS
A. SHORT ANSWER TYPE QUESTIONS
1. Write the property for the following:
Ans:
a) To add a red‐dotted border around an image: Border-Style.
b) That describes how bold or “heavy” a font should be presented: Font-Weight.
c) To repeat the image both horizontally and vertically to cover the entire screen: Background
Repeat.
d) Defines the background color of browser window: Background-Color.
e) Property that creates a small‐caps effect: Font-Variant.
ny
2. List the advantages of using CSS.
Ans:
• CSS file saves lots of time and work.
pa
• CSS files are easier to maintain as it controls presentation of many documents from one
single style sheet.
om
• Separate file for style (CSS) and structure (HTML) that makes modification easier as it also
helps to reduce file sizes which helps in faster downloading.
3. List the limitations of CSS.
C
different browsers.
• CSS files has no built‐in security as it is an open text based system, any person having
nd
ny
Font family includes Arial, Times New Roman, Generic family includes five basic types:
Helvetica or Verdana. Cursive, Fantasy, Serif, Sans‐Serif and
Monospace.
pa
Mostly font family names are in the Mostly generic fonts are mentioned at the
beginning of the list. end of list.
om
5. DHTML is a combination of which technologies? Name them.
C
Ans: css
nd
10. How can you add more than one declaration in CSS?
Ans: It can be achieved by using a semicolon.
ny
}
h1 {
color: blue
pa
}
p{
color: pink.
om
margin‐left: 50 px.
}
</style>
C
</head>
<body>
&
<h1>This is a heading</h1>
<p>This is a paragraph. </p>
</body>
nd
</html>
ha
large).
• Font‐Weight: Used to specify how bold or “heavy” a font should be presented (bold, bolder,
lighter).
• Font‐Variant: Used to specify font as normal (Font Variant in normal) or in small‐caps (Font
Variant in small caps).
ny
H1 {letter‐spacing: 9 em;}
pa
6. What is the CSS box model and what are its elements?
Ans: The “CSS box model” is a set of rules that defines the layout and design of every element (tag)
on a webpage. In Box model, every element in a page is considered as a rectangular box, they can be
om
categorized into two:
• Block‐level elements (such as <h1>, <p>, <form>)
• Inline elements (such as <B>, <a>, <img>)
C
• Padding – The free space area created between the content and the border.
• Border – The free space area between the box’s padding and margin.
nd
• Margin – The margin CSS property specifies space around the HTML elements. It is
transparent.
ha
C
ny
</html>
pa
P {font-family: arial, comic sans-serif, “Times New Roman”;}
Explain font-family.
Ans: Font‐family prioritize the font to be used in h1 tag. First it will look for arial tag, if it is not
om
available then the text in h1 will be displayed in comic sans‐serif and if comic‐sans serif font is also
not available then it will display the text in h1 in Times new roman font.
C
3. Write Code to
a) Make all paragraph elements to be displayed in 'BLUE' color?
&
ny
a) Piracy
b) Ethics
pa
c) Plagiarism
d) All of the above
Ans: c) Plagiarism
om
3. Full form of SSL is
a) Simple Socket Layer
b) Secure Socket Layer
C
c) Freeware
d) Cookies
C
Ans: d) Cookies
5. Program where source code is openly available to use, modification and redistribution without
S.
THEORETICAL QUESTIONS
A. SHORT ANSWER QUESTIONS
1. Write three points in for each of the following categories.
Ans:
Cyber ethics is to act and Save from internet threats. Keep your applications and
ny
behave well on the net. Think website updated.
before you speak on net.
pa
No plagiarism. Save digital property. Use copyright, patent,
trademarks, trade secret,
om
various licenses to protect
from data theft/plagiarism.
Verify the e-mail ID, IP
C
Ans: Digital divide restrains the freedom of access to information. Digital divide refers to gaps or
the difference between groups in their ability to access ICT (Information and Communication
Technology). The digital divide can be based on various factors, i.e., financial, gender-based,
C
location (urban and rural), literacy, etc. Digital divide is not healthy for any society. Digital divide
limits the ICT use within the community which leads to unemployment, slows down development
S.
of the country, raise socio-economic issues, etc. Each nation should avoid digital divide. To bridge
the digital divide, following measures can be taken:
a) ICT tools should be promoted.
b) Cooperation between governments, private sectors and non-governmental organizations
needs to be encouraged.
c) Education should be provided to all.
d) Revise government policies and support to get maximum benefits of ICT.
3. What are intellectual property rights?
Ans: Intellectual property (IP) is a collection of expressions, literary and artistic works. This tangible
property can be promoted and protected through IPR (Intellectual Property Rights). Intellectual
property rights can help you to stop people from stealing or copying your original work in the form
of inventions, designs, product or company names, songs, books, etc.
ny
5. Define the following terms:
a) Plagiarism b) Patent c) Digital property rights
pa
Ans:
a) Plagiarism: It is copying of another person's ideas and other works while pretending that
om
they are one's own.
b) Patent: This is an intellectual property right for a fixed time-period, which gives an inventor
the exclusive right to exclude others from making, using or selling his/her invention.
C
c) Digital property rights: It refers to rights that grant access and control of digital assets or
information such as blogs, website images, video, eBooks or presentations created using
&
Ans:
Freeware refers to software that anyone can Shareware gives users a chance to try the
download from the Internet and use for free. software before buying it.
C
Freeware is not copyrighted, and the software Shareware is copyrighted software, initially
S.
is freely available for use (without any license given away on a free basis and a license fee is
fee). Freeware allows redistribution of software payable only after the trial period (such as 30
copies but does not allow to modify the source days trial) or the user have to uninstall it. In
code. Microsoft Internet Explorer (Browser), shareware, software is shared on an honorary
Adobe Reader, Skype are examples of basis for some time. Source code and its
Freeware. modification are not allowed in shareware
rights. Antivirus software and Netflix Trial
Versions are examples of Shareware.
7. What do you mean by e-commerce fraud?
Ans: E-commerce fraud is any type of fraud that occurs on an e-commerce platform. Using a stolen
or fake credit card, using a false identity and affiliate fraud advertising are all forms of e-commerce
fraud.
8. Write two examples for each proprietary software and OSS.
Ans: Proprietary software: Microsoft Office, Adobe Photoshop
OSS: Linux, GIMP, Inkscape
9. Mention the purpose of cookies on internet.
Ans: Cookies allow websites to store information about a user on the user’s computer while the
user is browsing the website.
10. Differentiate between HTTP and HTTPS.
Ans: In HTTPS, ‘S’ signifies security. Hyper Text Transfer Protocol (HTTP) is to provide security for
ny
transmitting data, whereas the website uses Hyper Text Transfer Protocol Secure (HTTPS) to
encrypt the message so that no one in between can read them.
pa
B. LONG ANSWER QUESTIONS
1. What is e-commerce? Mention the advantages and disadvantages of e-commerce.
om
Ans: Electronic commerce is also known as e-commerce. E-commerce is buying and selling of goods
or services using the internet. Mobile devices have increased e-commerce customers. Mobile
applications such as Amazon, eBay, Paytm, Trivago, Uber, Walmart allow users to do smart
C
shopping, book cabs or hotels, do online business, transfer money quickly across the globe, etc.
&
Advantages of e-commerce
• Offers flexibility to the customers: Consumers can avail products round the clock, according
to their comfort, time and location. It saves a lot of time for customers.
nd
• Transit of the purchased goods can easily be tracked (as to when they would reach the
destination). Consumers can register their feedback, rating or complaints directly on the
ha
mobile application or the website. Positive recommendations on the website help increase
sales.
• No geographical limitations: E-commerce provides global access to both the buyer and the
C
supplier. Consumer can order products from anywhere in the world and similarly suppliers
can promote their products worldwide.
S.
• Economy and e-commerce grow simultaneously through online marketing. Customers can
compare various products and services on the net and get them at affordable prices.
• Environment friendly: Transactions done via e-commerce save paper too.
Disadvantages of e-commerce
• Lack of personal touch: To feel the product before buying is difficult online and should buy
simply by looking at the images. Sometimes a customer also needs personal assistance while
choosing the products which is not possible online.
• Data security could be an issue while buying online. Personal data of customers could be
stolen due to negligence in cyber security.
2. What are the advantages and disadvantages of using e-commerce?
Ans:
Advantages of using e-commerce
a) Consumers can avail products round the clock.
b) It saves a lot of time for customers.
c) Transit of the purchased goods can easily be tracked (as to when they would reach the
destination).
d) Consumers can register their feedback, rating or complaints directly on the mobile
application or the website. Positive recommendations on the website help increase sales.
e) No geographical limitations: E-commerce provides global access to both the buyer and the
supplier. Consumer can order products from anywhere in the world and similarly suppliers
can promote their products worldwide.
f) Economy and e-commerce grow simultaneously through online marketing. Customers can
ny
compare various products and services on the net and get them at affordable prices.
g) Environment friendly: Transactions done via e-commerce save paper too.
pa
Disadvantages of using e-commerce
a) Lack of personal touch. To feel the product before buying is difficult online and should buy
om
simply by looking at the images. Sometimes a customer also needs personal assistance while
choosing the products which is not possible online.
b) Data security could be an issue while buying online. Personal data of customers could be
C
Commercial software has limits on its use, modification and on its redistribution. Those
individuals or organizations that hold a license of that software can only copy, distribute and sell.
ha
download, copy to redistribute. SQLite and I2P are examples of public domain software.
• Shareware: Copyrighted software, initially given away on a free basis and a license fee is payable
S.
only after the trial period (such as 30 days trial) or the user have to uninstall it. In shareware,
software is shared on an honorary basis for some time. Source code and its modification are not
allowed in shareware rights. Antivirus software and Netflix Trial Versions are examples of
Shareware.
• Freeware: Not copyrighted and the software is freely available for use (without any license fee).
Freeware allows redistribution of software copies but does not allow to modify the source code.
Microsoft Internet Explorer (browser), Adobe Reader, Skype are examples of Freeware.
4. How can you protect your intellectual property?
Ans: You can protect your intellectual property through the following rights:
Copyrights: It a legal right to protect and reward literary, dramatic, musical and artistic works that
safeguard creators, producers of films and sound recordings from being stolen by others. No one can
use (copy, display, sell, modify or redistribute) without taking permission from the creators or
authors. Copyright law protection exists automatically when you create an original and unique work.
Copyright symbol is ©. The term of copyright depends on the category of the work protected, and
generally it is of 60 years from the date of creation.
Patent: It is a grant awarded by the respective governments for innovators to prevent their invention
from being used, sold or imported by others. The patent owner can decide how the invention can be
utilized by others. The product or process which needs to be patented should be useful, novel, fall
under the category of the invention in an industry. Plant varieties and original design or patterns (in
ny
jewellery or furniture) can also be patented. The term of every patent is for a limited period of time,
generally 20 years from the filing. In India, to get your inventions patented, you can log on to
pa
www.ipindia.nic.in and fill the e-filling patent form.
Trademarks: It is a sign that helps to identify and distinguish the goods of one producer or enterprise
om
from those of its other competitors. It protects your sign/name from being used by others. A
trademark can be a single word, symbol, 3D signs and numerals or combinations of these. Trademarks
help in marketing as well as creating a favourable image of a product in the consumer’s mind. The
C
term of a trademark is initially registered for 10 years (in India) from the filing of an application and
later it can be renewed.
&
Trade Secret: A trade secret consists of any confidential business method, formula or any information
which provides an enterprise some advantage (economical) over its competitors. India has no specific
nd
7. What is privacy?
Ans: Privacy is a fundamental human right that underpins freedom of association, thought and
expression, as well as freedom from discrimination. A privacy policy on an e-commerce site also
makes customers aware of its terms and conditions about the kind of sharing of PI with associating
companies. A privacy policy should mention the details such as:
• Why and what kind of data is needed and how it will be used or shared.
• Clear ownership (individual/team/company) of the privacy policy.
• The policy’s effective date.
• Proper website link where users can review the description, or the changes made.
• Guidelines to register complaints about the product or services.
ny
• Safety measures taken by the seller. The seller should use various safety measures to
safeguard personal information of customers against loss, theft and unauthorized access,
pa
use and modification.
8. Why Freedom of Information is required?
om
Ans: Freedom of Information (FOI) describes the right to receive information and ideas held by the
public authorities. It is a right of the general public to avail information from the government as
well as other public sectors. Freedom of Information Act (FOIA) has been made to ensure that
C
individuals can access records. FOI plays a vital role in a democratic society and increases the
transparency of government sectors.
&
ny
pa
om
C
&
nd
ha
C
S.
Lab Exercises
CHAPTER 9: CREATING WEBPAGES: HTML
Pages 215-216
Do It Yourself
Project 1: Write the HTML code to generate a webpage in the format given below:
ny
pa
om
Consider the following while writing the HTML code:
C
(i) Title of the page should be “Flower – Sometimes known as a Bloom or Blossom”
(ii) Background of page is “pink”, Link color should be “blue”
&
• Morphology as “morph.html”
• Development as “dev.html”
(viii) Bottom message is of size 2 and is mail link to [email protected]
C
Ans:
S.
<head>
<title>Flower – Sometimes known as a Bloom or Blossom</title>
</head>
<body bgcolor = "pink" link = "#2B20B9” vlink ="BLUE">
<h1 align = "center"><font color="MAROON">Flower -Sometimes known as a Bloom or
Blossom </font>
</font><br>
<p>
<hr color="cyan" size=1>
<img src="flower.jpg" width="20%" height-"20%">
<font color="red" size="2">
A flower is a part of a plant. Flowers are also called bloom or blossom of a plant.
The flower grows on a stalk - thin node - which supports it. Flower has petals. Inside the part
of the flower that has petals are the part which produce pollen and seeds. In addition to
facilitating the reproduction of flowering plants, flower have long been admired by humans
to beautify their environment and also as objects of romance, ritual, medicine and as a
source of food.
</font>
<Table border=1 bordercolor="green" align="center">
<caption>Pollination</caption>
<tr>
<td>1</td>
<td>Pollen</td>
ny
</tr>
<tr>
pa
<td>2</td>
<td>Attraction Method</td>
om
</tr>
<tr>
<td>3</td>
C
<td>Pollination Mechanism</td>
</tr>
&
</table>
</center>
d
<p align="left">
n
<ol>
<li><a href="morph.html">Morphology</a></li>
C
<ul type="circle">
<li>Floral Parts</li>
S.
<ul type="square">
<li>Vegetative</li>
<li>Reproductive</li>
</ul> </ul>
<li> <a href="dev.html">Development</a></li>
<ul type="circle">
<li>Flowering Transition</li>
<li>Organ Development</li>
</ul>
</ol>
<hr color="cyan" size=1>
For more details to <A href = "mailto: [email protected]">Mail to us</A>
</Body>
</HTML>
Page 216
Project 2: Write the HTML code to generate a webpage in the format given below:
ny
pa
om
C
(vi) Table should have a border of width 1, border of the table should be “green”.
(vii)Pages linked to:
• Evolution as “evol.html”
C
• References as “ref.html”
(viii) Bottom message is of size 2 and mail is linked to [email protected]
S.
Ans:
<head>
<title>Media in life</title>
</head>
<body bgcolor = "pink" link = "#2B20B9" vlink ="BLUE">
<h1 align = "center"><font color="MAROON">Media (communication)</FONT>
</font><br>
<p>
<hr color="cyan" size=1>
<img src="media.jpg" width="40%" height-"50%">
<br>
</center>
<font color="red" size="2">
<p align="left">
Media are the collective communication outlets or tools that are used to store and deliver
information or data. It is either associated with communication media, or the specialized
communication business such as: print media and the press, photography, advertising,
cinema, broadcasting (Radio and television) and publicising.
</font>
<Table border=1 bordercolor="green" align="center">
<caption>Media</caption>
<tr>
<td>1</td>
<td>Advertising Media</td>
<td>2</td>
<td>Broadcast Media</td>
ny
</tr>
<tr>
pa
<td>3</td>
<td>Digital Media</td>
<td>4</td>
om
<td>Mass Media</td>
</table>
<p align="left">
C
<ol>
<li><a href="morph.html"> Evolution </a></li>
<ul type="circle">
d
<li>Electronic Media</li>
n
<li>social media</li>
ha
</ul>
<li> <a href="dev.html">References</a></li>
<ul type="circle">
C
<li>Communication </li>
<li>Media Psychology </li>
</ul>
S.
</ol>
<hr color="cyan" size=1>
<p align="left">
For more details to <A href = "mailto: [email protected]">Mail to us </A>
</Body>
</HTML>
Page 217
Project 3: Write HTML code to create the given table.
Ans:
<html>
<head>
<title>Room Tariff</title>
</head>
ny
<body>
<Table border =1 bordercolor="black" bgcolor="#eeefef" >
pa
<tr>
<td rowspan=2> </td>
<td colspan =2 align="Center"> <b>AVERAGE</td>
om
<td rowspan=2>Red Eyes</td>
</tr>
<tr>
C
<td> <b>height</td>
<td > <b>weight</td>
</tr>
&
<tr>
<td> <b>Males</td>
d
<td>1.9</td>
n
<td>.003</td>
<td>40%</td>
ha
</tr>
<tr>
C
<td> <b>Females</td>
<td>1.2</td>
<td>.002</td>
S.
<td>43% </td>
</tr>
</table>
</head>
</html>
Page 217
Project 4: Write the HTML code to generate a webpage in the format given below:
ny
pa
Note the following points while generating the webpage:
(i) Link color is black, background color is yellow and visited link color is green
om
(ii) Title of the page is “Indian Elephant”
(iii) Heading of the page is maroon
(iv) Image used is “elephant.png”
C
<HTML>
n
<HEAD><TITLE>“Indian Elephant</TITLE></HEAD>
<BODY bgcolor=yellow LINK="black" VLINK="green">
ha
listed as Endangered by IUCN as the population has declined by at least 50% over the last
three generations, estimated to be 60–75 years. Asian elephants are threatened by habitat
loss, degradation, and fragmentation".
<p>See Also:
<UL>
<LI><A HREF="one.html">Sri Lankan Elephant</A>
<LI><A HREF="two.html">sumatran Elephant</A>
<LI><A HREF="three.html">Borneo Elephant</A>
<LI><A HREF="four.html">African elephant</A>
</UL>
<CENTER>
<TABLE BORDER=2 BORDERCOLOR="blue" width=25% height=175>
<font color ="blue"><CAPTION>Threats to Elephants</CAPTION></font>
<TR><TD>1<TD>Illegal Hunting</TR>
<TR><TD>2<TD>Industrialisation</TR>
<TR><TD>3<TD>Habitat Loss</TR>
<TR><TD>4<TD>Fragmentation</TR>
<TR><TD>5<TD>Disease</TR>
</TABLE><BR>For further enquiries and reservations <A
HREF="mailto:[email protected]">Contact Us</A>
</CENTER></BODY></HTML>
Page 218
Project 5: Write HTML code to create the given table.
ny
Ans:
pa
om
<html>
<head>
<title>Room Tariff</title>
C
</head>
<body>
<Table border =1 bordercolor="orange">
&
<tr bgcolor="#FADBD8">
<td colspan =5 align="Center">Room Tariff</td>
d
</tr>
n
<tr align="Center">
<td rowspan=5>Room Type</td>
ha
<td colspan=2>Deluxe</td>
<td colspan=2>Executive</td>
C
</tr>
<tr align="Center">
<td>AC</td>
S.
<td>Non-AC</td>
<td>AC</td>
<td>Non-AC</td>
</tr>
<tr align="Center">
<td>1500</td>
<td>1000</td>
<td>2500</td>
<td>1500</td>
</tr>
</Table>
Page 218
Project 6: Write the HTML code to generate a webpage in the format given below:
Ans:
<html>
<head>
<title></title>
</head>
<body bgcolor = "#EEF2F0" link = "#2B20B9" vlink ="GREEN">
<h1 align = "center"><font face = "Curlz MT" color = "RED">DANCES IN INDIA</font>
<HR COLOR="GREEN" WIDTH=75%>
<FONT FACE= "Lucida Bright" COLOR="BLUE">
<IMG src = "dance.jpg" height = "100" width ="100" align = "right">
</h1>
<br>There are almost as many well established dance form in India as the number of states.
In fact, some of the states have more than one dance forms that are popular and some
dances span across multiple states and regions. Some of the most popular dances are:
<br>
<br>
<ul>
<li> <A href = "Classical.html">Classical Dance</A></li>
<ol type="A">
<li><A href = "one.html">Bharatnatyam</A></li>
<li><A href = "two.html">Kathak</A></li>
<li><A href = "three.html">Kathakali</A></li>
<li><A href = "four.html">Odissi</A></li>
</ol>
<li><A href = "folk.html">Folk Dance</A></li>
<li><A href = "Popular.html">Popular Dance Forms</A></li>
<ol type="A">
ny
<li><A href = "five.html">Film Dances</A></li>
<li><A href = "six.html">Indo Western Style</A></li>
pa
</ol>
</ul>
<table BORDER=1 color="red">
om
<caption>Important Dance Festivals</caption>
<tr>
<th>Festival Name</th>
C
<th>Venue</th>
<th>Festival Month</th>
&
</tr>
<tr>
<td>Hampi Dance Utsav</td>
d
<td>Karnataka</td>
n
<td>October</td>
ha
</tr>
<tr>
<td>Khajuraho Dance Festival</td>
C
<td>Khajuraho</td>
<td>February</td>
</tr>
S.
ny
pa
om
C
&
d
Ans:
n
<html>
<head>
ha
<title>Plagiarism</title>
</head>
C
<body bgcolor="white"><center>
<font color= "GREEN" size=”10” ><br><b>
<H1>Let’s Discuss</h1> <br>
S.
ny
Students will research and add the content in table accordingly</font>
</center>
pa
</b>
<h2>Law Related to Plagiarism
<center>
om
<Table border=2>
<tr>
<td><b>Country Name</td>
C
<tr>
<td>India</td>
<td>imprisonment for 6 months to 3 years</td>
d
</tr>
n
</table>
ha
</body>
</head>
S.
Page 219
Project 8: Write a blog using HTML pages discussing viruses, malware, spam and antiviruses.
Ans:
<!DOCTYPE html>
<html>
<head>
<meta name="test" content="width=device-width, initial-scale=1">
<style>
*{
box-sizing: border-box;
}
/* Add a gray background color with some padding */
body {
font-family: Palatino;
padding: 30px;
background: grey;
}
/* Header/Blog Title */
header {
padding: 30px;
font-size: 40px;
text-align: center;
background: orange;
}
c1 {
float: left;
width: 100%;
}
back2 {
background-color: white;
padding: 20px;
margin-top: 20px;
}
<body>
<div class="header">
<h3>VIRUSES, MALWARE, SPAM AND ANTIVIRUSES</h3>
</div>
<div class="row">
<div class="c1">
<div class="back2">
<h2>VIRUSES</h2>
<h5>Definition and Some Common Viruses: </h5>
ny
</div>
<div class="row">
pa
<div class="c1">
<div class="back2">
<h2>ANTIVIRUSES</h2>
om
<h5>Need of Antiviruses and Name of Some Popular Antiviruses:</h5>
<p>Add your text here</p>
</div>
C
<div class="back2">
<h3>Blogger Name:</h3>
&
</div>
n
ha
</body>
</html>
C
Page 219
Project 9: Write the HTML code to generate a webpage in the format given below:
S.
Ans:
<html>
<head>
<title>Olympics 2016</title>
</head>
<body bgcolor= "white" vlink="brown"><center>
<h1>
<font color= "purple" size=”10”><br><b>
OLYMPIC</center> </font>
<img src="rio2.jpg" align="right"></td>
<img src="rio1.jpg" height=”10%” width =”20%” align="left">
The 2016 Summer Olympics officially the Games of the XXXI Olympiad and commonly
known as Rio 2016, was an international
<a href="https://en.wikipedia.org/wiki/Multi-sport event">multi-sport event</a>
held <a href="https://en.wikipedia.org/wiki/Rio de Janeiro">Rio de Janeiro, Brazil</a>,
ny
in from 5 to 21 August 2016.
<h3> <br>Medal Standings</h3>
pa
United States
<br>Gold-46
<br>Silver-37
om
<br>Bronze-38
<br>Great Britain
<br>Gold-27
C
<br>Silver-23
<br>Bronze-17
&
<center>
<font color= "orange" size=”10”><br><b>
Achievers
d
<tr>
ha
<tr>
<td>P.V. Sindhu</td>
<td>Badminton</td>
</tr>
<tr>
<td>Sakshi Malik</td>
<td>Wrestling</td>
</tr>
<tr>
<td>Dipa Karmakar</td>
<td>Gymnastic</td>
</tr>
</Table>
<br>
<br>
<a href="https://olympics.com/"><t><t>OlympicChannel.com</a>
</BODY>
</HTML>
Page 219
Project 10: Write the HTML code to generate a webpage in the format given below:
ny
pa
om
C
&
Ans:
<html>
d
<head>
<title>SPORTSCRICKET</title>
n
</head>
ha
<h1>Sachin Tendulkar is a former Indian cricketer and captain, widely regarded to be one of
the greatest cricketers of all time and by many as the greatest batsman of all time.
<br>Born: April 24, 1973 (age 42), Mumbai
<br>Height:1.65 m
<br>Spouse: Anjali Tendulkar (m. 1995)
<br>Children: Sara Tendulkar, Arjun Tendulkar
<br>Parents: Rajni Tendulkar, Ramesh Tendulkar
<br>Book: Playing It My Way
</h1>
<br><br>
<Table border=1 style="inset" bgcolor="white” cellpadding =0 bordercolor="grey">
<tr>
<td><a href="https://en.wikipedia.org/wiki/Virat Kohli">Virat Kohli</a> </td>
<td><a href="https://en.wikipedia.org/wiki/AB De Villiers">AB De Villers</a> </td>
<td><a
href="https://en.wikipedia.org/wiki/Steve_Smith_(cricketer)"https://en.wikipedia.org/wiki/
Main_Page> Steve Smith</a> </td>
<td><a href="https://en.wikipedia.org/wiki/Brendon McCullum">Brendon
McCullum</a></td>
<td><a href="https://en.wikipedia.org/wiki/Umesh Yadav">Umesh Yadav</a></td>
</BODY>
</HTML>
ny
pa
om
C
&
n d
ha
C
S.