Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
11 views3 pages

Web Dev Notes

This document provides comprehensive notes on Bootstrap, a free CSS framework for creating responsive websites. It covers key topics such as adding Bootstrap via CDN, using containers, the grid system, typography, buttons, navbars, cards, alerts, forms, and modals. The notes conclude with a summary of what the reader has learned, emphasizing the ability to build beautiful, responsive websites.

Uploaded by

hjha6656
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Web Dev Notes

This document provides comprehensive notes on Bootstrap, a free CSS framework for creating responsive websites. It covers key topics such as adding Bootstrap via CDN, using containers, the grid system, typography, buttons, navbars, cards, alerts, forms, and modals. The notes conclude with a summary of what the reader has learned, emphasizing the ability to build beautiful, responsive websites.

Uploaded by

hjha6656
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Super Complete Bootstrap Notes</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet">
<style>
body {
font-family: Arial, sans-serif;
padding: 40px;
background-color: #f8f9fa;
}
pre {
background: #212529;
color: #f8f9fa;
padding: 15px;
border-radius: 6px;
overflow-x: auto;
}
h1, h2 {
color: #0d6efd;
}
img {
width: 200px;
margin: 15px 0;
}
</style>
</head>
<body>

<h1>🚀 Super Complete Bootstrap Notes</h1>

<h2>1. What is Bootstrap?</h2>


<p>
Bootstrap is a free CSS framework for building responsive and mobile-first
websites quickly. It offers ready-made:
</p>
<ul>
<li>Grid system</li>
<li>Components (buttons, navbars, cards, modals)</li>
<li>Utilities for spacing, colors, typography</li>
</ul>
<img src="https://getbootstrap.com/docs/5.3/assets/brand/bootstrap-logo-
shadow.png" alt="Bootstrap Logo" />

<h2>2. How to Add Bootstrap</h2>


<h3>Via CDN</h3>
<pre><code>&lt;link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"&gt;
&lt;script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"&
gt;&lt;/script&gt;
</code></pre>

<h2>3. Containers</h2>
<p>Wrap your content in a container for proper spacing:</p>
<pre><code>&lt;div class="container"&gt;
Content goes here
&lt;/div&gt;
</code></pre>

<h2>4. Grid System</h2>


<p>Bootstrap uses a 12-column grid:</p>
<pre><code>&lt;div class="row"&gt;
&lt;div class="col-6"&gt;Half Width&lt;/div&gt;
&lt;div class="col-6"&gt;Half Width&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<h2>5. Typography</h2>
<pre><code>&lt;h1 class="display-1"&gt;Hello Bootstrap!&lt;/h1&gt;
&lt;p class="lead"&gt;This is a lead paragraph.&lt;/p&gt;
</code></pre>

<h2>6. Buttons</h2>
<pre><code>&lt;button class="btn btn-primary"&gt;Primary Button&lt;/button&gt;
&lt;button class="btn btn-success"&gt;Success&lt;/button&gt;
</code></pre>

<h2>7. Navbar</h2>
<pre><code>&lt;nav class="navbar navbar-expand-lg navbar-dark bg-dark"&gt;
&lt;div class="container-fluid"&gt;
&lt;a class="navbar-brand" href="#"&gt;Brand&lt;/a&gt;
&lt;button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-
bs-target="#navbarNav"&gt;
&lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
&lt;/button&gt;
&lt;div class="collapse navbar-collapse" id="navbarNav"&gt;
&lt;ul class="navbar-nav"&gt;
&lt;li class="nav-item"&gt;
&lt;a class="nav-link active" href="#"&gt;Home&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/nav&gt;
</code></pre>

<h2>8. Cards</h2>
<pre><code>&lt;div class="card" style="width: 18rem;"&gt;
&lt;img src="https://via.placeholder.com/150" class="card-img-top" alt="..."&gt;
&lt;div class="card-body"&gt;
&lt;h5 class="card-title"&gt;Card Title&lt;/h5&gt;
&lt;p class="card-text"&gt;Some quick example text.&lt;/p&gt;
&lt;a href="#" class="btn btn-primary"&gt;Go somewhere&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<h2>9. Alerts</h2>
<pre><code>&lt;div class="alert alert-warning" role="alert"&gt;
This is a warning alert!
&lt;/div&gt;
</code></pre>
<h2>10. Forms</h2>
<pre><code>&lt;form&gt;
&lt;div class="mb-3"&gt;
&lt;label for="exampleInputEmail1" class="form-label"&gt;Email
address&lt;/label&gt;
&lt;input type="email" class="form-control" id="exampleInputEmail1"&gt;
&lt;/div&gt;
&lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
&lt;/form&gt;
</code></pre>

<h2>11. Modals</h2>
<pre><code>&lt;button type="button" class="btn btn-primary" data-bs-
toggle="modal" data-bs-target="#myModal"&gt;
Launch Modal
&lt;/button&gt;

&lt;div class="modal fade" id="myModal" tabindex="-1"&gt;


&lt;div class="modal-dialog"&gt;
&lt;div class="modal-content"&gt;
&lt;div class="modal-header"&gt;
&lt;h5 class="modal-title"&gt;Modal title&lt;/h5&gt;
&lt;button type="button" class="btn-close" data-bs-
dismiss="modal"&gt;&lt;/button&gt;
&lt;/div&gt;
&lt;div class="modal-body"&gt;
Modal body text
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<h2>✅ What You Learned</h2>


<ul>
<li>How to add Bootstrap to your project</li>
<li>Grid layout and spacing</li>
<li>Using components like navbars, buttons, and cards</li>
<li>Styling forms and modals</li>
</ul>

<p>🎉 You’re ready to build beautiful, responsive websites with Bootstrap!</p>

</body>
</html>

You might also like