Technical

Basics about Web Frontend

underline

The frontend, also known as the client-side, is the part of a website that users interact with directly. It’s comprised of HTML, CSS, and JavaScript, which work together to create the visual and interactive elements of a webpage.

HTML – Create the structure

HTML, or Hypertext Markup Language, is the foundation of any web page. It’s used to:

It’s a markup language that uses tags, which are surrounded by angle brackets, to define different elements in the webpage. For instance, the "<h1>" tag defines the main heading of a webpage, while the "<p>" tag defines a paragraph of text.

This is a simple example of the HTML (on the left) and webpage (on the right)

CSS – Stylize the website

CSS, or Cascading Style Sheets, is used to add visual style and layout to a webpage on top of the content set by HTML. It controls the look and feel of a website, including

This is how the page might look after applying CSS

Bootstrap is a widely used CSS framework that makes it easy to design responsive websites. With Bootstrap, developers can utilize pre-designed components and classes that help to create a consistent look-and-feel across webpages.

For instance, Bootstrap includes popular components such as navbar, card, modal, and more. By using these components, developers can easily design beautiful and responsive web pages without writing a lot of custom CSS.

JavaScript – Increase interactivity

JavaScript is a powerful programming language that is used to create dynamic and interactive elements on a webpage. It allows the developers to:

For example, when we select the filter (on the left), it will trigger the JavaScript rules to filter the product list (on the right)

A JavaScript framework is a pre-written and standardized library of JavaScript code that allows developers to kickstart their development process and significantly speed up their workflow.

The purpose of a JavaScript framework is to provide a structure, pattern, and reusable codebase that makes the development process more efficient, manageable, and scalable. Some popular frameworks for JavaScript are:

Conclusion

In general, frontend development can be broken down into three key elements that work together seamlessly:

The website can work just fine with the HTML only. But mastering the other 2 layers would bring a massive enhancement.