Welcome to AssignmentCache!

PRINCIPLES OF WEB DESIGN Sklar Chapter 4 Hands-On Projects CIT-150

Availability: In stock

Regular Price: $15.00

Special Price: $12.00

Quick Overview

PRINCIPLES OF WEB DESIGN Sklar Chapter 4 Hands-On Projects CIT-150

3. In this project, you will have a chance to test a few simple style rules on a standard HTML document and view the results in your browser.
a. Using your HTML editor, create a simple HTML file (or open an existing file) that contains <body>, <h1>, and <p> elements. Save the file as csstest1.htm in the Chapter04 folder in your work folder.
b. Add a <style> element to the <head> section, as shown in the following code.
<head>
<title>CSS Test Document</title>
<style type="text/css">
</style>
</head>
c. Add a style rule that uses body as a selector and sets the color property to green, as shown in the following code:
<style type="text/css">
body {color: green;}
</style>
d. Save csstest1.htm and view it in the browser. All of the document text should now be green.
e. Now add a style rule that sets <h1> elements to be displayed in black:
<style type="text/css">
body {color: green;}
h1 {color: black;}
</style>
f. Save csstest1.htm and view the results in the browser.
g. Finally, add a style rule that sets a margin for <p> elements to 30 pixels:
<style type="text/css">
body {color: green;}
h1 {color: black;}
p {margin: 30px;}
</style>
h. Save csstest1.htm and view the results in the browser.

4. In this project, you will have a chance to test a few basic selection techniques on a standard HTML document and view the results in your browser. Save the file and view it in your browser after completing each step.
a. Using your HTML editor, create a simple HTML file (or open an existing file) that contains <body>, <h1>, <p> elements, and so on. Save the file in the Chapter04 folder in your work folder as csstest2.htm.
b. Add a <style> element to the <head> section, as shown in the following code:
<head>
<title>CSS Test Document</title>
<style type="text/css">
</style>
</head>
c. Write a style rule that uses body as a selector and sets the color property to the color of your choice.
d. Find two elements on the page, such as <h1> and <h2>, which can share the same characteristics. Write a single style rule that applies to both elements. Set the color property to red and the margin property to 20px.
e. Find one element that contains another, such as a <b> or <q> element within a <p> element. Write a descendant selector rule that affects the contained element and sets the color property to green.

5. In this project, you will have a chance to test a few advanced selection techniques on a standard HTML document and view the results in your browser. Save the file and view it in your browser after completing each step.
a. Using your HTML editor, create a simple HTML file (or open an existing file) that contains the elements: <body>, <h1>, <p>, and so on. Save the file in the
Chapter04 folder in your work folder as csstest3.htm.
b. Add a <style> element to the <head> section, as shown in Exercise 4.
c. Write a rule for a class selector named heading. Set the color property to red and the font-size property to 200%. Apply the heading class to an <h1> or <h2>
element in the document.
d. Write a rule for a class selector named emphasis. Set the color property to blue and the background-color property to yellow. In the document, add a <span>
element to a span of words that you want to highlight. Apply the emphasis class to the <span> element.

Chapter 4 Hands-On Projects CIT-150 csstest2

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

  • Chapter 4 Hands-On Projects CIT-150 csstest1
  • Chapter 4 Hands-On Projects CIT-150 csstest2
  • Chapter 4 Hands-On Projects CIT-150 csstest3

Regular Price: $15.00

Special Price: $12.00

Details

PRINCIPLES OF WEB DESIGN Sklar Chapter 4 Hands-On Projects CIT-150

3. In this project, you will have a chance to test a few simple style rules on a standard HTML document and view the results in your browser.
a. Using your HTML editor, create a simple HTML file (or open an existing file) that contains <body>, <h1>, and <p> elements. Save the file as csstest1.htm in the Chapter04 folder in your work folder.
b. Add a <style> element to the <head> section, as shown in the following code.
<head>
<title>CSS Test Document</title>
<style type="text/css">
</style>
</head>
c. Add a style rule that uses body as a selector and sets the color property to green, as shown in the following code:
<style type="text/css">
body {color: green;}
</style>
d. Save csstest1.htm and view it in the browser. All of the document text should now be green.
e. Now add a style rule that sets <h1> elements to be displayed in black:
<style type="text/css">
body {color: green;}
h1 {color: black;}
</style>
f. Save csstest1.htm and view the results in the browser.
g. Finally, add a style rule that sets a margin for <p> elements to 30 pixels:
<style type="text/css">
body {color: green;}
h1 {color: black;}
p {margin: 30px;}
</style>
h. Save csstest1.htm and view the results in the browser.

4. In this project, you will have a chance to test a few basic selection techniques on a standard HTML document and view the results in your browser. Save the file and view it in your browser after completing each step.
a. Using your HTML editor, create a simple HTML file (or open an existing file) that contains <body>, <h1>, <p> elements, and so on. Save the file in the Chapter04 folder in your work folder as csstest2.htm.
b. Add a <style> element to the <head> section, as shown in the following code:
<head>
<title>CSS Test Document</title>
<style type="text/css">
</style>
</head>
c. Write a style rule that uses body as a selector and sets the color property to the color of your choice.
d. Find two elements on the page, such as <h1> and <h2>, which can share the same characteristics. Write a single style rule that applies to both elements. Set the color property to red and the margin property to 20px.
e. Find one element that contains another, such as a <b> or <q> element within a <p> element. Write a descendant selector rule that affects the contained element and sets the color property to green.

5. In this project, you will have a chance to test a few advanced selection techniques on a standard HTML document and view the results in your browser. Save the file and view it in your browser after completing each step.
a. Using your HTML editor, create a simple HTML file (or open an existing file) that contains the elements: <body>, <h1>, <p>, and so on. Save the file in the
Chapter04 folder in your work folder as csstest3.htm.
b. Add a <style> element to the <head> section, as shown in Exercise 4.
c. Write a rule for a class selector named heading. Set the color property to red and the font-size property to 200%. Apply the heading class to an <h1> or <h2>
element in the document.
d. Write a rule for a class selector named emphasis. Set the color property to blue and the background-color property to yellow. In the document, add a <span>
element to a span of words that you want to highlight. Apply the emphasis class to the <span> element.

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.