Website Developer Question:

Download Job Interview Questions and Answers PDF

Tell me does HTML5 Provide Drag And Drop Facility? How Do You Set An Image As Draggable?

Website Developer Interview Question
Website Developer Interview Question

Answer:

To set an image as draggable, initialize the draggable attribute with true.

<img draggable="true">

Download Website Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know what is DTD (Document Type Declaration)? Mention what is the difference between CDATA and PCDATA in DTD?Do you know in CSS, how can you make a form element’s background color change when the user is entering text? Does this work in all browsers?