0 7

Web Technology I05 marksCSS selectors class and id

Consider a HTML page contains two divisions and one paragraph tags. The divisions have id div1 and div2 respectively. The color of text in both of divisions should be red and background color of divisions should be green. The font style in paragraph should be Arial and the size of font should be 14.

Consider a HTML page contains two divisions and one paragraph tags. The divisions have id div1 and div2 respectively. The color of text in both of divisions should be red and background color of divisions should be green. The font style in paragraph should be Arial and the size of font should be 14. Write necessary CSS for the given scenario. [5]

Selector Property Value Purpose ------------ div1, div2 color red Sets text color to red in both divisions div1, div2 background-color green Sets background color to green in both divisions p font-family Arial Sets font style to Arial in paragraph p font-size 14px Sets font size to 14 pixels in p...

Up nextHow array is defined in JavaScript? Illustrate with example.