Fronted Assignment
Fronted Assignment
1. Answer:
The diagram depicts a standard client-server architecture, illustrating the fundamental separation between the
front-end and back-end components of a web application. The front-end, or client-side, encompasses the user
interface elements that users directly interact with, such as web browsers, desktop applications, and mobile
apps. These elements are responsible for presenting information and capturing user input.
The back-end, or server-side, manages the application's data and logic. It consists of a database server for data
storage and retrieval, a web server to handle requests from the front-end and serve web pages, and a file server
for storing application files. The internet acts as the communication bridge, enabling data exchange between
the front-end and back-end.
In essence, the front-end is responsible for the user experience, while the back-end handles the data processing
and management necessary for the application to function. This separation of concerns allows for a modular
and scalable approach to web application development.
2. Answer:
Bootstrap Framework
Bootstrap is a popular CSS framework that helps developers create responsive and mobile-first web designs
quickly. It provides predefined classes for styling, grids, components, and JavaScript functionalities.
Exampe:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Example</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1 class="text-center text-primary">Hello, Bootstrap!</h1>
<button class="btn btn-success">Click Me</button>
</div>
</body>
</html>
/* Block: book-section */
.book-section {
padding: 2rem;
}
.book-section__title {
font-size: 24px;
font-weight: bold;
color: #333;
}
.book-section = Block
.book-section__title = Element
.book-section—featured = Modifier
Using #id and .class
#id (ID selector): Used to style a single unique element.
.class (Class selector): Used to style multiple elements.
Example:
AJAX
AJAX allows a web page to send and receive data from a server without reloading.
Click ‘More’ button to get books.
Example: