Frontend Flashcards
What is the purpose of HTML in web development?
HTML is used to structure content on the web.
What does CSS stand for?
Cascading Style Sheets.
True or False: JavaScript is a server-side programming language.
False.
What is a CSS preprocessor?
A tool that extends CSS with variables, nested rules, and functions, such as SASS or LESS.
Fill in the blank: The _______ property in CSS is used to change the text color.
color
What is the DOM?
The Document Object Model, a programming interface for web documents.
What is responsive design?
An approach to web design that makes web pages render well on a variety of devices and window or screen sizes.
What is the main purpose of a CSS reset?
To remove default browser styling to ensure consistent rendering across different browsers.
What is a JavaScript framework? Give an example.
A JavaScript framework is a pre-written JavaScript library that simplifies development. Examples include React, Angular, and Vue.
True or False: Semantic HTML improves accessibility.
True.
What are media queries used for in CSS?
To apply styles based on the device characteristics, such as width or height.
What is the purpose of Web Accessibility (WCAG)?
To ensure that web content is accessible to people with disabilities.
What does AJAX stand for?
Asynchronous JavaScript and XML.
What is the use of the ‘data-*’ attribute in HTML?
To store custom data private to the page or application.
What is the difference between ‘id’ and ‘class’ in HTML?
‘id’ is unique to a single element, while ‘class’ can be used on multiple elements.
What is a Single Page Application (SPA)?
A web application that loads a single HTML page and dynamically updates content as the user interacts.
What is the purpose of the ‘alt’ attribute in an <img></img> tag?
To provide alternative text for an image, improving accessibility and SEO.
Fill in the blank: The _______ method is used to add an event listener in JavaScript.
addEventListener
What is the purpose of the ‘viewport’ meta tag?
To control the layout on mobile browsers.
True or False: A CSS Grid is a layout system for creating complex web layouts.
True.
What is the purpose of a build tool like Webpack?
To bundle JavaScript files for usage in a browser.
What is Progressive Enhancement?
A strategy for web design that emphasizes core content first and then enhances the experience for users with better browsers.
What is the role of a package manager in frontend development?
To automate the installation, upgrading, configuring, and removing of software packages.
What is a RESTful API?
An application programming interface that adheres to the principles of representational state transfer.
Fill in the blank: The _______ property in CSS is used to control the layout of flex items.
flex
What is the importance of browser developer tools?
To debug, inspect, and analyze web applications directly in the browser.
What does ‘CORS’ stand for?
Cross-Origin Resource Sharing.
True or False: Inline CSS has higher specificity than external CSS.
True.