You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+74-65Lines changed: 74 additions & 65 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
*Click <imgsrc="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.*
4
4
5
+
<br/>
6
+
5
7
## Q. What is Bootstrap?
6
8
7
9
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
76
78
77
79
## Q. What is column ordering in Bootstrap?
78
80
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-*`
80
82
81
83
the order of the column can be easily changed.
82
84
@@ -118,11 +120,12 @@ Create a container `div` with the class of .jumbotron
118
120
119
121
## Q. What is the difference between Bootstrap and Foundation?
120
122
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
|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|
126
129
127
130
<divalign="right">
128
131
<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
169
172
170
173
## Q. What is Bootstrap collapsing elements?
171
174
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’)
173
176
174
177
<divalign="right">
175
178
<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
187
190
188
191
## Q. How you can add badge to list group in Bootstrap?
189
192
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.
191
194
192
195
<divalign="right">
193
196
<b><a href="#">↥ back to top</a></b>
@@ -231,18 +234,19 @@ Then add class .nav-tabs
231
234
232
235
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
233
236
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')`
240
243
241
244
<divalign="right">
242
245
<b><a href="#">↥ back to top</a></b>
243
246
</div>
244
247
245
-
## Q. Define Bootstrap.
248
+
## Q. Define Bootstrap?
249
+
246
250
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.
247
251
248
252
<divalign="right">
@@ -332,10 +336,10 @@ Progress bar is used with HTML tag style in HTML element using `progress` keywor
332
336
333
337
The contextual classes used with progressive bar are as follows.
334
338
335
-
Progress-success
336
-
Progress-info
337
-
Progress-warning
338
-
Progress-danger
339
+
-Progress-success
340
+
-Progress-info
341
+
-Progress-warning
342
+
-Progress-danger
339
343
340
344
<divalign="right">
341
345
<b><a href="#">↥ back to top</a></b>
@@ -345,19 +349,19 @@ Progress-danger
345
349
346
350
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.
347
351
348
-
Example: “hidden-md-down”, It hides
352
+
Example: `hidden-md-down`, It hides
349
353
350
354
## Q. What are the different button styles in Bootstrap?
351
355
352
356
In bootstrap there are seven styles which we can use with the bootstrap button.
353
357
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.`
361
365
362
366
<divalign="right">
363
367
<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
369
373
370
374
There are four classes in alerts i.e .alert-success, .alert-info, .alert-warning, .alert-danger.
371
375
372
-
## Q. Define Bootstrap thumbnails.
376
+
## Q. Define Bootstrap thumbnails?
377
+
373
378
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.
374
379
375
380
This will add four pixels of padding and a grey border.
376
381
377
-
## Q. Explain Modal plugin in Bootstrap.
382
+
## Q. Explain Modal plugin in Bootstrap?
383
+
378
384
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.
379
385
380
386
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.
383
389
384
390
To add pagination on the webpage we have to use the class .pagination.
385
391
386
-
## Q. What is Bootstrap collapsing elements.
392
+
## Q. What is Bootstrap collapsing elements?
393
+
387
394
It allows you to collapse any particular element without using any JavaScript code.
388
395
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.
390
397
391
398
<divalign="right">
392
399
<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
396
403
397
404
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.
398
405
399
-
## Q. Explain the uses of carousel plugin in Bootstrap.
406
+
## Q. Explain the uses of carousel plugin in Bootstrap?
407
+
400
408
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.
## Q. What will be the output of the below code and why?
405
413
@@ -451,7 +459,7 @@ In bootstrap, navbar is an eminent feature to make responsive meta component tha
451
459
452
460
## Q. How we can create a navbar in Bootstrap?
453
461
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.
455
463
456
464
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.
457
465
@@ -467,7 +475,7 @@ Bootstrap labels are used for offering counts, tips or other things to provide m
467
475
468
476
## Q. What are badges in Bootstrap?
469
477
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.
471
479
472
480
<divalign="right">
473
481
<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
491
499
492
500
## Q. What is lead body copy in Bootstrap?
493
501
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.
495
503
496
504
## Q. What are panels in Bootstrap?
497
505
@@ -531,10 +539,10 @@ There are four grid classes in Bootstrap.
531
539
532
540
They are:
533
541
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).
538
546
539
547
<divalign="right">
540
548
<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
562
570
563
571
jQuery is the only dependency that bootstrap requires for working properly and this is only for JavaScript plugins in bootstrap.
564
572
565
-
## Q. what the below code will do?
573
+
## Q. What the below code will do?
566
574
567
575
```html
568
576
<ahref="#">Home <spanclass="badge">36</span></a>
569
577
```
578
+
570
579
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.
571
580
572
581
## Q. What are the two codes that are used for code display in Bootstrap?
573
582
574
583
The codes are `code` tag and `pre` tag.
575
584
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
-
580
585
<divalign="right">
581
586
<b><a href="#">↥ back to top</a></b>
582
587
</div>
@@ -586,7 +591,7 @@ Bootstrap uses very fewer preprocessors as it supports less and it allows the de
586
591
By this, we can use the icon simply anywhere in your code.
587
592
588
593
```html
589
-
<spanclass=”glyphiconglyphicon-search”></span>
594
+
<spanclass="glyphicon glyphicon-search"></span>
590
595
```
591
596
592
597
## Q. What is a transition plugin in Bootstrap?
@@ -622,7 +627,8 @@ Magazine
622
627
ERP system
623
628
A breadcrumb in Bootstrap is simply an unordered list with a class of .breadcrumb.
624
629
625
-
Ex:
630
+
Example:
631
+
626
632
```css
627
633
628
634
.breadcrumb>li+li:before {
@@ -642,13 +648,13 @@ Jumbotron is a user-attractive function of Bootstrap. it is a brilliant way to h
642
648
643
649
Create a container `div` with the class of. Jumbotron
644
650
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.
646
652
647
653
```html
648
-
<divclass=”jumbotron”>
654
+
<divclass="jumbotron">
649
655
<h1>Learn to Create Websites</h1>
650
-
<p>In today’s world internet is the most popular way…</p>
@@ -678,14 +684,15 @@ Let us move to the next Bootstrap Interview Questions And Answer.
678
684
679
685
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.
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.
## Q. Describe a Bootstrap panel Bootstrap well and Bootstrap carousel?
708
715
709
716
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.
710
717
711
-
Ex:
718
+
Example:
719
+
712
720
```html
713
-
<divclass=”well”>Basic Well</div>
721
+
<divclass="well">Basic Well</div>
714
722
```
715
723
716
724
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.
717
725
718
-
Ex :
726
+
Example:
727
+
719
728
```html
720
-
<divclass=”panelpanel-default”>
721
-
<divclass=”panel-body”>Look, I’m in a panel!</div>
729
+
<divclass="panel panel-default">
730
+
<divclass="panel-body">Look, I'm in a panel!</div>
0 commit comments