Fundamentals Flashcards
Why use Bootstrap?
Mobile Support
Easy to learn: Writing application in bootstrap is easy if you know CSS and HTML
Browser Support: It supports all the popular browsers like Firefox, Opera, Safari, IE etc.
What are the key components of Bootstrap?
CSS : It comes with plenty of CSS files
Scaffolding : It provides a basic structure with Grid system , link styles and background
Layout Components : List of layout components
JavaScript Plugins: It contains many jQuery and JavaScript plugins
Customize: To get your own version of framework you can customize your components
What are class loaders in Bootstrap?
Class loader is a part of JRE (Java Runtime Environment) which loads Java classes into Java virtual environment. Class loaders also does the process of converting a named class into its equivalent binary form.
What are the types of layout available in Bootstrap?
Fluid Layout: Fluid layout is used when you want to create a app that is 100% wide and use up all the width of the screen.
Fixed Layout: For a standard screen you will use fixed layout (940 px) option
What is Bootstrap Grid System?
Creating page layout through a series of row sand columns that house your content Bootstrap Grid System.
What are offset columns in Bootstrap?
For more spacing they can be used by pushing column over.
What function can you use to wrap a page content?
With .container you can also center the content.
What are the two ways you can display code?
<code> and <pre> tag.</pre></code>
What are the steps for creating basic or vertical forms?
Add a role form to the parent element. Wrap labels and controls in a <div> with class .form-group. Add a class of .form-control to all texturl elements</div>
What Modal plugin used for in Bootstrap?
Create a child window that is layered over it’s parent window and is created by a jQuery plugin.
What is a Bootstrap container?
A class that creates a centered area within a page where our site content can be put within.
What is Bootstrap collapsing element?
Collapsing element enables you to collapse any particular element without Javascript. To apply collapsing element you add data-toggle=”collapse” to controller element along with data-targe or href to automatically assign control of a collapsible element. You can also use .collapse(options), .collapse(‘show’) or .collapse(‘hide’)
What is list group in Bootstrap?
Components use to display simple and complex element with custom content. Uses class .list-group to address the list and class .list-group-itme to address individual item.
How can you add badge to list group in Bootstrap?
Add <span> within the <li> element.</li></span>
What is Bootstrap well?
A container <div> that makes the content to appear sunken or an inset effect on the page. Create a well by wrapping the content that you would like to appear in the well with a <div> containing the .well</div></div>
How can you create Nav elements in Bootstrap?
Start with basic unordered list with the base class of .nav then add class .nav-tabs
What is use of Bootstrap carousel plugin?
Add a slider to site. Useful where you want to display huge amount of contents within a small space. .carousel(option) .carousel('cycle') .carousel('pause') .carousel('number') .carousel('prev') .carousel('next')
What is Lead Body Copy?
Use to add emphasis to a paragraph, add class=”lead”.
What type of lists supported by Bootstrap?
Ordered lists Unordered lists Definition list - in this type of list, each list item can consist of both the <dt> and </dt><dd> elements. </dd><dt> definition term </dt><dd> definition of </dd><dt> </dt>
How do you use Glyphicons?
<span></span>
How do you use the Dropdown plugin?
Add data-toggle=”dropdown” to a link or button to toggle a dropdown
<div class="dropdown"> <a href="#">Dropdown trigger</a> <ul class="dropdown-menu"> ... </ul> </div>
If you need to keep links intact (which is useful if the browser is not enabling JavaScript), use the data-target attribute instead of href=”#” −
<div>
<a>
Dropdown <span></span>
</a>
<ul>
...
</ul>
</div>
To call the dropdown toggle via JavaScript, use the following method:
$(‘.dropdown-toggle’).dropdown()