Page 221 - Webapplication11_C11_Flipbook
P. 221

18.   You want to complete the pseudo class for link elements so that the links appear red when the page loads, green when
                       the link is clicked, orange when the cursor moves over the link, and blue if the link was clicked previously.
                        How should you complete the code?                                          [CBSE Sample Paper, 2022]
                        1.                       (;color:red)

                        2.                       (;color:blue)

                        3.                       (;color:orange)
                        4.                       (;color:green)


                        i.  a:hover                                      ii.   a:visited

                            a:active                                         a:link

                            a:link                                           a:active
                            a:visited                                        a:hover

                       iii.  a:link                                     iv.   a:active

                            a:visited                                        a:hover

                            a:hover                                          a:visited

                            a:active                                         a:link

                    19.   You are designing a website for City Power & Light.                      [CBSE Sample Paper, 2022]
                        You write the following markup. Line numbers are included for reference only.
                        1. <!DOCTYPE html>
                        2. <html>
                        3. <head>
                        4.  <title> City Power and light </title>
                        5. </head>
                        6. <body>
                        7.  <p>Welcome to City Power & Light </p>
                        8. </body>
                        9. </html>

                        What style will be used to render the code?
                        i.  The browser default style will be used.      ii.  An inline style will be used.
                       iii.  An international style will be used.       iv.  An external style will be used.
                    20.  There are five types of alignment which can be applied on the image are as follows:   [CBSE Sample Paper, 2022]
                        Left
                        Right
                        Top
                        Bottom
                        Middle
                        Statement 1: By default, images are left aligned.
                         Statement 2: The image with the top and bottom alignment will be set at the top of the line or bottom of the line.
                        Which of the following are true:
                        i.  Statement 1 is True                          ii.  Statement 2 is True.
                       iii.  Statement 1 is true if Statement 2 is not declared anywhere in the code.
                        iv.  Statement 1 and 2 are False.

                                                                                Website Building Using HTML and CSS  219
   216   217   218   219   220   221   222   223   224   225   226