Why Web Development Institute?

Web Development Institute is the premier institute in Delhi-NCR offering wide range of web design and web development courses. All our courses are designed by experts and in consultation with students from the advanced regions of the web world.

Read more

Our Web Development Faculty

Our Web Development Courses are known for its professional excellence. Our highly qualified & experienced faculty offers intensified practical training to the students in the field of web development. They also render free career counseling.

Read more

Contact Web Development Institute

Want to talk to our career advisor!! Feel free to contact on any of the following numbers:

Ring us at:   +91 9911-78-23-50
                      + 91 9811-81-81-22

JavaScript Quiz for Beginners

Primary tabs

Question 1 of 30

Which one from the follwing given options is correct to apply the border with 2px width, red color, and solid style on an element with id 'demo' in JavaScript?

document.getElementById('demo').style.border = "2px solid red";

document.getElementById('demo').border = "2px solid red";

document.getElementsById('demo').style.border = "2px solid red";

#demo.style.border = "2px solid red";