Looks like no one added any tags here yet for you.
Inline style
Places CSS declaration inside an element’s style attribute.
Embedded stylesheet
Places CSS rules in an HTML document’s head using a <style> element.Â
External stylesheet
Places CSS rules in a separate file that is imported into an HTML document with a <link> element.Â
Inline Stylesheet
styles are defined directly within an HTML tag using the style attribute.Â
Embedded stylesheet
Called upon in HTML file in between <script> tags
External stylesheet
stored in a separate .css file, which is linked to the HTML file using the <link> element in the <head> section.Â
Cascade
conflicting styles are resolved based on their order and importance.Â
Specificity
CSS rule is applied by assigning a selector type (element, class, ID, inline).Â
Inheritance
the process by which certain properties are passed down from parent elements to child elements.Â
Write CSS to change the font color of all <h1>
elements to purple.
h1 { color: purple; }
Write CSS to change the background color of all elements with the class .highlight
to yellow.
.highlight {
background-color: yellow;
}
Write CSS to change the text color of the element with the ID #footer
to white and the background color to black.
#footer { color: white; background-color: black; }
Write CSS to remove all margins and padding from all elements on the page.
* { margin: 0; padding: 0; }
What is the universal selector?
* asterisk is the universal selectorÂ
Multiple selectors
Using a comma , to separate selectors, matches all listed elements to apply the same styles.
Child selector
using greater than > character, matches any elements where the second element is a direct child of the first element.
Color property
changes the text colorÂ
background-color
roperty specifies the background color, background-color: LightSkyBlue;Â
background-image
property specifies a background image, background-image: url('clouds.png');Â
display property
controls the layout of the element on a webpage.
CSS variable
a custom CSS property that defines a value.Â
Float properties
used to position elements to the left or right of their container, allowing text and inline elements to wrap around them.Â
Clear properties
used to prevent elements from wrapping around floated elements. It is often applied to an element following a floated elementÂ
box model
defines the layout and structure of an element as a rectangular box consisting of four areas: content, padding, border, and margin.
Text box model - div
div {Â
 width: 300px;Â
 padding: 20px;Â
 border: 5px solid black;Â
 margin: 10px;Â
}Â
Image box model - img
img {Â Â
           width: 100px; Â
           padding: 10px; Â
           border: 2px solid gray; Â
           margin: 15px;Â
      }Â
What is the purpose of CSS validation?
to make sure the CSS is following the correct syntax rules and ensure that your styles are correctly written and are compatible with all browsers.Â
website accessibility
The practice of making a website usable by people of all abilities and disabilities. The designing and developing of a website that can accessed and interacted with by everyone.Â
importance of considering website accessibility when developing a website?
Equal access, Wider audience reach, Better user experience, and Enhanced SEO and usability.
Common things to consider when addressing website accessibility?
Color contrast, Text alternatives, Clear and simple language, proper HTML, and Form Accessibility.
Website usability
crucial to create a functional website that helps have a better user experience and customer satisfaction and provides lasting value to visitors. Improve page load speed.
ways to test website usability?
Gather User’s feedback to understand users’ needs a preference.Â
Fluid layout
Use percentage-based widths, meaning elements resize relative to the browser window or viewport size.Â
Fixed layout
Use specific pixel values to set the width of elements, keeping them constant regardless of the screen size.Â
Flexbox
provides an efficient way to lay out elements in a container, so the elements behave predictably when the container is resized or viewed on different screen sizes. Â
purpose of a flexbox
Create a flexible, efficient way to arrange and align elements within a container. The layout can be dynamic or need to respond to different screen sizes.Â
Grid layout
Layout mode that divides a webpage into a rectangular grid in which to position page elements. Ideal for designing two-dimensional webpage layouts.Â
Four position properties
Static, Relative, Absolute, Fixed
Static
The default positioning for all elements.Â
Relative
positions the element relative to the element's default position.Â
Absolute
positions the element relative to the nearest positioned ancestor.Â
Fixed
positions the element relative to the viewport in a fixed location.Â
Viewport
the visible area of a webpage.Â
Top two mobile web browsers
Safari and Chrome.
mobile websites using three main techniques?
Seperate website, Dynamic Serving, and Responsive web design
Separate websites
Two different websites are created, one for desktop and one for mobile.Â
Dynamic Serving
The same URL is requested by both desktop and mobile web browsers.Â
Responsive web design
The web server sends back the same HTML to both desktop and mobile browsers.Â
Responsive
smoothly adjust the width of the container to fit the browser width.
Adaptive
adapts to the width of the browser at specific widths.Â
Screen emulator
Software tool that mimics the display, behavior, and functions of various devices, such as smartphones, tablets, or computers.
Media queries
apply different CSS styles depending on the screen width, height, resolution, orientation, and more.Â
Why are media queries used in web development?
to create responsive designs that adapt to different devices and screen sizes.Â
What is JavaScript?
High-level programming language for adding interactivity to web pages. Responds to user actions and changes content without page reloads.Â
what ways can you add JS to a website?Â
Inline, Internal, External
Document Object Model (or DOM)?
A data structure that represents all parts of an HTML document. The JavaScript object document represents the entire DOM and is created from the document's HTMLÂ
Inline
Inside HTML elements.
Internal
In <script> tags within HTML.Â
External
Linked .js file for reusable, organized code.
String
Text (e.g., "Hello").Â
Number
Numerical values (e.g., 42, 3.14).Â
Boolean
True or false (e.g., true, false).Â
Array
Ordered list of values (e.g., [1, 2, 3]).Â
Object
Collection of key-value pairs (e.g., {name: "John", age: 30}).