M5 Flashcards
What is an SVG and some of its benefits/downsides?
SVG - scalable vector graphics
Shapes are defined using points joined up by lines rather than pixels.
Benefits: Supported by all major browsers Scalable without losing quality Can be manipulated with JS/CSS No need for extra http request
downsides:
But can be slow as browser has to draw it
What are the two components of a CSS animation?
A style describing the CSS animation.
A set of keyframes that indicate the start and end states of the animation’s style, as well as possible intermediate waypoints.
Why should we try to use CSS animations?
Modern browsers can optimise rendering, so we should always try to create our animations using CSS transitions/animations where possible.
What are CSS transitions?
CSS transitions provide a way to control animation speed when changing CSS properties.
What do CSS frameworks do?
Are designed to make writing CSS easier.
Fix many cross browser issues.
Provide responsive CSS.
Encourage code consistency and good practices
Describe boostrap?
Bootstrap is a free front-end framework Created by Twitter and originally named Twitter Blueprint.
Faster and easier web development
Bootstrap includes HTML and CSS based design templates
Bootstrap also gives you the ability to easily create responsive designs
Its default grid system has 12 responsive columns.
Is mobile-first.
What are CSS preproccessors and what is transpiling?
List some examples of CSS preprocessors.
CSS preprocessors allow us to introduce programming language-like constructs, such as functions, variables, conditionals, and more, into styles to keep them clean and efficient.
Web browsers can only understand HTML, CSS and JS.
The conversion into plain css is called transpiling - a type of translator taking the source code as its input and produces an equivalent in the same or different language.
Examples - sass, less, CSS crush, stylus
What is Sass and its features?
Sass - Syntactically Awesome StyleSheets
Sass is both a program(the preprocessor) and a syntax
Features -
Variables $,
Nesting,
Grouping by common css i.e font: family weight size etc,
@mixin and @include - a reusable set of properties which can also take an argument
Can be split into files and imported using @use.
You can tell Sass to watch your source files for changes, and re-compile the CSS each time you save.
What is an API?
API - some software that sends information back and forth between a website or app and a user.
What are browser APIs - give some examples?
Web browsers provide APIs that provide the ability to access/use code that is not native to your current language. I.e setTimeout, setInterval and fetch.
What is Postman?
A useful program for creating HTTP requests.
Allows you to try out/test different API URLs.
What are the accessibility principles?
POUR -
Perceivable information and user interface
Operable user interface and navigation
Understandable information and user interface
Robust content and reliable interpretation
What is the WAI?
WAI: Web Accessibility Initiative
The WAI creates standards and materials to help developers understand and implement accessibility.
Describe the first two priciples of the WAI?
Principle 1: A role is a promise i.e if role=button, it should be a button
Principle 2: ARIA Can Both Cloak and Enhance, Creating Both Power and Danger
What is an ARIA tag?
ARIA - Accessible Rich Internet Applications
ARIA attributes modify existing element semantics or add semantics to elements where no native semantics exist.
They provide additional information to screen readers about the purpose of an element.