Forum Moderators: not2easy
Can you tell me everything you can use in the <div> tag with css?What properties can a div have? Class and id, basically, plus anything script-related like "onclick". (There are enormously long lists at w3schools [w3schools.com] and at mozilla [developer.mozilla.org], among other places. But 98% of those items you will never use--most have to do with various categories of forms or input--so it's hardly even worth looking.)
Can you tell me everything you can use in the <div> tag with css ?This question may really be backward. The <div> element--and its counterpart the <span> for inline stuff--exists purely as something to hang CSS onto. It has no independent meaning. If, for example, you want a whole series of paragraphs all to have certain styling features in common, you don't assign the same class to each one separately. Instead you assign a class to the div, and then you have the two options
How are you suppose to experimentI’m reminded of the children who sit down at the game table in my local library and then ask their parents to show them how to put a puzzle together. Sorry, kid, but the whole point of a puzzle is that you do it yourself. Otherwise it isn’t a puzzle. And if someone tells you step by step what to do, it isn’t experimenting.