general Flashcards

1
Q

What is a hero image?

A
  • the oversized banner image at the top of the website
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is non-semantic html?

A
  • DIV, SPAN

- tells nothing about the content

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

What is semantic html?

A
article
aside
details
figcaption
figure
footer
header
main
mark
nav
section
summary
time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

give semantic html format of a standard page

A

header

nav

section / article / aside

footer

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

can you explain accessibility and why it matters?

A
  • screen readers - the html matters alot for them to read it properly for the blind
  • color blind
  • what devices will it be read on
  • font size
  • tabbing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

explain the http request methods

A

get
post
put
delete

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

How can you make a website faster?

A
  • minify your files during production
  • reduce image file size (tinyPNG for example)
  • lazy loading. in react with suspense and ??
  • srcset for images
  • check all file sizes in browser editor
  • in react utilize memo/usememo/usecallback and no-prop drilling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

create a generic function in TypeScript

A

interface someProps {
id: string,
}

function testFunc<*T>(someObj: T) {
  return someObj;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly