Docsity

CSS Selectors and Properties: A Comprehensive Guide, Exams of Chemistry

Toggle sidebar
bg1
C777 Unit 2: Cascading Style
Sheets (CSS) exam test 2023-2024
1. Element [attribute$=value] - Which selector targets every instance of a specified
HTML element whose specified attribute ends with the specified value?
2. element[attribute*=value] - Which selector targets every instance of a specified
HTML element whose specified attribute contains the specified substring value?
3. element[attribute^=value] - Which selector targets every instance of a specified
HTML element whose specified attribute begins with the specified value?
4. Element: checked - Which selector targets every checked instance of a specified
HTML element?
5. Element: disabled - Which selector targets every disabled instance of a specified
HTML element?
6. Element: enabled - Which selector targets every enabled instance of a specified
HTML element?
7. Element: first-of-type - Which selector targets every instance of a specified HTML
element that is the first of its parent?
8. Element: last-of-type - Which selector targets every instance of a specified HTML
element that is the last of its parent?
9. element1~element2 - Which selector targets every instance of element2 that is
preceded by an instance of element1?
10.background
11.Properties are in this order:
12.Background: big-color big-image position/big-size big-repeat big-origin big-clip
big-attachment initial inherit; - Which property allows you to set different
background properties in one declaration?
13.background-clip
14.Key values for this property:
15.border-box - extends behind the border
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download CSS Selectors and Properties: A Comprehensive Guide and more Exams Chemistry in PDF only on Docsity!

C777 Unit 2: Cascading Style

Sheets (CSS) exam test 2023-

  1. Element [attribute$=value] - Which selector targets every instance of a specified HTML element whose specified attribute ends with the specified value?
  2. element[attribute*=value] - Which selector targets every instance of a specified HTML element whose specified attribute contains the specified substring value?
  3. element[attribute^=value] - Which selector targets every instance of a specified HTML element whose specified attribute begins with the specified value?
  4. Element: checked - Which selector targets every checked instance of a specified HTML element?
  5. Element: disabled - Which selector targets every disabled instance of a specified HTML element?
  6. Element: enabled - Which selector targets every enabled instance of a specified HTML element?
  7. Element: first-of-type - Which selector targets every instance of a specified HTML element that is the first of its parent?
  8. Element: last-of-type - Which selector targets every instance of a specified HTML element that is the last of its parent?
  9. element1~element2 - Which selector targets every instance of element2 that is preceded by an instance of element1?
  10. background
  11. Properties are in this order:
  12. Background: big-color big-image position/big-size big-repeat big-origin big-clip big-attachment initial inherit; - Which property allows you to set different background properties in one declaration?
  13. background-clip
  14. Key values for this property:
  15. border-box - extends behind the border
  1. padding-box - extends to the inside edge of the border
  2. Content-box - extends to the edge of the content box - Which property specifies whether the background extends into the border or not?
  3. background-origin
  4. Key values for this property:
  5. padding-box - from the upper left corner of the padding edge
  6. border-box - from the upper left corner of the border
  7. Content-box - from the upper left corner of the content - Which property positions the background-image relative to an element's border, padding or content?
  8. background-size
  9. Key values for this property:
  10. length - specifies width and height in fixed units
  11. percentage - specifies width and height in in relation to the parent element
  12. cover - cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges
  13. Contain - resize the background image to make sure the image is fully visible - Which property defines the size of background images?
  14. Border-image - Which property creates a border that uses an image instead of a line?
  15. Border-radius - Which property defines the shape or curve of a border around an HTML element?
  16. Box-shadow - Which property applies shadows to edges of HTML elements to create visual depth?
  17. H-shadow and v-shadow - Which two values, are required to create a box- shadow.
  18. Opacity - Which property specifies transparency for an HTML element?
  19. Resize - Which property defines whether the user can resize an HTML element and how it can be resized?
  20. text-overflow - Which property cuts off, or clips, text that extends beyond its container?
  21. Text-shadow - Which property applies shadows to edges of text characters to create visual depth?
  22. @font-face - Which rule allows developers to specify custom fonts?
  1. Key values for this property:
  2. normal - Break words only at allowed break points
  3. Break-word - Allows unbreakable words to be broken - Which property specifies that long words in a text area may be broken without a hyphen and wrap to the next line?
  4. Transform - Which property applies a 2D or 3D transformation to an HTML element, including rotating, moving, skewing, scaling and so forth?
  5. Transform-origin - Which property allows you to change a transformed HTML element's position?
  6. Transform-style - Which property specifies whether child elements will retain the parent element's position in 3D space?
  7. Perspective-origin - which transform value, specifies the bottom position of a 3D element?
  8. Blackface-visibility - which transform value, defines whether an element is visible when it is rotated to face away from the viewer?
  9. Transform: Rotate (angle) - Which transform value, rotates the HTML element clockwise at the specified degree?
  10. Transform: scale (yeye) - Which transform value increases or decreases the size of the HTML element, based on specified parameters for width and height?
  11. Transform: scaleX (n) - Which transform value changes the HTML element's width.
  12. transform:scaleY(n) - Which transform value changes the HTML element's height?
  13. Transform: matrix (n, n, n, n, n, n) - Which transform value combines all of the 2D transform methods into one?
  14. Transform: translate (yeye) - Which transform value moves the HTML element from its current position, based on the specified parameters for the left and top position?
  15. Transform: TranslateX (n) - Which transform value, moves the HTML element horizontally?
  16. Transform: TranslateY (n) - Which transform value, moves the HTML element vertically?
  1. Transform: skew(x-angle, y-angle) - Which transform value turns or skews the HTML element to a specified angle, based on the specified parameters for the horizontal and vertical lines?
  2. transform:skewX(angle) - Which transform value turns or skews the HTML element to a specified angle along its X-axis?
  3. transform:skewY(angle) - Which transform value turns or skews the HTML element to a specified angle along its Y-axis?
  4. transform:rotateX(angle) - Which transform value rotates the HTML element around its X-axis at the specified degree?
  5. transform:rotateY(angle) - Which transform value rotates the HTML element around its Y-axis at the specified degree?
  6. Transform: rotateZ (angle) - Which transform value rotates the HTML element around its Z-axis at the specified degree.
  7. Transform: rotate3d(x, y, z, angle) - Which transform value defines a 3D rotation by specifying the degree for rotation for all axes?
  8. Transform: scale3d(x, y, z) - Which transform value increases or decreases the size of the HTML element, based on specified parameters for width, height and depth?
  9. Transform: scaleX(x) - Which transform value defines a 3D scale transformation by specifying a value for the X-axis.
  10. Transform: scaleY (y) - Which transform value, defines a 3D scale transformation by specifying a value for the Y-axis.
  11. Transform: scaleZ (z) - Which transform value defines a 3D scale transformation by specifying a value for the Z-axis.
  12. transform:translate3d(x,y,z) - Which transform value defines a 3D translation using specified parameters for positions on the X-axis, Y-axis and Z-axis?
  13. transform:translateX(x) - Which transform value defines a 3D translation using only the value for the X-axis?
  14. transform:translateY(y) - Which transform value defines a 3D translation using only the value for the Y-axis?
  15. Transform: translateZ (z) - Which transform value defines a 3D translation using only the value for the Z-axis.
  1. Animation: name duration timing-function delay iteration-count direction fill-mode play-state; - Which property combines all the animation properties, except animation-play-state?
  2. Animation-name - Which property specifies the identifier for the @key frames animation that binds it to a selector?
  3. Animation-duration - Which property specifies how long the animation will take to complete one cycle?
  4. Animation timing function - Which property specifies how an animation progresses over one cycle?
  5. Animation-delay - Which property specifies when the animation will begin?
  6. Animation-iteration-count - Which property specifies the number of times that the animation will play?
  7. Animation-direction - Which property specifies whether to play the animation in reverse on alternate cycles?
  8. Animation-play-state - Which property specifies whether the animation is running or paused?
  9. Appearance - Which property makes an HTML element look like a standard user interface element, such as a button or window?
  10. box-sizing
  11. Key values for this property:
  12. content-box - width and height includes only the content
  13. Border-box - width and height includes content, padding and border - Which property forces specified HTML elements fit an area in a certain way?
  14. Icon - Which property styles an HTML element with an iconic equivalent?
  15. Navy-down - Which property specifies where the cursor will navigate to when the user presses the arrow-down key?
  16. Navy-index - Which property specifies the tabbing order for an HTML element?
  17. Navy-left - Which property specifies where the cursor will navigate to when the user presses the arrow-left key?
  1. Navy-right - Which property specifies where the cursor will navigate to when the user presses the arrow-right key?
  2. Navy-up - Which property specifies where the cursor will navigate to when the user presses the arrow-up key?
  3. Outline-offset - Which property draws an outline beyond the border edge as specified.
  4. The element will display behind other elements. - What happens when you assign a negative z-index value to an element?
  5. Z-index - Which property specifies the stack order of an HTML element?
  6. Declaration - What consists of a property and a value?
  7. rule
  8. Example: body {background-color: #008080; color: #FFFFFF ;} - What is a format instruction that consists of a specified selector and the properties and values applied to it?
  9. selector - What is used to "find" the HTML elements you want to style with CSS?
  10. property - What is an attribute that can be customized to change the way the element renders in the browser?
  11. value - What is a specific selection for a property?
  12. Class selector - Which selector targets all elements with a specific HTML class attribute assigned.
  13. Id selector - Which selector targets one HTML element with a specific id attribute assigned.
  14. #my Element {color: blue ;} - How do you create an ID selector?
  15. Div {color: blue ;} - How do you create a tag selector?
  16. .my Element {color: blue ;} - How do you create a class selector?
  17. Pseudo selector - Which selector targets all HTML elements based on a certain state.
  1. Margin - Which property defines the transparent area outside of the border?
  2. Box model - What model configure the space around each HTML element?
  3. Vertical-align - Which property specifies the vertical alignment of an element?
  4. Formats every

    element that is preceded by an

    element as red text - What does this rule do?

  5. h3~p {color: red;}
  6. Cascading Style Sheets (CSS) - Which W3C technology is used to apply formatting instructions to markup language documents?