Friday, December 16, 2022

Cascading sytle sheet 17 December

 

. ----stands for Cascading Style Sheets.

A. CSS

B. inline

C. internal

D. external

discuss

A. CSS

2. -----describes how HTML elements are to be displayed on screen, paper, or in other
media.

A. CSS

B. inline

C. internal

D. external

discuss

A. CSS

3. ------saves a lot of work. It can control the layout of multiple web pages all at once.

A. CSS

B. inline

C. internal

D. external

discuss

A. CSS

4. An------CSS is used to apply a unique style to a single HTML element

A. CSS

B. inline

C. internal

D. external

discuss

B. inline

5. An-----CSS is defined in the <head> section of an HTML page, within
a <style> element:

A. CSS

B. inline

C. internal

D. external

discuss

C. internal

6. With an--------style sheet, you can change the look of an entire web site, by
changing one file!

A. CSS

B. inline

C. internal

D. external

discuss

D. external

7. An external style sheet can be written in any text editor. The file must not contain
any HTML code, and must be saved with a -------extension.

A. .CSS

B. .TXT

C. .JS

D. .XLS

discuss

A. .CSS

8. The CSS-------property defines the text color to be used.

A. color

B. font-family

C. font -size

D. border

discuss

A. color

9. The CSS------property defines the font to be used.

A. color

B. font-family

C. font -size

D. border

discuss

B. font-family

10. The CSS---------property defines the text size to be used.

A. color

B. font-family

C. font -size`

D. border

discuss

C. font -size`

11. The CSS-------property defines a border around an HTML element:

A. color

B. font-family

C. font -size`

D. border

discuss

D. border

12. The CSS--------property defines a margin (space) outside the border

A. color

B. font-family

C. font -size`

D. Margin

discuss

D. Margin

13. To define a style for special types of elements, add a-----attribute is apply to the
element

A. color

B. font-family

C. font -size`

D. class

discuss

D. class

14. -------are used to explain the code, and may help when you edit the source code at
a later date.

A. color

B. font-family

C. font -size`

D. comments

discuss

D. comments

15. ------are ignored by browsers.

A. color

B. font-family

C. font -size`

D. comments

discuss

D. comments

16. ------stands for -

A. Cascade style sheets

B. Color and style sheets

C. Cascading style sheets

D. None of the above

discuss

A. Cascade style sheets

17. Which of the following is the correct syntax for referring the external style sheet?

A. <style src = example.css>

B. <style src = "example.css" >

C. <stylesheet> example.css </stylesheet>

D. <link rel="stylesheet" type="text/css" href="example.css">

discuss

B. <style src = "example.css" >

18. The property in CSS used to change the---------of an element is -

A. bgcolor

B. color

C. background-color

D. All of the above

discuss

C. background-color

19. The property in CSS used to change the text-----of an element is
Sol:
-

A. bgcolor

B. color

C. background-color

D. All of the above

discuss

B. color

20. The CSS property used to control the element's------is -

A. text-style

B. text-size

C. font-size

D. None of the above

discuss

C. font-size

21. The HTML attribute used to define the inline------is -

A. style

B. styles

C. class

D. None of the above

discuss

A. style

22. The HTML attribute used to define the internal style sheet is ------

A. <style>

B. style

C. <link>

D. <script>

discuss

B. style

23. Which of the following CSS property is used to set the background image of an
element?

A. background-attachment

B. background-image

C. background-color

D. None of the above

discuss

B. background-image

24. Which of the following is the correct syntax to make the background-color of all
paragraph elements to yellow?

A. p {background-color : yellow;}

B. p {background-color : #yellow;}

C. all {background-color : yellow;}

D. all p {background-color : #yellow;}

discuss

A. p {background-color : yellow;}

25. Which of the following is the correct syntax to display the hyperlinks without anyunderline?

A. a {text-decoration : underline;}

B. a {decoration : no-underline;}

C. a {text-decoration : none;}

D. None of the above

discuss

C. a {text-decoration : none;}

 

No comments:

Post a Comment

ONLINE SAFETY QUIZ FOR ALL CLASSES

https://www.safekids.com/quiz/  https://www.nspcc.org.uk/keeping-children-safe/online-safety/quiz/ https://edu.gcfglobal.org/en/internetsafe...