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

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

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

  • max-width (correct)
  • min-height
  • width
  • min-width

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

  • transform (correct)
  • filter
  • animation
  • transition

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

  • color
  • border-image
  • box-shadow (correct)
  • opacity

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

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

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

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

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

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

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

<p>em (B)</p> Signup and view all the answers

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

<p>Class selector (D)</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 (B)</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 (B)</p> Signup and view all the answers

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

<p>vw (C)</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 (A)</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 (D)</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 (B)</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 (A)</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 (B)</p> Signup and view all the answers

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

<p>border (A)</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 (B)</p> Signup and view all the answers

Flashcards are hidden until you start studying

Use Quizgecko on...
Browser
Browser