posted 13 years ago
I thought using <div id="xyz"> helps group html elements on a page.
1. If inside the <div id="xyz"> I need to put a few different sub-elements like <input id="abc"> , <select id="def">, etc. Then what's good about using <div> at all ? I mean, anyway I am going to use the id for each subelement.
2. If you apply a stylesheet to <div id="xyz"> , does it mean this style sheet will be applied to *every* elements inside this <div> ?