Jose Hernandez CIS 212 Lab 08

advertisement
Jose Hernandez
CIS 212
Lab 08
Selectors tell the browser which XHTML element to style. You can include more than
one selector in a CSS rule, so that it can become easier and less of a hassle to style.
At first I found it difficult to learn how to use CSS. But now that I’ve been reading about
it and learning the techiniques for CSS, it’s kind of becoming easier and easier to use. If a
website contains a lot of pages it is easier to just link the CSS file to the website instead of doing
it one by one or including the style within each html index.
Class selector are defined using a period and can be assigned to as many elements we
want. The ID selector in the other hand can only be assigned to a specific or a single element.
Descendant selectors as the word descendant says the are selectors that match all elements that
are descendant of a specified element. Like the child then the parent then the grandpa, the child
is the descendant.
The html index does not include style rules but links and selectors taken from the CSS
file. This makes for a cleaner and more understandable html file. A lot of things are new to me
such as some of the properties and their values, but it’s something that will take practice to learn.
Download