Web Development and Design Foundations with HTML5 (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134322759
Author: Terry Felke-Morris
Publisher: PEARSON
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 3, Problem 1FWD

(a)

Explanation of Solution

Program:

<!--HTML Tag-->

<html>

<!--Head Tag-->

<head>

<!--Style Tag-->

<style>

<!--Alignment for body tag-->

body

{

background-color: #b9936c;

}

<!--Alignment for header tag-->

h1

{

background-color: #dac292;

}

span

{

background-color: #c4b7a6;

}

<!--Close Tag-->

</style>

<!--Close Tag-->

</head>

(b)

Explanation of Solution

  • With CSS, there are different ways to add color to the HTML elements. Choosing the right colors can be a tricky one, but there are many tools available for it. The first step is to choose a base color, which defines the web site, or subject matter of the site. For example, the web site ColorZilla offers an extension that offers an eyedropper tool for picking colors from the web...

(c)

Explanation of Solution

Filename – color1.css

Program:

<!--HTML Tag-->

<html>

<!--Head Tag-->

<head>

<!--Style Tag-->

<style>

<!--Alignment for body Tag-->

body

{

background-color:#b9936c ;

color: #dac292;

font-family: Arial, Helvetica, sans-serif;

}

<!--Alignment for header Tag-->

h1

{

font-family: "Times New Roman", serif;

color:#000000;

}

<!--Close Tag-->

</style>

<!--Close Tag-->

</head>

<!--Body Tag-->

<body>

<!--Heading Tag-->

<h1>Example Progarm</h1>

<!--Paragraph Tag-->

...

(d)

Explanation of Solution

Filename – color1.html

Components of CSS rule:

  • CSS rule consists of two components, a selector and a declaration block.
  • The “Selector” is used to point out the HTML element that you need to style.
  • The declaration block usually consists of a list of declarations, which is separated by a semi-colon (;).
  • Each declaration mainly consists of a property name and a value that is separated by a colon (:).

Example Program:

<!--HTML Tag-->

<html>

<!--Head Tag-->

<head>

<!--Header Tag-->

<h1 style="color:red">CSS Rule Components</h1>

<!--Style Tag-->

<style>

<!—Alignment for paragraph tag--�...

Blurred answer
Students have asked these similar questions
Of the five primary components of an information system (hardware, software, data, people, process), which do you think is the most important to the success of a business organization? Part A - Define each primary component of the information system. Part B - Include your perspective on why your selection is most important. Part C - Provide an example from your personal experience to support your answer.
Management Information Systems
Q2/find the transfer function C/R for the system shown in the figure Re ད
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning