Doubt in CSS selector
Hello sir, I have doubt in Try It Out: Styling the Planet Wrox Home Page in Pg no.77, chapter3.In this, Styles.css consists of
1.heading---Type Selector
2.*---Universal Selector
3.h1---Type Selector
4.#PageWrapper---Id Selector
5.nav---Type Selector
6.Section#MainContent---Id Selector
7.aside---Type Selector
8.footer---Type Selector
Questions:
1.Why can't we use all Selector(except Universal Selector) as a Type Selector?
2.we give id for aside tag in markup but we used just Type Selector in CSS?
3.Why we use Section#MainContent instead of just #MainContent(as Id Selector)?
4.I don't understand the usage of Id Selector Beyond the other three Selector?
Thanks In Advance.
|