Contextual selector and group selector


Question1. Name two image formats used on web and describe when it is most suitable to use each format.

Question2. Describe what you understand by the following as used in the CSS:

(i) Contextual Selector and Group Selector

(ii) Relative and Absolute positioning

Explain your answer using extract codes.

Question3. An HTML file “autodetection.html” uses an external Cascading Style Sheet file name “layout.css”. Users are viewing Web page making use of different browsers. The version for those browsers may also vary. Give the suitable Browser Sniffer codes which enable you to use the file “layout.css” only if the browser is Internet Explorer 6 or above.

Question4. Describe briefly the two ways used to create image maps.

Question5. Explain the three approaches to accessing XHTML elements through JavaScript and write the corresponding JavaScript to access the “Cancel” button element defined through the XHTML script shown below:

      
     
     
 

Question6. Write a JavaScript program which allows a user to enter the sentence in the TextArea to test the following situations:

(i) The sentence should be in lower case

(ii) Provide a message if the TextArea is empty

(iii) Provide a message if the sentence contains the letter „s?

(iv) Provide a message if the 6th character is not letter „w?

(v) Provide a message if the sentence contains less than 15 characters

(vi) Provide a congratulatory message if all of the above conditions are satisfied.

(vii) The program should respond when the control is taken away from the TextArea element.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Contextual selector and group selector
Reference No:- TGS05296

Expected delivery within 24 Hours