Skip to content

Commit 4926e29

Browse files
committed
Update README.md
1 parent 0a4b203 commit 4926e29

File tree

1 file changed

+74
-65
lines changed

1 file changed

+74
-65
lines changed

README.md

Lines changed: 74 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
*Click <img src="https://github.com/learning-zone/bootstrap-css-interview-questions/blob/master/assets/star.png" width="18" height="18" align="absmiddle" title="Star" /> if you like the project. Pull Request are highly appreciated.*
44

5+
<br/>
6+
57
## Q. What is Bootstrap?
68

79
Bootstrap is a HTML, CSS, and JS framework for building the rich web applications with minimal effort. This framework emphasis more on building mobile web applications.
@@ -76,7 +78,7 @@ For example, .col-xs=* classes do not support offset but they are easily replica
7678

7779
## Q. What is column ordering in Bootstrap?
7880

79-
Column ordering is one of the feature available in bootstrap and you can easily write columns in an order and show them in another one. With .col-md-push-* and .col-md-pull-*
81+
Column ordering is one of the feature available in bootstrap and you can easily write columns in an order and show them in another one. With `.col-md-push-* ` and `.col-md-pull-*`
8082

8183
the order of the column can be easily changed.
8284

@@ -118,11 +120,12 @@ Create a container `div` with the class of .jumbotron
118120

119121
## Q. What is the difference between Bootstrap and Foundation?
120122

121-
Bootstrap Foundation
122-
– Bootstrap offers unlimited number of UI elements – In Foundation UI element options are very limited in numbers
123-
– Bootstraps uses pixels – Foundation use REMs
124-
– Bootstrap encourages to design for both desktop and mobile. – Foundation encourages to design mobile first
125-
– Bootstrap support LESS as its preprocessor – Foundation support Sass and Compass as its preprocessor
123+
|Bootstrap |Foundation |
124+
|------------------------|------------------------|
125+
|Bootstrap offers unlimited number of UI elements|In Foundation UI element options are very limited in numbers|
126+
|Bootstraps uses pixels | Foundation use REMs|
127+
|Bootstrap encourages to design for both desktop and mobile.| Foundation encourages to design mobile first|
128+
|Bootstrap support LESS as its preprocessor | Foundation support Sass and Compass as its preprocessor|
126129

127130
<div align="right">
128131
<b><a href="#">↥ back to top</a></b>
@@ -169,7 +172,7 @@ Bootstrap container is a class which is useful and creates a centred area within
169172

170173
## Q. What is Bootstrap collapsing elements?
171174

172-
Bootstrap collapsing elements enables you to collapse any particular element without writing any JavaScript code or the accordion markup. In Bootstrap to apply collapsing elements you have to add data-toggle= “collapse to the controller element along with a data-target or href to automatically assign control of a collapsible element. Likewise, you can use .collapse (options), .collapse (‘show’) or .collapse (‘hide’)
175+
Bootstrap collapsing elements enables you to collapse any particular element without writing any JavaScript code or the accordion markup. In Bootstrap to apply collapsing elements you have to add data-toggle= “collapse" to the controller element along with a data-target or href to automatically assign control of a collapsible element. Likewise, you can use .collapse (options), .collapse (‘show’) or .collapse (‘hide’)
173176

174177
<div align="right">
175178
<b><a href="#">↥ back to top</a></b>
@@ -187,7 +190,7 @@ For example, a simple list group is created using class .list-group to address t
187190

188191
## Q. How you can add badge to list group in Bootstrap?
189192

190-
To add badge to list group in Bootstrap you have to simply add `span class = badge` within the `li` element.
193+
To add badge to list group in Bootstrap you have to simply add `span class = "badge"` within the `li` element.
191194

192195
<div align="right">
193196
<b><a href="#">↥ back to top</a></b>
@@ -231,18 +234,19 @@ Then add class .nav-tabs
231234

232235
The Carousel plugin is used to add a slider to your site. It is useful in condition where you want to display huge amount of contents within a small space on the web pages. Some of the standard carousel includes
233236

234-
.carousel (options)
235-
.carousel (cycle’)
236-
.carousel (pause’)
237-
.carousel (number’)
238-
.carousel (prev’)
239-
.carousel (next’)
237+
- `.carousel (options)`
238+
- `.carousel ('cycle')`
239+
- `.carousel ('pause')`
240+
- `.carousel ('number')`
241+
- `.carousel ('prev')`
242+
- `.carousel ('next')`
240243

241244
<div align="right">
242245
<b><a href="#">↥ back to top</a></b>
243246
</div>
244247

245-
## Q. Define Bootstrap.
248+
## Q. Define Bootstrap?
249+
246250
Bootstrap is a front-end framework that is used for creating HTML, CSS, and JS web applications. Its layout is very responsive, easy and fast to use. It mostly focuses on building a mobile application with having design templates for creating UI like Dropdown, Forms, Buttons, Alerts Tab, etc.
247251

248252
<div align="right">
@@ -332,10 +336,10 @@ Progress bar is used with HTML tag style in HTML element using `progress` keywor
332336

333337
The contextual classes used with progressive bar are as follows.
334338

335-
Progress-success
336-
Progress-info
337-
Progress-warning
338-
Progress-danger
339+
- Progress-success
340+
- Progress-info
341+
- Progress-warning
342+
- Progress-danger
339343

340344
<div align="right">
341345
<b><a href="#">↥ back to top</a></b>
@@ -345,19 +349,19 @@ Progress-danger
345349

346350
Responsive utility classes in bootstrap are a set of classes which are used to conceal or exhibit the HTML elements based on screen resolution that discerns by media query in bootstrap.
347351

348-
Example: hidden-md-down, It hides
352+
Example: `hidden-md-down`, It hides
349353

350354
## Q. What are the different button styles in Bootstrap?
351355

352356
In bootstrap there are seven styles which we can use with the bootstrap button.
353357

354-
.btn-default.
355-
.btn-primary
356-
.btn-success
357-
.btn-info
358-
.btn-warning.
359-
.btn-danger.
360-
.btn-link.
358+
- `.btn-default.`
359+
- `.btn-primary`
360+
- `.btn-success`
361+
- `.btn-info`
362+
- `.btn-warning.`
363+
- `.btn-danger.`
364+
- `.btn-link.`
361365

362366
<div align="right">
363367
<b><a href="#">↥ back to top</a></b>
@@ -369,12 +373,14 @@ This is used to create presume alert messages, which adds style to the messages
369373

370374
There are four classes in alerts i.e .alert-success, .alert-info, .alert-warning, .alert-danger.
371375

372-
## Q. Define Bootstrap thumbnails.
376+
## Q. Define Bootstrap thumbnails?
377+
373378
It is a way to use the layout images, videos, text etc. in a grid system. We can create thumbnails by adding a tag with the class .thumbnails around the image.
374379

375380
This will add four pixels of padding and a grey border.
376381

377-
## Q. Explain Modal plugin in Bootstrap.
382+
## Q. Explain Modal plugin in Bootstrap?
383+
378384
A model is an inherited window that is layered over its parent window. This is used to augment the user experience and adds different functionalities to the users.
379385

380386
Model windows are created with the help of the modal plugin.
@@ -383,10 +389,11 @@ Model windows are created with the help of the modal plugin.
383389

384390
To add pagination on the webpage we have to use the class .pagination.
385391

386-
## Q. What is Bootstrap collapsing elements.
392+
## Q. What is Bootstrap collapsing elements?
393+
387394
It allows you to collapse any particular element without using any JavaScript code.
388395

389-
To use this feature in bootstrap you have to add data-toggle= collapse to the controller element along with a data target to automatically assign the control of a collapsible element. We can use this by writing .collapse(options) etc.
396+
To use this feature in bootstrap you have to add data-toggle=" collapse" to the controller element along with a data target to automatically assign the control of a collapsible element. We can use this by writing .collapse(options) etc.
390397

391398
<div align="right">
392399
<b><a href="#">↥ back to top</a></b>
@@ -396,10 +403,11 @@ To use this feature in bootstrap you have to add data-toggle=” collapse” to
396403

397404
Bootstrap well is a form of container which thrives or makes the content to look recessed on the web page. It also wraps the content by using .well class.
398405

399-
## Q. Explain the uses of carousel plugin in Bootstrap.
406+
## Q. Explain the uses of carousel plugin in Bootstrap?
407+
400408
Carousel plugin in bootstrap is used to make sliders in the web pages or your site. There are several carousel plugins that are used in bootstrap to display large contents within a small space by adding sliders.
401409

402-
Example: .carousel(options), .carousel(pause’), .carousel(cycle’), .carousel(prev’), .carousel(next’).
410+
Example: `.carousel(options)`, `.carousel('pause')`, `.carousel('cycle')`, `.carousel('prev')`, `.carousel('next')`.
403411

404412
## Q. What will be the output of the below code and why?
405413

@@ -451,7 +459,7 @@ In bootstrap, navbar is an eminent feature to make responsive meta component tha
451459

452460
## Q. How we can create a navbar in Bootstrap?
453461

454-
To create a navbar in a bootstrap at first, we have to add the classes .navbar, .navbar-default to the `nav` tag. After this, we have to add the role=navigation to the above element, and this will help in accessibility.
462+
To create a navbar in a bootstrap at first, we have to add the classes .navbar, .navbar-default to the `nav` tag. After this, we have to add the role="navigation" to the above element, and this will help in accessibility.
455463

456464
We have added a header class .nav-header to the `div` element, which will include an `a` element with a class navbar brand. From this, we will get a text with a larger size.
457465

@@ -467,7 +475,7 @@ Bootstrap labels are used for offering counts, tips or other things to provide m
467475

468476
## Q. What are badges in Bootstrap?
469477

470-
Badges are homogeneous to labels, the main difference between them is corners are more rounded. The main work of badges in the bootstrap is to highlight new or unread items. To use badges just add `span class=badge` to links and bootstrap navs.
478+
Badges are homogeneous to labels, the main difference between them is corners are more rounded. The main work of badges in the bootstrap is to highlight new or unread items. To use badges just add `span class="badge"` to links and bootstrap navs.
471479

472480
<div align="right">
473481
<b><a href="#">↥ back to top</a></b>
@@ -491,7 +499,7 @@ Bootstrap normalize is a small CSS file which is used to make cross-browser cons
491499

492500
## Q. What is lead body copy in Bootstrap?
493501

494-
It is used to add some ascent to the paragraph if we add class=lead. This will enlarge the font size and a taller line height.
502+
It is used to add some ascent to the paragraph if we add class="lead". This will enlarge the font size and a taller line height.
495503

496504
## Q. What are panels in Bootstrap?
497505

@@ -531,10 +539,10 @@ There are four grid classes in Bootstrap.
531539

532540
They are:
533541

534-
xs (It is used for phone screens less than 786px wide).
535-
sm (It is used for the tablet screens which are greater than 786px wide).
536-
md (It is for small laptop screen of size equal to or greater than 992px wide).
537-
LG ( It is for laptop and desktop screens which are equal to greater than 1200px wide).
542+
- xs (It is used for phone screens less than 786px wide).
543+
- sm (It is used for the tablet screens which are greater than 786px wide).
544+
- md (It is for small laptop screen of size equal to or greater than 992px wide).
545+
- LG ( It is for laptop and desktop screens which are equal to greater than 1200px wide).
538546

539547
<div align="right">
540548
<b><a href="#">↥ back to top</a></b>
@@ -562,21 +570,18 @@ The output of this will give the grids for extra small devices as we can see in
562570

563571
jQuery is the only dependency that bootstrap requires for working properly and this is only for JavaScript plugins in bootstrap.
564572

565-
## Q. what the below code will do?
573+
## Q. What the below code will do?
566574

567575
```html
568576
<a href="#">Home <span class="badge">36</span></a>
569577
```
578+
570579
This code will produce a link with an inline badge which will give an important notification to the user like number received, message received or the number of requests etc.
571580

572581
## Q. What are the two codes that are used for code display in Bootstrap?
573582

574583
The codes are `code` tag and `pre` tag.
575584

576-
## Q. What is the difference between Bootstrap and Foundation?
577-
578-
Bootstrap uses very fewer preprocessors as it supports less and it allows the designing and development for both mobile and desktop. On the other hand, Foundation supports sass processors and it is used only for mobile UI designing.
579-
580585
<div align="right">
581586
<b><a href="#">↥ back to top</a></b>
582587
</div>
@@ -586,7 +591,7 @@ Bootstrap uses very fewer preprocessors as it supports less and it allows the de
586591
By this, we can use the icon simply anywhere in your code.
587592

588593
```html
589-
<span class=glyphicon glyphicon-search></span>
594+
<span class="glyphicon glyphicon-search"></span>
590595
```
591596

592597
## Q. What is a transition plugin in Bootstrap?
@@ -622,7 +627,8 @@ Magazine
622627
ERP system
623628
A breadcrumb in Bootstrap is simply an unordered list with a class of .breadcrumb.
624629

625-
Ex:
630+
Example:
631+
626632
```css
627633

628634
.breadcrumb > li + li:before {
@@ -642,13 +648,13 @@ Jumbotron is a user-attractive function of Bootstrap. it is a brilliant way to h
642648

643649
Create a container `div` with the class of. Jumbotron
644650

645-
Ex: The example shows wrapping up of heading contents inside a div class Jumbotron container.
651+
Example: The example shows wrapping up of heading contents inside a div class Jumbotron container.
646652

647653
```html
648-
<div class=jumbotron>
654+
<div class="jumbotron">
649655
<h1>Learn to Create Websites</h1>
650-
<p>In todays world internet is the most popular way…</p>
651-
<p><a href=”#” class=btn btn-primary btn-lg>Learn more</a></p>
656+
<p>In today's world internet is the most popular way…</p>
657+
<p><a href="#" class="btn btn-primary btn-lg">Learn more</a></p>
652658
</div>
653659
```
654660

@@ -678,14 +684,15 @@ Let us move to the next Bootstrap Interview Questions And Answer.
678684

679685
This is the advanced Bootstrap Interview Questions which is asked in an interview. It resembles the navigation header in the top of the page, the navigation bar can be created with Nav tag. Navbars and their contents are fluid by default. The horizontal width can be scaled and controlled using Navigation containers. Navbars are concealed by default while printing.
680686

681-
Ex:
687+
Example:
688+
682689
```html
683-
<nav class=navbar navbar-expand-lg navbar-light bg-light>
684-
<div class=dropdown-menu aria-labelledby=navbarDropdown>
685-
<a class=dropdown-item href=”#”>Action</a>
686-
<a class=dropdown-item href=”#”>Another action</a>
687-
<div class=dropdown-divider></div>
688-
<a class=dropdown-item href=”#”>Something else here</a>
690+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
691+
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
692+
<a class="dropdown-item" href="#">Action</a>
693+
<a class="dropdown-item" href="#">Another action</a>
694+
<div class="dropdown-divider"></div>
695+
<a class="dropdown-item" href="#">Something else here</a>
689696
</div>
690697
</nav>
691698
```
@@ -698,27 +705,29 @@ Ex:
698705

699706
Glyphicons are symbols or definitive icon fonts which provide easy orientation in your web projects. they are preferably addended in buttons, form inputs, toolbars and navigation components. Glyphicons Halflings are not free to use entities and requires licensing. Bootstrap includes more than 250 glyphs from the Glyphicons Halflings set.
700707

701-
Ex:
708+
Example:
702709

703710
```html
704-
<p>Search icon: <span class=glyphicon glyphicon-search></span></p>
711+
<p>Search icon: <span class="glyphicon glyphicon-search"></span></p>
705712
```
706713

707714
## Q. Describe a Bootstrap panel Bootstrap well and Bootstrap carousel?
708715

709716
Bootstrap well: Adds a greyish rounded background around the content, it is a container class. The .well-sm class for small wells and .well-lg class for large wells allows alternate the size of the well. Default well size is normal.
710717

711-
Ex:
718+
Example:
719+
712720
```html
713-
<div class=well>Basic Well</div>
721+
<div class="well">Basic Well</div>
714722
```
715723

716724
Bootstrap panel: There could be situations where some site contents need to be wrapped up in a box to enhance the visibility for the user. Bootstrap panels lock hands on these needs. They can be created with the .panel class and content inside the panel has a .panel-body class.
717725

718-
Ex :
726+
Example:
727+
719728
```html
720-
<div class=panel panel-default>
721-
<div class=panel-body>Look, Im in a panel!</div>
729+
<div class="panel panel-default">
730+
<div class="panel-body">Look, I'm in a panel!</div>
722731
</div>
723732
```
724733

0 commit comments

Comments
 (0)