Web Technology I20815 marksInline internal and external CSS methods
Consider an HTML file that contains three <div> elements and two <p> elements. The first <div> should have border color red with border size 1px. The next two <div> elements should have font-family Arial and text color blue. Both of the <p> elements should have background color yellow and their disp
Consider an HTML file that contains three <div> elements and two <p> elements. The first <div> should have border color red with border size 1px. The next two <div> elements should have font-family Arial and text color blue. Both of the <p> elements should have background color yellow and their display property set to block type. Now write the equivalent external CSS for this case. [5]
--- --- Selector Used Target Element Properties Applied --------- first-div (ID selector) First <div border-color, border-style, border-width .styled-div (Class selector) 2nd and 3rd <div font-family, color p (Element selector) Both <p elements background-color, display - The CSS rules are writte...