Question

In: Computer Science

1. Which tag do you use to access an external style sheet? * a) <a> b)...

1. Which tag do you use to access an external style sheet? *

a) <a>

b) <head>

c) <style>

d) <link>

2. Which of the following CSS properties below specifies the name of the font to use? *

a) font-face

b) font-type

c) font-family

d) font-use

3. Choose the INVALID value for the area element’s shape attribute. *

a) square

b) rect

c) circle

d) poly

4. Which of these CSS properties DOES NOT have the top, right, left, and bottom specification? *

a) margin

b) border

c) padding

d) None of the above

c) circle

d) poly

5. The hover pseudo-class gives the author access to text styling under which situation? *

a) When the mouse is over an element.

b) When the mouse moves off of an element.

c) When the mouse is to the left of an element.

d) None of the above

6.CSS inline style requires _________ style in order to declare an individual element’s format. *

a) attribute

b) behaviour

c) tag

d) None of the above

7.Select the CORRECT CSS property in order to set image.jpg as the background image. *

a) background-image:url[image.jpg];

b) bground-image:url[image.jpg];

c) background-image:url(image.jpg);

d) bground-image:url(image.jpg);

8. In __________ positioning, elements are positioned relatively to other elements.

a) relative

b) absolute

c) surface

d) dynamic

Solutions

Expert Solution

1). Ans:Option (d) <link>

<link> tag is used to access an external style sheet

Eg:

<link rel="stylesheet" href="abc.css">

2). Ans: Option (c) font - family

font family is used to specify the name of the font to use

Eg:

p.classname {
font-family: Impact, Charcoal, sans-serif;
}

3). Ans: Option (a) square

There are only 4 attribute values for the area elements shape attribute.

They are

a). default

b). circle

c). rect

d). poly

Therefore square is the invalid option

4). Ans: Option (c) circle

circle does not have top right left and bottom specifications. It only has centre and readius specifications

5). Ans: Option (a) When the mouse is over an element.

The hover pseudo-class gives the author access to text styling When the mouse is over an element.

6). Ans: Option (c) tag

CSS inline style requires tag style in order to declare an individual element’s format.

Eg:
<style>
body {
background-color: linen;
}

Here body is the tag. So we require the style of the tag

7).Ans: Option (c) background-image: url ("image.jpg")

background-image: url ("image.jpg"); is used for background image in css

8). Ans: Option (a) relative

In relative positioning elements are positioned relative to other elements


Related Solutions

 In this exercise, you will create two external style sheet files and a web page. You...
 In this exercise, you will create two external style sheet files and a web page. You will experiment with linking the web page to the external style sheets and note how the display of the page is changed. Create an external style sheet (call it format1.css) to format as follows: document background color of white, document text color of #000099, and document font family of Arial, Helvetica, or sans-serif. Hyperlinks should have a background color of gray (#CCCCCC). Configure the...
What are inline styles, embedded styles, and external style sheets? Which would you use to define...
What are inline styles, embedded styles, and external style sheets? Which would you use to define a design for an entire Web site and why? Please type out in text so I can read. Also please be as detailed as possible. Thank you in advance!!!
1.What are the THREE (3) types of CSS? a) Internal, External and Online Style Sheets b)...
1.What are the THREE (3) types of CSS? a) Internal, External and Online Style Sheets b) Embedded, Outsider and Inline Style Sheets c) Embedded, Linking and Inline Style Sheets 2. The width, src and border are examples of an ______. * a) entity b) element c) attribute d) operation d) Internal, External and Inline Style Sheets 3. Which of the following codes best represents inserting image from folder named images? a) <p>Image:</p> <img src="/chrome/images.gif" alt="Google Chrome" width="33" height="32" /> b)...
1. Why do you think B&O has decided to switch from relying on external distributors in...
1. Why do you think B&O has decided to switch from relying on external distributors in Europe and emerging markets to relying more heavily on direct distribution through local stores they own and operate themselves? 2. Do you agree with this decision? Is there any downside to this choice?
a style sheet was not new with HTML and even today other languages use a similar...
a style sheet was not new with HTML and even today other languages use a similar approach. JavaFX uses an almost identical style definition as CSS for its style sheets. .NET's Windows Presentation Foundation (WPF) uses an XML like style definition in a language named XAMLAll these different technologies have one thing in common: they separate what is being displayed from how it is being displayed. Why? What is the benefit of doing so, if any? What are the drawbacks,...
Discuss which leadership style you will follow from the following 1. Autocratic leadership style 2. Democratic...
Discuss which leadership style you will follow from the following 1. Autocratic leadership style 2. Democratic leadership style 3. Laissez-faire leadership style Your answer should highlight both the advantages and disadvantages of the chosen style with support of literature review (300 words)
Describe why you think it is important for external stakeholders to be able to have access...
Describe why you think it is important for external stakeholders to be able to have access to a company’s financial statements. Consider who “external stakeholders” may be and provide some examples. Why is an adequate environment and system of internal control important for an organization in order to produce reliable financial statements? Find an example of an organization that does not have strong internal control. (You can search to find examples or use personal experience, or both.) Describe what you...
How is Access and use of technology resources addressed in an organization? Do you have any...
How is Access and use of technology resources addressed in an organization? Do you have any suggestions for improvements?
Use a style sheet to define the following rules and implement the given HTML code. Please...
Use a style sheet to define the following rules and implement the given HTML code. Please put your style information within the same file as the HTML code. Rules • Hyperlinks using the nodec class should display no decoration. • Hyperlinks should display text in white with a green background color when the mouse pointer is held over the link. (use the hover pseudo-class) • Unordered lists not nested within any other lists should be displayed in blue text and...
What are the major leadership styles? Which style is optimal to use in which situation?
What are the major leadership styles? Which style is optimal to use in which situation?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT