Please answer the following questions for the two CSS example codes given in the end.
- What is the difference between the two codes? One is starting with dot and one with hash.
- How can I call these styles into HTML? Should I use
class="searchwrapper"or should I useid="searchwrapper"? And why, what is the difference?
Example 1: Starting with #[hash]
#searchwrapper {
/*some text goes here*/
}
Example 2: Starting with .[dot]
.searchbox {
/*some text goes here*/
}