CSE125A Week 4 - CSS Recap & HTML, CSS, JavaScript Overview
18 Questions
0 Views
3.7 Stars

CSE125A Week 4 - CSS Recap & HTML, CSS, JavaScript Overview

Created by
@MagnanimousGrace

Questions and Answers

Which CSS property is used to set the maximum width of an element?

max-width

What CSS property is employed to change the perspective of 3D transformed elements?

transform

In CSS, which property is used to create a shadow effect around an element's box?

box-shadow

What type of CSS unit is 'em' an example of?

<p>Relative unit</p> Signup and view all the answers

Which CSS property sets the style of the four borders of an element?

<p>border-style</p> Signup and view all the answers

What does the 'z-index' property in CSS control?

<p>Element's position in the z-axis</p> Signup and view all the answers

Which CSS unit is relative to the font-size of the element?

<p>em</p> Signup and view all the answers

Which CSS selector targets different HTML elements using the same specific class attribute value?

<p>Class selector</p> Signup and view all the answers

What is the order of specificity for CSS selectors from least to most specific?

<p>Inline, ID, Class, Element</p> Signup and view all the answers

What is the result of the following CSS styles: main-heading { color: red; } and h1 { color: blue; }?

<p>The text will be red</p> Signup and view all the answers

Which CSS unit is relative to 1% of the width/height of the browser window?

<p>vw</p> Signup and view all the answers

Which CSS selector allows you to target a specific element by its id attribute regardless of its type?

<p>ID selector</p> Signup and view all the answers

What is the purpose of CSS in web development?

<p>To make websites look beautiful by styling HTML elements</p> Signup and view all the answers

Which property is used to set the font family of an HTML element in CSS?

<p>font-family</p> Signup and view all the answers

What does the CSS declaration margin: 10px; do?

<p>Sets all four margins (top, right, bottom, left) to 10 pixels</p> Signup and view all the answers

What is the purpose of the @font-face rule in CSS?

<p>To allow the use of custom fonts on a web page</p> Signup and view all the answers

Which CSS property is used to set the border style of an HTML element?

<p>border</p> Signup and view all the answers

What is the difference between padding and margin in CSS?

<p>Padding is the space between the content and the border, while margin is the space between the border and the outer edge of the element</p> Signup and view all the answers

Use Quizgecko on...
Browser
Browser