1. What will be the result of this code? margin-left:30px; Only images in divs will have a left margin of 30px. No change will occur. All divs and images will have a left margin of 30px. Only images will have a left margin of 30px. 2. What is the purpose of a div? to change the styling of multiple contained elements to group elements to add a background color or image to a web page section all of the above 4. 3. You are given an image called "my-background.jpg", and it is 300px wide by 200px tall. Set this image as the background for a div that has no content inside it, making sure that the entire image can be seen. 4. top left Which of the following background-position values represents the div below? 50px 0px 0px 50px WELLA left center 5. Set a CSS property of a red font color using three different color selection methods. 6. Which statement about IDs and classes is true? Particular classes and IDs can both be used multiple times per page. Any particular class or ID can only be used once per page. A particular ID can only be used once per page, while a class can be used multiple times. A particular class can only be used once per page, while an ID can be used multiple times. 7. Add some HTML and CSS code to the following sentence so that only part of it is in bold font and part of it is in italics. I will show you how to alter fonts with CSS properties. 8. Which property created the border around the div below? border:solid thick #FF0000;

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

please answer  all thanks !

td { border:collapse}
table { border-collapse:collapse }
11.
Write CSS that will set every paragraph on a page to italic.
12.
The following example is a div containing a paragraph. Which of these properties
could NOT create the example pictured here?
Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Aliquam
at interdum justo. Nunc pharetra
ipsum mi, bibendum ultricies sem
fringilla ut. Duis sem ligula, iaculis
vitae luctus sit amet, suscipit in
diam. Mauris at lorem sapien. Duis
urna massa, tristique vel dolor a,
tempus consectetur lorem.
<p style="margin:40px 20px">
<p style="margin:40px 20px 40px 20px">
<div style="padding:20px">
<div style="margin:20px">
13.
Write an internal CSS rule to add a gray background color only to cells 7, 8 and 9.
<table>
<tr class="row1">
</tr>
<tr class="row2">
</tr>
<tr class="row3">
</table>
</tr>
rgb(0,0,0)
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
14.
Which of these RGB codes would produce a medium gray?
rgb(50,50,50)
<td>Cell 4</td>
<td>Cell 5</td>
<td>Cell 6</td>
rgb(128,128,128)
<td>Cell 7</td>
<td>Cell 8</td>
<td>Cell 9</td>
rgb(248,248,248)
15.
Which style will add the image "bullet.png" as a list's label?
list-style-type:url("bullet.png)
list-style-image:url('bullet.png)
list-style-image:bullet.png
#FFFF00
list-style-type:bullet.png
#00FF00
16.
Which of these Hex codes will produce magenta?
#FF00FF
#00FFFF
17.
Write a line of code that would add an image called "my-image.png" with a margin of
10 pixels on the top and bottom, and a margin of 20 pixels on the left and right. The
property should be in shorthand format.
18.
What is the "middle" value for the "vertical-align" property based on?
the height of the page
the number of elements on a line
a line's x-height
the shortest element on a line
+
0
+
Transcribed Image Text:td { border:collapse} table { border-collapse:collapse } 11. Write CSS that will set every paragraph on a page to italic. 12. The following example is a div containing a paragraph. Which of these properties could NOT create the example pictured here? Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam at interdum justo. Nunc pharetra ipsum mi, bibendum ultricies sem fringilla ut. Duis sem ligula, iaculis vitae luctus sit amet, suscipit in diam. Mauris at lorem sapien. Duis urna massa, tristique vel dolor a, tempus consectetur lorem. <p style="margin:40px 20px"> <p style="margin:40px 20px 40px 20px"> <div style="padding:20px"> <div style="margin:20px"> 13. Write an internal CSS rule to add a gray background color only to cells 7, 8 and 9. <table> <tr class="row1"> </tr> <tr class="row2"> </tr> <tr class="row3"> </table> </tr> rgb(0,0,0) <td>Cell 1</td> <td>Cell 2</td> <td>Cell 3</td> 14. Which of these RGB codes would produce a medium gray? rgb(50,50,50) <td>Cell 4</td> <td>Cell 5</td> <td>Cell 6</td> rgb(128,128,128) <td>Cell 7</td> <td>Cell 8</td> <td>Cell 9</td> rgb(248,248,248) 15. Which style will add the image "bullet.png" as a list's label? list-style-type:url("bullet.png) list-style-image:url('bullet.png) list-style-image:bullet.png #FFFF00 list-style-type:bullet.png #00FF00 16. Which of these Hex codes will produce magenta? #FF00FF #00FFFF 17. Write a line of code that would add an image called "my-image.png" with a margin of 10 pixels on the top and bottom, and a margin of 20 pixels on the left and right. The property should be in shorthand format. 18. What is the "middle" value for the "vertical-align" property based on? the height of the page the number of elements on a line a line's x-height the shortest element on a line + 0 +
1.
What will be the result of this code?
<style>
div, img {
}
</style>
margin-left:30px;
<div>
</div>
<img src="image1.jpg">
Only images in divs will have a left margin of 30px.
No change will occur.
All divs and images will have a left margin of 30px.
Only images will have a left margin of 30px.
2.
What is the purpose of a div?
to change the styling of multiple contained elements
to group elements
to add a background color or image to a web page section
all of the above
3.
You are given an image called "my-background.jpg", and it is 300px wide by 200px
tall. Set this image as the background for a div that has no content inside it, making
sure that the entire image can be seen.
4.
4.
wwwwwwwwwwwwwwwwwwwate
top left
Which of the following background-position values represents the div below?
50px 0px
0px 50px
left center
5.
Set a CSS property of a red font color using three different color selection methods.
6.
Which statement about IDs and classes is true?
Particular classes and IDs can both be used multiple times per page.
Any particular class or ID can only be used once per page.
A particular ID can only be used once per page, while a class can be used multiple
times.
A particular class can only be used once per page, while an ID can be used multiple
times.
7.
Add some HTML and CSS code to the following sentence so that only part of it is in
bold font and part of it is in italics.
<p>I will show you how to alter fonts with CSS properties.</p>
8.
Which property created the border around the div below?
border:solid thick #FF0000;
border: none; border-bottom: solid thick #FF0000;
border: solid thick #FF0000 solid thick #FF0000 none solid thick #FF0000;
border:solid thick #FF0000; border-bottom:none;
9.
Which is the correct CSS code to set an element to have sans serif font that is one a
half times larger than the current font size?
style="font-family: sans-serif, Arial, Helvetica; font-size:1.5em"
style="font-family: Arial, Helvetica, sans-serif; font-size:1.5em"
style="font-family: Arial, Helvetica, sans-serif; font-size:150em"
style="font-family: Arial Helvetica sans-serif; font-size:150%"
10.
Which line of code will remove space from between a table's cells?
table {border:collapse}
td { border-collapse:collapse }
www.
Transcribed Image Text:1. What will be the result of this code? <style> div, img { } </style> margin-left:30px; <div> </div> <img src="image1.jpg"> Only images in divs will have a left margin of 30px. No change will occur. All divs and images will have a left margin of 30px. Only images will have a left margin of 30px. 2. What is the purpose of a div? to change the styling of multiple contained elements to group elements to add a background color or image to a web page section all of the above 3. You are given an image called "my-background.jpg", and it is 300px wide by 200px tall. Set this image as the background for a div that has no content inside it, making sure that the entire image can be seen. 4. 4. wwwwwwwwwwwwwwwwwwwate top left Which of the following background-position values represents the div below? 50px 0px 0px 50px left center 5. Set a CSS property of a red font color using three different color selection methods. 6. Which statement about IDs and classes is true? Particular classes and IDs can both be used multiple times per page. Any particular class or ID can only be used once per page. A particular ID can only be used once per page, while a class can be used multiple times. A particular class can only be used once per page, while an ID can be used multiple times. 7. Add some HTML and CSS code to the following sentence so that only part of it is in bold font and part of it is in italics. <p>I will show you how to alter fonts with CSS properties.</p> 8. Which property created the border around the div below? border:solid thick #FF0000; border: none; border-bottom: solid thick #FF0000; border: solid thick #FF0000 solid thick #FF0000 none solid thick #FF0000; border:solid thick #FF0000; border-bottom:none; 9. Which is the correct CSS code to set an element to have sans serif font that is one a half times larger than the current font size? style="font-family: sans-serif, Arial, Helvetica; font-size:1.5em" style="font-family: Arial, Helvetica, sans-serif; font-size:1.5em" style="font-family: Arial, Helvetica, sans-serif; font-size:150em" style="font-family: Arial Helvetica sans-serif; font-size:150%" 10. Which line of code will remove space from between a table's cells? table {border:collapse} td { border-collapse:collapse } www.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY