The first h2 element in a web page is created with the following tag pair:

. Provide three different examples of code to reference this element using three different methods.

What will be an ideal response?


Any three of the following: getElementById("local")
getElementsByTagName("h2")[0]querySelector("h2")querySelectorAll("h2")[0]

Computer Science & Information Technology

You might also like to view...

The state bit ________ is set when an attempted operation has failed.

A) ios::failbit B) ios::badbit C) ios::hardfail D) ios::goodbit E) None of the above

Computer Science & Information Technology

Overloaded operators are often used in searching a linked list because:

A. they are much faster than regular operators B. struct objects are never used as elements C. struct objects are often used as elements in a linked list, and the client chooses what type of struct to use D. addition of struct objects, used as elements, is often used in the search

Computer Science & Information Technology

What is the port number for SMTP - Simple Mail Transfer Protocol?

What will be an ideal response?

Computer Science & Information Technology

The ____________________ filter can be used very effectively on text and headlines to create a sense of movement and action.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology