Web Design Flashcards

1
Q

Design Principles for Every Type of Site?

A
  1. Balance: symmetric & asymmetric
  2. White Space or empty space. room to breathe and focus on the content.
  3. grids: splits a page into columns and rows
  4. Color
  5. Graphics: help support the content ( optimize your images so that they don’t delay your site with long loading times.)
  6. Typography
  7. Consistency: cohesive experience by maintaining the same style or design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

5 Stages of the Web Development Process

A
  • Step 1. Design: color schemes, function, special features ( like e-commerce), graphic videos de overall look UI
  • Step 2. Review: After the team has worked and go through the design process. It is time to show the client ( will provide feedback to implement)
  • Step 3. Develop: once approved . it is toem for the website to go to the developer side. Meanwhile someone works in the ux writter to give a tone and a voice
  • Step 4. Test once the website have been coded by the developer team. It is time to review the website in the serve( live version of the website). Usually there are a few tweaks that need to be made at this stage before the site is finalized.
  • Stept 5. Launch: Once everything is approved and check is time to launche the site. that includes (setting up the hosting and domain)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Responsive Web Design?

A
  • Responsive web design makes your web page look good on all devices.
  • Responsive web design uses only HTML and CSS.
  • Responsive web design is not a program or a JavaScript.
  • Web pages should not leave out information to fit smaller devices, but rather adapt its content to fit any device: to resize, hide, shrink, enlarge, or move the content to make it look good on any screen.

https://www.w3schools.com/css/css_rwd_intro.asp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Media queries

A

Media queries allow web developers to create responsive designs that adapt to different devices, screen sizes, and viewing environments.
For mobile:
@media only screen and (max-width: 600px) {
/* For mobile: * }
For tablet
@media only screen and (min-width: 601px) /* For Tablet: * }
For Desktop
@media only screen and (min-width: 768px) { /* For Desktop: */}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Grids

A

The CSS Grid Layout Module offers a grid-based layout system, with rows and columns, making it easier to design web pages without having to use floats and positioning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

CSS Flexbox

A

Flex box Layout Module, makes it easier to design flexible responsive layout structure without using float or positioning.

**Block

Before the Flexbox Layout module, there were four layout modes:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Key Concepts and properties of flexbox General

A
  1. Display: Flex or inline-flex This enables the container to control the layout of its child elements.
  2. Flex Items: The elements inside a flex container are called flex items. By default, flex items will align themselves along a single row (flex-direction: row) and adjust their size to fit the container.
  3. Flex-direcction: determines the direction of the main axis along which flex items are laid out. It can be set to row (default), column, row-reverse, or column-reverse to change the direction.
  4. Justifiy-Content: It allows you to distribute the items and adjust their spacing. Common values include flex-start, center, flex-end, space-between, space-around, and space-evenly.

Align Items and Align Content:
1. Align items: items along the cross axis (perpendicular to the main axis).
1. Align content: the alignment of multiple lines of flex items.

  1. Flex flow = wrap:property allows you to control whether flex items should wrap onto multiple lines when depending on the size.
  2. Flex Grow, Shrink, and Basis:
  3. Flex grow: specifies how much an item can grow relative to other items,.
  4. Flex shrink: controls how much it can shrink
  5. **Flex basis: **sets the initial size of the item
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Flexbox Properties (Parent)

A

Flex Direction
row|row-reverse|column|column-reverse|initial|inherit;
Flex wrap
nowrap|wrap|wrap-reverse|initial|inherit;
flex-flow:
flex-direction flex-wrap|initial|inherit;
justify-content:
flex-start|flex-end|center|space-between|space-around|space-evenly|initial|inherit;
Align items
normal|stretch|positional alignment|flex-start|flex-end|baseline|initial|inherit;
* Align-content: stretch|center|flex-start|flex-end|space-between|space-around|space-evenly|initial|inherit;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Flexbox Properties (Children)

A

order number|initial|inherit;
flex-grow number|initial|inherit;
flex-shrink number|initial|inherit;
flex-basis number|auto|initial|inherit;
flex flex-grow flex-shrink flex-basis|auto|initial|inherit;
align-self: auto|stretch|center|flex-start|flex-end|baseline|initial|inherit;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

html semantics

A
  • Semantic elements = elements with a meaning.
  • A semantic element clearly describes its meaning to both the browser and the developer.
  • Examples of non-semantic elements: Tells nothing about its content.ej div or spam
  • Examples of semantic elements: Clearly defines its content. header form, section
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Semantic Elements in HTML

A
  • article it self-contained content. meaning it make sense on its own. can be move around the website blog, post, porduct cars, user comments
  • aside defines some content aside from the content it is placed in (like a sidebar). content should be indirectly related to the surrounding content.
  • details
  • figCaption same as figure but witth a label
  • figurecontent, like illustrations, diagrams, photos, code listings, etc.
  • footer typically contains : authorshio info, copytight info, contact info, sitemao, back to top links, related documents… (You can have several footer> elements in one document)
  • header container for introductory contetn or a set of navigation links. typically contains( 1o 2 heading, logo, authoreship info)
  • main
  • mark Defines marked/highlighted text
  • nav defines a set of navigation links.
  • Section is a groups of elements tyoically with a heading like a module. A webpage can be split into senction for intri, content, contact… para agrupar elementos para organizar
  • summaryDefines a visible heading for a details> element
  • Time Defines a date/time

Note: You can have several header> elements in one HTML document. However, header> cannot be placed within a footer>, address> or another header> element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Nesting article in section or Vice Versa?

A

So, you will find HTML pages with section> elements containing <article> elements, and article> elements containing <section> elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Specificity?

A

Think of specificity as a score/rank that determines which style declaration is ultimately applied to an element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Specificity Hierarchy

A

There are four categories which define the specificity level of a selector:

Inline styles - in the htmlExample: h1 style=”color: pink;”>
IDs - Example: #navbar
Classes, pesudo-classes, attribute selectors- Example: .test, :hover, [href]
Elements and pseudo elements - Example: h1, ::before

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How to Calculate Specificity?

A

The specificity of A is 1 (one element selector ej: h1
The specificity of B is 101 (one ID reference + one element selector) ej: h1 #content
The specificity of C is 1000 (inline styling ej: h1 id=”content” style=”color: pink;”>Heading/h1> (this one has the hifhestspecificity value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

More Specificity Rules Examples

A

Equal specificity: the latest rule wins ambos son clases la última vale
ID selectors have a higher specificity
Contextual selectors are more specific than a single element selector (the latter rule will be applied.)

17
Q

CSS Selector

A
  • .class:Selects all elements with class
  • .class1.class2 select both classes
  • # id: Selects the element with id
    • Select all elements
  • element: ej p,Selects all <p> elements
  • Element.class: ej: p.intro Selects all <p> elements with class=”intro”
  • Element, element: div, p : Selects all <p> elements inside <div> elements
  • Element>element: div>p, Selects all <p> elements where the parent is a <div> element
  • element+element: div + p, Selects the first <p> element that is placed immediately after <div> elements
    *element1~element2: p ~ ul Selects every <ul> element that is preceded by a <p> element

more info with all the css selector at https://www.w3schools.com/cssref

https://www.w3schools.com/cssref/css_selectors.php

18
Q

What area consists of content that is directly related to and/or expands upon the central topic of a document.

A

main section

19
Q

Aria

A

is for elements that need to be accesible. aria va donde se pone el nombre del id o de la clase de los botnes por

20
Q

Index a file

A

using robot metatag

21
Q

OG metadata

A