general Flashcards
(8 cards)
1
Q
What is a hero image?
A
- the oversized banner image at the top of the website
2
Q
What is non-semantic html?
A
- DIV, SPAN
- tells nothing about the content
3
Q
What is semantic html?
A
article aside details figcaption figure footer header main mark nav section summary time
4
Q
give semantic html format of a standard page
A
header
nav
section / article / aside
footer
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
6
Q
explain the http request methods
A
get
post
put
delete
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
8
Q
create a generic function in TypeScript
A
interface someProps {
id: string,
}
function testFunc<*T>(someObj: T) { return someObj; }