Q1. Define Bootstrap.
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.
Q 2. Explain what is
Bootstrap collapsing elements.
It
allows you to collapse any particular element without using any JavaScript
code.
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.
Q 3. What is Bootstrap Well?
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.
Q4. Explain the uses of
carousel plugin in Bootstrap.
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.
Example: .carousel(options), .carousel(‘pause’), .carousel(cycle’),
.carousel(‘prev’), .carousel(‘next’).
Q5. Explain input group in
Bootstrap.
Input
group in bootstrap are put out from controls. By using an input group, we can
easily add prepended and appended text or button to the text-based inputs.
We can prepend
and append elements to a .form-control by
taking all the elements in a <div> under a class .input-group. After
that, place your extra content inside a <span> in same <div> by
using class .input-group-addon after
this you can place the <span> element either before or after the input
element.
Q6. How we can create a navbar
in Bootstrap?
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.
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.
Q 7. What is Bootstrap breadcrumb?
Bootstrap
breadcrumb is an efficient way to show hierarchy-based information for a site.
This can show the dates of publishing, categories or tags in a blog. They also
tell the user about the current page location within a navigational hierarchy.
So we
can say that Bootstrap breadcrumb is simply an unordered list with a class
of .breadcrumb.
Q8. What is the work of affix
plugin in Bootstrap?
This
plugin allows a <div> to be attached to a location on the page.
Use of the social icon in a page is an example for this in which
we see that the icons will start in a location, but when the page hits on a
certain mark it will block the <div> in place and will stop the scrolling
for rest of the page.
Q9. What is grid system in
Bootstrap?
By
using the grid system, we can make up to 12 columns across a page. There are
different classes which have been defined for this for the UI purpose.
Q10.How we can create a navbar in
Bootstrap?
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.
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.
0 Comments