Flashcards
CSS
Flashcards do conjunto (11)
- 1What is the role of CSS within XML?To apply processing rules (semnatics) to XML documents.
- 2What is the processing instruction for linking an external CSS document into XML?
- 3What are selectors?These point to the tags/attributes to style within the XML.
- 4What are declarations?These describe how to style the item and change the visual properties.
- 5What is the formatting difference between these two CSS statements? film > genre {color: blue} film date {colour:blue}The first is a child selector, and will only change the colour of the immediate children.
The last is a descendant selector, and will change the colour of any descendants (e.g. child's child's child). - 6What is the difference between a psuedo element and a psuedo class?Psuedo elements are determinded by structural information.
Psuedo classes respond to the user's actions. - 7Give an example of a psuedo element.selector::before {}
selector::after{}
selector::first-line{}
etc. - 8Give an exmaple of a psuedo class.a:hover
a:visited
a:active
etc. - 9Describe how to change the colour of all the DVDs in the Horror Genre. Sawdvd[genre = horror] {
colour : red
} - 10Using the previous example, write CSS place all DVD elements into a box. What word needs to be changed to avoid a new box?dvd{
display:block
}
'Block' changes to 'inline' to avoid a new box. - 11What are three drawbacks of CSS?No restructuring data (i.e. no ordering).
No content removal (code security/privacy issues).
No computation (cannot enumerate data).
Informações
- Descrição
- BSc Web Computing FlashCards sobre CSS, criado por Olivia Thorne em 06-01-2016.
- Criado por
- Olivia Thorne
- Visualizações
- 2
- Avaliação