Best CSS framework in 2021 for absolute beginners

There are lot of frameworks available by which someone can easily create a simple and good looking website. But if you are a beginner then it takes a lots of practice to create a website, first you learn the basics - HTML, CSS and JavaScript. These are the building blocks of a website. HTML used to create the structure of the website. For designing the website, we use CSS. Then we use JavaScript to handle the events like click of a mouse, hover over something. 


Best CSS framework in 2021 for absolute beginners

Best CSS framework in 2021 for absolute beginners


But when we want something quickly happen. There is no magic to do that. But framework have the power to do the magic, you just have to add the framework in your project and use their components to create navbar, links, buttons, etc. This helps you to create a website very quickly.


Best CSS framework in 2021 for absolute beginners

Best CSS framework in 2021 for absolute beginners


Today we go through a framework which helps beginners in 2021 to create his own or other's website quickly.


Bootstrap

Bootstrap is a CSS Frontend framework used for creating responsive design. We can create mobile friendly website using bootstrap very quickly and easily. This frontend framework is develop by Mark Otto and Jacob Thornton at Twitter. Bootstrap is a very famous CSS frontend framework. In 2021, bootstrap helps absolute beginners to create a responsive website.


Best CSS framework in 2021 for absolute beginners

Best CSS framework in 2021 for absolute beginners


 

Best CSS framework in 2021 for absolute beginners
Image credit to Bootstrap


How to add bootstrap to your Project or HTML file?

  • Create a HTML file
  • Go to Bootstrap website.
  • Click on Get Started in bootstrap website.
  • Copy the CSS and JavaScript link and add this in head tag of your HTML file.
CSS LINK - 

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css">

JavaScript Link -

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"></script>

Don't think now what these links are doing just add in your HTML file and make sure your internet is on.

Yes guys these links are 100% secure.

Let's create some components to learn bootstrap - 

Best CSS framework in 2021 for absolute beginners

Best CSS framework in 2021 for absolute beginners



1) Alert - Alert is used when we want to show a temporary message.

<div class="alert alert-primary" role="alert">
  A simple primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
  A simple secondary alert—check it out!
</div>

Output - 

Best CSS framework in 2021 for absolute beginners

Best CSS framework in 2021 for absolute beginners

Best CSS framework in 2021 for absolute beginners


2) Buttons - Buttons generally used for submit a form and click to close or open 
something.

<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>

OUTPUT - 
Best CSS framework in 2021 for absolute beginners

3) Cards - Cards are used to display user profile or providing some information.

<div class="card" style="width: 18rem;">
<img src="shoes.jpg" class="card-img-top" alt="...">
<div class="card-body">
<p class="card-text">
Some quick example text to build on the card title and
make up the bulk of the card's content.
</p>
<h5 class="card-title">Card title</h5>
</div>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>


OUTPUT - 

Best CSS framework in 2021 for absolute beginners

4) Form - Forms are used to get the user data .


<form>
  <div class="form-group">
    <label for="exampleInputEmail1">Email address</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp">
    <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">Password</label>
    <input type="password" class="form-control" id="exampleInputPassword1">
  </div>
  <div class="form-group form-check">
    <input type="checkbox" class="form-check-input" id="exampleCheck1">
    <label class="form-check-label" for="exampleCheck1">Check me out</label>
  </div>
  <button type="submit" class="btn btn-primary">Submit</button>
</form>


OUTPUT - 


5) Navbar - It is the navigation of our website to navigate different pages to the website.

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item active">
        <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Dropdown
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" href="#">Action</a>
          <a class="dropdown-item" href="#">Another action</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#">Something else here</a>
        </div>
      </li>
      <li class="nav-item">
        <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
      </li>
    </ul>
    <form class="form-inline my-2 my-lg-0">
      <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
    </form>
  </div>
</nav>

OUTPUT - 

Best CSS framework in 2021 for absolute beginners

Best CSS framework in 2021 for absolute beginners

Best CSS framework in 2021 for absolute beginners


These will help you to learn bootstrap easily. In 2021, bootstrap is awesome CSS
framework for absolute beginners to design your website. 

Best CSS framework in 2021 for absolute beginners

Best CSS framework in 2021 for absolute beginners



Thank You

Comments