Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6141331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:14:12+00:00 2026-05-23T18:14:12+00:00

In HTML5, you can add the attribute draggable to any element — it works

  • 0

In HTML5, you can add the attribute draggable to any element — it works like checked; it doesn’t require a value. If you do want to specify a value (e.g. to make it valid XML), I think the official standard syntax is checked="checked", but other things work too (including checked="" and checked="false", confusingly). The standard way to make it ‘false’ is not to include the attribute at all.

<img> elements seem to be ‘draggable’ by default (even if you don’t include a draggable attribute) ­– that’s why you get the ‘ghost’ image effect when you drag regular images in web pages. You get this same effect on non-img elements if you mark them draggable.

So how do you disable it on img elements? You can set the property to false in JavaScript. But what about in the HTML?

(From experimenting, I know that draggable="false" seems to work in Chrome ­– is that a standard syntax that works everywhere? If so, why doesn’t checked="false" work the same way?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:14:12+00:00Added an answer on May 23, 2026 at 6:14 pm

    Well, W3C says you’re right; “true”, “false” and “auto” should work (not to say it will everywhere).

    Edit: http://jsfiddle.net/nwellcome/DRSbc/ for to experiment with in different browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way I can add a column based on another column's attribute?
I want to add a new attribute to my HTML dynamically, but I can't
I want to know is there any way to add a custom attribute to
Why do we need the html5 canvas element, when the same can be achieved
I'm having a problem trying to add a custom HTML5 data attribute to the
I am kind of stumped because, I want to format the value and add
How can I add an attribute into specific HTML tags in jQuery? For example,
I want to add an onclick attribute to the submit button of the media.php
Quote from Head first html: You can add padding to the top and bottom
I'm creating a web page, and I can't (with html code) add a draw

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.