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
No this is not valid.
While it might not break your code, it could!
You should just use the comments
</div> <!-- closing main content div -->After checking, this
<div></div id="tagid" >breaks in the validator
http://validator.w3.org/#validate_by_input
Although not specifically mentioned as illegal, the HTML spec only mentions
attributesas appearing within the start tag:http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2