• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

Coding Css Exam Questions And Correct Answers

Document preview thumbnail
Preview 2 out of 7 pages

CODING CSS EXAM QUESTIONS AND CORRECT ANSWERS CSS stands for - CORRECT ANSWERcascading style sheets CSS describes: - CORRECT ANSWERhow HTML elements are to be displayed

Content preview

CODING CSS EXAM QUESTIONS AND CORRECT ANSWERS
CSS stands for - CORRECT ANSWER✅✅✅cascading style sheets



CSS describes: - CORRECT ANSWER✅✅✅how HTML elements are to be displayed



External stylesheets are stored in - CORRECT ANSWER✅✅✅CSS files



what problem did CSS solve - CORRECT ANSWER✅✅✅when tags were introduced to HTML it made
adding fronts and colors to every page a long and expensive process. CSS removed the style formatting
from the HTML page.



CSS selector and declaration - CORRECT ANSWER✅✅✅h1 (selector) {color:blue} (declaration)

selector points to the HTML element you want to style.

declaration block includes a CSS property name and a value.



element selector - CORRECT ANSWER✅✅✅selects elements based on the element name. Ex:

select all <p> elements like this:

p {declaration}



id selector - CORRECT ANSWER✅✅✅uses the id attribute of an HTML element to select a specific
element. Example:

id="para1" would be shown as

#para1 {declaration}



class selector - CORRECT ANSWER✅✅✅selects elements with a specific class attribute. Example:

class="center" would be shown as

.center {declaration}



grouping selectors - CORRECT ANSWER✅✅✅show like so:

, h1, h2, p {declaration}



CSS comments - CORRECT ANSWER✅✅✅starts with /* and ends with */



Three ways to insert CSS - CORRECT ANSWER✅✅✅external style sheet, internal style sheet and
Inline style



External style sheet - CORRECT ANSWER✅✅✅each page must include a reference to the external
style sheet file inside a <link> element inside the <head> section.

style sheet must be saved with a .css extension.



Internal style sheet (where) - CORRECT ANSWER✅✅✅may be used if one single page has a unique
style.

defined within the <style> element, inside the <head> section of a page



Inline styles - CORRECT ANSWER✅✅✅may be used to apply a unique style for a single element.

to use inline styles, add the style attribute to the relevant element.



which element is used for multiple style sheets - CORRECT ANSWER✅✅✅if some properties had
been defined for the same sector in different style sheets, the value from the last read style sheet will be
used.



What style will be used when there is more than one style specified for an HTML element? - CORRECT
ANSWER✅✅✅Inline style then external and internal style sheets then browser default.



Colors in CSS are specified by: - CORRECT ANSWER✅✅✅a valid color name (red), an RGB value (ex.
"rgb(255, 0, 0)"), a HEX value (#ff0000)



CSS background properties: - CORRECT ANSWER✅✅✅color, image, repeat, attachment, position

Document information

Uploaded on
May 4, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
STANGRADES
3.3
(15)
Sold
102
Followers
2
Items
12022
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions