Alex Rivera | Logout

Closing tag with ID property

Asked 2012-01-16T22:12:57.237
13

Question: If I close any html tag in this fashion (Including the id property):

<div id="tagid" >...more html
...
</div id="tagid" >

Will it affect the page, or won't like it, or disrupt any W3C rules...how can I put it...will it affect in any way?

Why?: Simply personal preference.
Instead of writing additional comments next to the tag, I simply add the id to help me know WHAT tag is closed -The tag is closed any way, so I guess it won't do anything (or so I think)

PS. FYI, I am a beginner

Edit
Report

1 Answer

1

In HTML/XML attributes may only be placed in the start tag of an element. You're producing invalid html.

answered 2012-01-16T22:18:49.713

Your Answer