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
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.
Best CSS framework in 2021 for absolute beginners
Best CSS framework in 2021 for absolute beginners
<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
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 -
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 andmake 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>
<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
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
Post a Comment