WGU Web Development Fundamentals (YZC1) – Flashcards
Unlock all answers in this set
Unlock answersquestion
parent element
answer
An element that encloses (or wraps) another element.
question
child element
answer
An element that is enclosed (or wrapped) within another element. The child element inherits CSS properties from the parent element.
question
external style sheet
answer
A separate document that contains CSS styles and is linked to from an HTML file. Correct way to create the link is . This is typically the first set of styles that are applied to a webpage and can be overridden by internal or inline styling.
question
internal style sheet
answer
This is a way of applying CSS to one specific document by using the tags in the of the HTML document. This is typically the second set of styles that are applied after the external style sheet and can be overridden by inline styling
question
inline styles
answer
This is a way of applying CSS to one specific HTML tag through the style attribute. This is applied last and always takes precedence over internal and external style sheets. Example:
question
tag selector
answer
Way to target elements in HTML using CSS. This will select elements based on existing HTML tags and will target all elements within a document. Example: p, h1, nav, footer. P would target all paragraph tags in the entire document.
question
class selector
answer
Way to target elements in HTML using CSS. This creates a named way to apply styles to multiple times in one document to multiple items. CSS rules are written as .className and applied to HTML using class="className". Class names are case sensitive.
question
ID selector
answer
Way to target elements in HTML using CSS. This creates a named way to apply styles to a unique item in each document. CSS rules are written as #idName and applied to HTML using id="idName". ID names are case sensitive.
question
padding
answer
Adds space inside an element. For example, if you have a
with a blue background and add 10px padding it will add 10px to each side of the box, that will extend the size of the blue background. Padding can be specified in four directions rotating clockwise. Example: margin:10px 5px 10px 5px; (top, right, bottom, left values)