Anandi Sheladiya
Contact
  • About Anandi
  • SKILLS & EXPERIENCE
    • Frontend
      • ReactJS
      • Next.js – The React Framework for Production
      • ChartJS / D3.JS / Fabric JS
      • Three.JS: The JavaScript Library for 3D Graphics
      • HTML/CSS/JS/Tailwind CSS/Bootstrap
      • Material UI – The Ultimate React UI Framework
      • ShadCN/UI – The Modern UI Library for React
    • Backend
      • NodeJS & ExpressJS
      • Web3.JS
      • Python & Django
      • GoLang
      • TypeScript
    • Database
      • PostgreSQL
      • MongoDB - NOSQL Database
      • MySQL
    • API
      • REST API
      • GraphQL API
      • RPC (Remote Procedure Call)
      • WebSocket
    • Solidity
    • Layer 1 Blockchain
      • Ethereum
      • Solana
      • Bitcoin
      • Hyperledger
      • Binance
      • Avalanche
      • Cardano
      • Polkadot
      • Near Protocol
      • Algorand
      • TON (Telegram Open Network)
    • Optimistic Rollups (L2 on Ethereum)
      • Arbitrum
      • Base
      • Mantle
    • ZK-Rollups (L2 on Ethereum)
      • zkSync Era
      • Polygon zkEVM
    • Wallet Integration
      • Reown Appkit
      • Rainbow Walletkit
      • Web3 Modal
      • WalletConnect
      • Wagmi
      • Metamask & Safewallet SDKs
    • Web3 SDKs & API Providers
      • Alchemy
      • Moralis
      • QuickNode
      • BitQuery API & Stream
      • ThirdWeb
      • Infura
      • Li.Fi
      • 1Inch API
      • Uniswap API
      • OpenZeppelin
    • Web3 Middleware/ UX Infrastructure Platform
      • Biconomy
      • Pimlico
      • Alchemy AA
      • Safe (formerly Gnosis Safe)
      • ZeroDev
    • On Chain Trading Platform & Telegram Bot
      • Bullx
      • Wave Bot
      • GMGN
      • Shuriken
      • Magnum Trade
      • Trojan
  • PROTOCOLS
    • ERCs & EIPs
      • ERC-20: The Standard for Fungible Tokens
      • ERC-721: The Standard for Non-Fungible Tokens (NFTs)
      • ERC 4337
      • ERC 6551: Token Bound Accounts (TBA)
      • ERC 7702
      • EIP 4844 (Proto-Danksharding)
      • Ethereum Pectra
  • ARTICLES
    • Medium
Powered by GitBook
On this page
  • Introduction
  • 1. HTML (HyperText Markup Language)
  • 2. CSS (Cascading Style Sheets)
  • 3. JavaScript (JS)
  • 4. Tailwind CSS – Utility-First Framework
  • 5. Bootstrap – Responsive UI Framework
  • Comparison: Tailwind CSS vs. Bootstrap

Was this helpful?

  1. SKILLS & EXPERIENCE
  2. Frontend

HTML/CSS/JS/Tailwind CSS/Bootstrap

Introduction

Frontend development is the backbone of web applications, responsible for creating visually appealing, interactive, and responsive user interfaces. The core technologies used in frontend development are:

  • HTML (HyperText Markup Language) – The structure of web pages.

  • CSS (Cascading Style Sheets) – The styling and layout of web pages.

  • JavaScript (JS) – Adds interactivity and dynamic behavior.

  • Tailwind CSS – A utility-first CSS framework for rapid UI development.

  • Bootstrap – A responsive CSS framework with pre-designed components.

Each of these technologies plays a crucial role in building modern web applications.

1. HTML (HyperText Markup Language)

HTML is the foundation of any web page. It provides the structure and content using elements like headings, paragraphs, images, and forms.

Example of a simple HTML document:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>My Website</title>
</head>
<body>
  <h1>Welcome to My Website</h1>
  <p>This is a simple HTML page.</p>
  <a href="about.html">Go to About Page</a>
</body>
</html>

Key Features of HTML:

  • Uses tags to define elements.

  • Supports semantic elements (<header>, <section>, <article>, etc.).

  • Allows embedding images, videos, and other media.

  • Forms the basis for web development.

2. CSS (Cascading Style Sheets)

CSS is used to style HTML elements and create visually appealing layouts. It controls colors, fonts, spacing, animations, and responsiveness.

Example of basic CSS styles:

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  text-align: center;
}

h1 {
  color: #007bff;
}

button {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

Key Features of CSS:

  • Provides selectors (class, id, element).

  • Uses flexbox and grid for layouts.

  • Allows animations and transitions.

  • Supports responsive design using media queries.

Example of a responsive design using media queries:

@media (max-width: 768px) {
  body {
    background-color: lightgray;
  }
}

3. JavaScript (JS)

JavaScript makes web pages interactive and dynamic. It is used for handling events, making API calls, manipulating the DOM, and building complex applications.

Example of JavaScript in action:

document.getElementById("btn").addEventListener("click", function() {
  alert("Button Clicked!");
});

Key Features of JavaScript:

  • Manipulates the DOM (document.querySelector, getElementById).

  • Supports event handling (click, hover, keydown).

  • Enables AJAX and Fetch API for server communication.

  • Can be used for building full-stack applications with Node.js.

Example of fetching API data:

fetch("https://jsonplaceholder.typicode.com/posts/1")
  .then(response => response.json())
  .then(data => console.log(data));

4. Tailwind CSS – Utility-First Framework

Tailwind CSS is a utility-first CSS framework that provides predefined classes for rapid development. It allows developers to style directly in the HTML instead of writing custom CSS.

Example of a Tailwind CSS button:

<button class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
  Click Me
</button>

Key Features of Tailwind CSS:

  • Uses utility classes instead of writing custom CSS.

  • Provides responsive design utilities (sm:, md:, lg:, etc.).

  • Supports dark mode and custom themes.

  • Reduces CSS file size with built-in PurgeCSS.

Example of a responsive Tailwind grid layout:

<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
  <div class="p-4 bg-gray-200">Box 1</div>
  <div class="p-4 bg-gray-300">Box 2</div>
  <div class="p-4 bg-gray-400">Box 3</div>
</div>

Best for: Rapid UI development, modern design systems, and lightweight projects.

5. Bootstrap – Responsive UI Framework

Bootstrap is a popular CSS framework that provides pre-built components and a responsive grid system. It simplifies the process of designing mobile-friendly websites.

Example of a Bootstrap button:

<button class="btn btn-primary">Click Me</button>

Key Features of Bootstrap:

  • Comes with a 12-column grid system for responsive layouts.

  • Provides ready-to-use components (buttons, modals, cards, etc.).

  • Includes built-in JavaScript plugins (carousel, tooltip, modal).

  • Offers themes and customization via SCSS variables.

Example of a Bootstrap responsive navbar:

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">My Website</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav">
      <li class="nav-item active">
        <a class="nav-link" href="#">Home</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">About</a>
      </li>
    </ul>
  </div>
</nav>

Best for: Quick prototyping, enterprise applications, and cross-browser compatibility.

Comparison: Tailwind CSS vs. Bootstrap

Features
Tailwind CSS
Bootstrap

Styling Approach

Utility-first

Pre-styled components

Customization

Highly customizable

Limited customization

File Size

Smaller (PurgeCSS)

Larger with built-in components

Responsiveness

Uses flexbox/grid utilities

Uses grid system and predefined classes

Ease of Use

Requires learning classes

Easier with prebuilt components

  • Use Tailwind CSS for custom designs with better performance.

  • Use Bootstrap for quick prototyping and enterprise projects.

PreviousThree.JS: The JavaScript Library for 3D GraphicsNextMaterial UI – The Ultimate React UI Framework

Last updated 3 months ago

Was this helpful?