





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A series of exercises and answers related to html and css. It covers topics such as image manipulation, gradients, transformations, shadows, and responsive design. Useful for students learning web development and provides practical examples to reinforce their understanding of these concepts.
Typology: Exams
1 / 9
This page cannot be seen from the preview
Don't miss anything!






Provide code to create a figure box containing the logo.png image file, no alt text, and a caption with the text Tree and Book. - ANSWER
Tree and Book
What is the difference between a vector image and a bitmap image? - ANSWERA vector image is expressed in terms of points joined by geometrical constructs such as lines, and can be resized without any loss of resolution. SVG (Scaleable Vector Graphics) images are an example of vector images. A bitmap image is expressed by storing the colours of each individual pixel in the image, and becomes jagged when it is increased in size (so that you can see the individual dots). JPG, PNG, and GIF files are examples of bitmap images.
Create a linear gradient that moves at a 15 degree angle with the color orange stopping at 10% of the background, yellow stopping at 50%, and green stopping at 55%. - ANSWERlinear-gradient(15deg, orange 10%, yellow 50%, green 55%);
Provide the code to use the sidebar.png file as the background image for the page body. Have the image placed in the top-left corner of the page and tiled only in the horizontal direction. - ANSWERbody { /* background-image: url('sidebar.png'); / / background-position: left top; <-- could be left out, since this is the default setting for browsers / / background-repeat: repeat-x; / / or using the background shortcut: */ background: url('sidebar.png') left top repeat-x; }
Create a radial gradient that extends to the farthest background corner, going through the colors orange, yellow, and green. - ANSWERradial-gradient(farthest- corner, orange, yellow, green);
Create a style rule for the header element that fills the header background with tiled images of the back.png, but only over the element content. - ANSWERheader { background-image: url('back.png'); background-repeat: repeat; /* default, so could be left out */ background-clip: content-box; }
Create a repeating circular gradient of orange, yellow, and green bands centered
at the right edge of the element with the colors stopped at 10%, 20%, and 30% respectively. - ANSWERrepeating-radial-gradient(circle at right center, orange 10%, yellow 20%, green 30%);
Provide code to create a table row with three header cells containing the text: Morning, Afternoon, and Evening. - ANSWER Morning Afternoon Evening
A table data cell contains the text Monday and should stretch across two rows and three columns. Provide the HTML code for the cell. - ANSWERMonday
What are the three primary parts of responsive design theory? - ANSWERThe three primary parts of responsive design are: i. Flexible layout - so the layout changes as the browser/screen width changes ii. Responsive images - so images resize as the browser/screen width changes iii. Media queries - so that style rules can be applied to specific devices
What are the only CSS properties that can be applied to columns and column groups? - ANSWERThe only CSS properties that can be applied to columns and column groups are background, width, borders, and visibility.
In the case of conflicting styles, which has the higher precedence: the style of the row group or the style of the column group? - ANSWERIn the case of conflicting styles, the row group style has precedence over the column group style.
Two table cells have adjacent borders. One cell has a 5-pixel-wide double border and the other cell has a 6-pixel-wide solid border. If the table borders are collapsed,
flex: 1 1 0px; }
Provide code to create a table row with three data cells containing the text Tompkins, Ramirez, and Davis. - ANSWER Tompkins Ramirez Davis
Provide a style rule to display all table elements with collapsed borders. - ANSWERtable { border-collapse: collapse; }
Provide the style rule to display all table captions at the lower-left corner of the table. - ANSWERcaption { caption-side: bottom; text-align: left; }
Provide code to create a column group in which the first two columns belong to the introCol class and the next three columns belong to the col1, col2, and col classes respectively. - ANSWER