Michael Agnew Test 2 Review Guide Javascript and CSS

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

Inline style

1 / 63

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

64 Terms

1

Inline style

Places CSS declaration inside an element’s style attribute.

New cards
2

Embedded stylesheet

Places CSS rules in an HTML document’s head using a <style> element. 

New cards
3

External stylesheet

Places CSS rules in a separate file that is imported into an HTML document with a <link> element. 

New cards
4

Inline Stylesheet

styles are defined directly within an HTML tag using the style attribute. 

New cards
5

Embedded stylesheet

Called upon in HTML file in between <script> tags

New cards
6

External stylesheet

stored in a separate .css file, which is linked to the HTML file using the <link> element in the <head> section. 

New cards
7

Cascade

conflicting styles are resolved based on their order and importance. 

New cards
8

Specificity

CSS rule is applied by assigning a selector type (element, class, ID, inline). 

New cards
9

Inheritance

the process by which certain properties are passed down from parent elements to child elements. 

New cards
10

Write CSS to change the font color of all <h1> elements to purple.

h1 { color: purple; }

New cards
11

Write CSS to change the background color of all elements with the class .highlight to yellow.

.highlight {
background-color: yellow;
}

New cards
12

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; }

New cards
13

Write CSS to remove all margins and padding from all elements on the page.

* { margin: 0; padding: 0; }

New cards
14

What is the universal selector?

* asterisk  is the universal selector 

New cards
15

Multiple selectors

Using a comma , to separate selectors, matches all listed elements to apply the same styles.

New cards
16

Child selector

using greater than > character, matches any elements where the second element is a direct child of the first element.

New cards
17

Color property

changes the text color 

New cards
18

background-color

roperty specifies the background color, background-color: LightSkyBlue; 

New cards
19

background-image

property specifies a background image, background-image: url('clouds.png'); 

New cards
20

display property

controls the layout of the element on a webpage.

New cards
21

CSS variable

a custom CSS property that defines a value. 

New cards
22

Float properties

used to position elements to the left or right of their container, allowing text and inline elements to wrap around them. 

New cards
23

Clear properties

used to prevent elements from wrapping around floated elements. It is often applied to an element following a floated element 

New cards
24

box model

defines the layout and structure of an element as a rectangular box consisting of four areas: content, padding, border, and margin.

New cards
25

Text box model - div

div { 

  width: 300px; 

  padding: 20px; 

  border: 5px solid black; 

  margin: 10px; 

} 

New cards
26

Image box model - img

img {  

            width: 100px;  

            padding: 10px;  

            border: 2px solid gray;  

            margin: 15px; 

       } 

New cards
27

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. 

New cards
28

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. 

New cards
29

importance of considering website accessibility when developing a website?

Equal access, Wider audience reach, Better user experience, and Enhanced SEO and usability.

New cards
30

Common things to consider when addressing website accessibility?

Color contrast, Text alternatives, Clear and simple language, proper HTML, and Form Accessibility.

New cards
31

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.

New cards
32

ways to test website usability?

Gather User’s feedback to understand users’ needs a preference. 

New cards
33

Fluid layout

Use percentage-based widths, meaning elements resize relative to the browser window or viewport size. 

New cards
34

Fixed layout

Use specific pixel values to set the width of elements, keeping them constant regardless of the screen size. 

New cards
35

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.  

New cards
36

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. 

New cards
37

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. 

New cards
38

Four position properties

Static, Relative, Absolute, Fixed

New cards
39

Static

The default positioning for all elements. 

New cards
40

Relative

positions the element relative to the element's default position. 

New cards
41

Absolute

positions the element relative to the nearest positioned ancestor. 

New cards
42

Fixed

positions the element relative to the viewport in a fixed location. 

New cards
43

Viewport

the visible area of a webpage. 

New cards
44

Top two mobile web browsers

Safari and Chrome.

New cards
45

mobile websites using three main techniques?

Seperate website, Dynamic Serving, and Responsive web design

New cards
46

Separate websites

Two different websites are created, one for desktop and one for mobile. 

New cards
47

Dynamic Serving

The same URL is requested by both desktop and mobile web browsers. 

New cards
48

Responsive web design

The web server sends back the same HTML to both desktop and mobile browsers. 

New cards
49

Responsive

smoothly adjust the width of the container to fit the browser width.

New cards
50

Adaptive

adapts to the width of the browser at specific widths. 

New cards
51

Screen emulator

Software tool that mimics the display, behavior, and functions of various devices, such as smartphones, tablets, or computers.

New cards
52

Media queries

apply different CSS styles depending on the screen width, height, resolution, orientation, and more. 

New cards
53

Why are media queries used in web development?

to create responsive designs that adapt to different devices and screen sizes. 

New cards
54

What is JavaScript?

High-level programming language for adding interactivity to web pages. Responds to user actions and changes content without page reloads. 

New cards
55

what ways can you add JS to a website? 

Inline, Internal, External

New cards
56

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 

New cards
57

Inline

Inside HTML elements.

New cards
58

Internal

In <script> tags within HTML. 

New cards
59

External

Linked .js file for reusable, organized code.

New cards
60

String

Text (e.g., "Hello"). 

New cards
61

Number

Numerical values (e.g., 42, 3.14). 

New cards
62

Boolean

True or false (e.g., true, false). 

New cards
63

Array

Ordered list of values (e.g., [1, 2, 3]). 

New cards
64

Object

Collection of key-value pairs (e.g., {name: "John", age: 30}).

New cards

Explore top notes

note Note
studied byStudied by 352 people
... ago
5.0(1)
note Note
studied byStudied by 44 people
... ago
4.0(1)
note Note
studied byStudied by 34 people
... ago
4.5(2)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 141 people
... ago
4.3(7)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 24 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(3)

Explore top flashcards

flashcards Flashcard (102)
studied byStudied by 23 people
... ago
5.0(1)
flashcards Flashcard (31)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (71)
studied byStudied by 26 people
... ago
5.0(1)
flashcards Flashcard (230)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (82)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 97 people
... ago
5.0(1)
flashcards Flashcard (404)
studied byStudied by 4 people
... ago
5.0(3)
robot