HTML: Display:none does this allow multiple ID-Attributes with same name (when "hidden")?
- by Jan
Hello,
according to the HTML Standards ID-Attributes of any HTML Tag in a webpage have to be unique in the document!?
Does this rule also apply to HTML Tags that have been "disabled/hidden" by using: display:none?
Example:
<html>
<body>
<div id="one"></div>
<div id="one" style="display:none;"></div>
</body>
</hmtl>
Is this valid HTML or not. So the question is do "display:none"= hidden Elements also "count/matter" in regard to the rule only having unique ID-Attributes in a single webpage?
Thanks
Jan