I was looking at a website that used the following code. HTML page <div class="wall"> <div class="cent"> 1) Looks like the "wall" references the overall parameters of webpage size...WHY IS IT necessary to specify this anyway? Doesn't the BODY TAG take care of this? 2) Did a Search on "cent" tag and came up with nothing...Anyone know what its used for? Appreciate the input...and patience. I searched online for answers and came up with little... Hoping someone with expertise can share their knowledge.... thanks ~AC
It's a class, so the style is defined by the user. Searching for "cent" won't yield you any results as "cent" could be defined a thousand different ways by a thousand different developers. Google "CSS Class" to read up on the class selector.
^^Thanks! So its a "Class style tag"...so it can be anything i like from the css style sheet. If it was an "ID tag"...wouldn't that also apply? PS (appreciate the info...i'm bangin this stuff into my head at every free moment)
Yes that's correct. The difference is, ID's are unique and classes are not. So for example if you did: <div id="col"></div> Code (markup): You could only have that div once. However, if you did the same except: <div class="col"></div> Code (markup): You could have that multiple times on the same page.