2

Although the Google Chrome developer tools show the properties of a selected element, it doesn't list the attributes.

Am I missing something?

Randomblue
  • 105,985
  • 138
  • 338
  • 537

2 Answers2

4

Under properties, click the top expandable menu. It should have all the attributes.

mowwwalker
  • 15,446
  • 25
  • 95
  • 152
  • Aha. So the set of attributes is a property! Is that correct? – Randomblue Sep 28 '11 at 19:57
  • 1
    Not exactly. There have been a few questions and discussions about this today though. http://stackoverflow.com/questions/7588846/when-to-access-the-attribute-vs-the-property and http://stackoverflow.com/questions/5874652/prop-vs-attr – mowwwalker Sep 28 '11 at 21:06
1

Just right click on the element you want to inspect and choose "Inspect element". In the bottom panel select Elements tab. It will show the DOM element with the attribures in the form of HTML.

mateusz.fiolka
  • 2,914
  • 2
  • 22
  • 24