In: Computer Science
Change the format of the given code to two columns, add a sub title and an author name and increase the color and thickness of the column-rule. Add an image and float the text around the image.
<!DOCTYPE html>
<!-- Fig. 5.17: multicolumns.html -->
<!-- Multicolumn text in CSS3. -->
<html>
<head>
<meta charset = "utf-8"›
<title>Multicolumns</title>
<style type = "text/css"›
p
{ margin:0.9em Oem; }
.multicolumns
{
/* setting the number of columns to 3 */
-webkit-column-count: 3;
-moz-column-count: 3;
-o-column-count: 3;
column-count: 3;
/ *setting the space between columns to 30px */
-webkit-column-gap: 30px;
-moz-column-gap: 30px;
-o-column-gap: 30px;
column-gap: 30px;
/ *adding a 1px black line between each column */
-webkit-column-rule: 1px outset black;
-moz-column-rule: 1px outset black;
-o-column-rule: 1px outset black;
column-rule: 1px outset black;
}
</style>
</head>
<body>
<header>
<h1>Computers, Hardware and Software<h1/>
</header>
<div class = "multicolumns">
<p>A computer is a device that can perform computations and
make logical decisions phenomenally faster than human beings can.
Many of today's personal computers can perform billions of
calculations in one second—more than a human can perform
in a lifetime. Supercomputers are already performing thousands of
trillions (quadrillions) of instructions per second! To put
that in perspective, a quadrillion-instruction-per-second computer
can perform in one second more than 100,000 calculations for every
person on the planet! And—these "upper limits" are
growing quickly!</p>
<p>Computers process data under the control of sets of
instructions called computer programs. These programs guide
the computer through orderly sets of actions specified by people
called computer programmers. The programs that run on a computer
are referred to as software. In this book, you'll learn today's key
programming methodology that's enhancing programmer productivity,
thereby reducing software-development
costs—object-oriented programming.</p>
<p>A computer consists of various devices referred to as
hardware (e.g., the keyboard, screen, mouse, hard disks, memory,
DVDs and processing units). Computing costs are dropping
dramatically, owing to rapid developments in hardware and software
technologies. Computers that might have filled large rooms and cost
millions of dollars decades ago are now inscribed on silicon chips
smaller than a fingernail, costing perhaps a few dollars each.
Ironically, silicon is one of the most abundant
materials—it's an ingredient in common sand. Silicon-chip
technology has made computing so economical that more than a
billion general-purpose computers are in use
that more than a billion general-purpose computers are in use
worldwide, and this is expected to double in the next few
years.</p>
<p>Computer chips (microprocessors) control countless
devices. These embedded systems include anti-lock brakes in cars,
navigation systems, smart home appliances, home security systems,
cell phones and smartphones, robots, intelligent traffic
intersections, collision avoidance systems, video game controllers
and more. The vast majority of the microprocessors produced each
year are embedded in devices other than general-purpose
computers.</p>
<footer>
<em>© 2012 by Pearson Education, Inc.
All Rights Reserved.</em>
</footer>
</div>
</body>
</html>
Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Here a new web page with name "multicolumns.html" is created, which contains following code.
NOTE :IMAGE IS USED FOR DEMONSTRATION PURPOSE ONLY.
multicolumns.html :
<!DOCTYPE html>
<!-- Fig. 5.17: multicolumns.html -->
<!-- Multicolumn text in CSS3. -->
<html>
<head>
<meta charset = "utf-8">
<title>Multicolumns</title>
<style type = "text/css">
/* style for p */
p
{ margin:0.9em Oem;
text-align: justify;
}
/* style for class=multicolumns */
.multicolumns
{
/* setting the number of columns to 3 */
-webkit-column-count: 2;
-moz-column-count: 2;
-o-column-count: 2;
column-count: 2;
/*setting the space between columns to 30px */
-webkit-column-gap: 50px;
-moz-column-gap: 50px;
-o-column-gap: 50px;
column-gap: 50px;
/*adding a 1px black line between each column */
-webkit-column-rule: 3px outset black;
-moz-column-rule: 3px outset black;
-o-column-rule: 3px outset black;
column-rule: 3px outset black;
}
/* style for image */
img{
height: 200px;
width: 200px;
float: left;
padding: 20px;
}
/* style for h2 */
h2{
margin-left: 250px;
margin-top:-20px;
}
/* style for h4 */
h4{
margin-left: 400px;
margin-top:-20px;
}
</style>
</head>
<body>
<header>
<h1>Computers, Hardware and Software<h1/>
<h2>Welcome to the world of computer.</h2>
<h4>By:John Ram</h4>
</header>
<div class = "multicolumns">
<img src="Image1.jpg" />
<p>A computer is a device that can perform computations and make logical decisions phenomenally faster than human beings can. Many of today's personal computers can perform billions of calculations in one second—more than a human can perform in a lifetime. Supercomputers are already performing thousands of trillions (quadrillions) of instructions per second! To put
that in perspective, a quadrillion-instruction-per-second computer can perform in one second more than 100,000 calculations for every person on the planet! And—these "upper limits" are growing quickly!</p>
<p>Computers process data under the control of sets of instructions called computer programs. These programs guide
the computer through orderly sets of actions specified by people called computer programmers. The programs that run on a computer are referred to as software. In this book, you'll learn today's key programming methodology that's enhancing programmer productivity, thereby reducing software-development costs—object-oriented programming.</p>
<p>A computer consists of various devices referred to as hardware (e.g., the keyboard, screen, mouse, hard disks, memory, DVDs and processing units). Computing costs are dropping
dramatically, owing to rapid developments in hardware and software technologies. Computers that might have filled large rooms and cost millions of dollars decades ago are now inscribed on silicon chips smaller than a fingernail, costing perhaps a few dollars each. Ironically, silicon is one of the most abundant materials—it's an ingredient in common sand. Silicon-chip technology has made computing so economical that more than a billion general-purpose computers are in use
that more than a billion general-purpose computers are in use worldwide, and this is expected to double in the next few years.</p>
<p>Computer chips (microprocessors) control countless devices. These embedded systems include anti-lock brakes in cars, navigation systems, smart home appliances, home security systems, cell phones and smartphones, robots, intelligent traffic intersections, collision avoidance systems, video game controllers and more. The vast majority of the microprocessors produced each year are embedded in devices other than general-purpose computers.</p>
<footer>
<em>© 2012 by Pearson Education, Inc.
All Rights Reserved.</em>
</footer>
</div>
</body>
</html>
======================================================
Output : Open web page multicolumns.html in the browser and will get the screen as shown below
Screen 1 :multicolumns.html
NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.