Book Image

Bootstrap for Rails

By : Syed F Rahman
Book Image

Bootstrap for Rails

By: Syed F Rahman

Overview of this book

Table of Contents (18 chapters)
Bootstrap for Rails
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Bootstrap Breadcrumbs


If you are a webmaster, then you must know that Google considers breadcrumbs for the proper SEO of a website. Breadcrumbs are also important for displaying the current page's position, as compared to the whole website. Let's consider that you are viewing a product page on a website. Then, the position of a product might be Home | Apparels | Jeans | Bare jeans. This is an example of a breadcrumb. Google and other search engines use breadcrumbs to properly understand a website's hierarchy and the organization of its sub pages.

You can easily create stylish breadcrumbs for your website with Bootstrap. Bootstrap uses traditional HTML ordered list elements to create a breadcrumb. Here's an example of elements:

<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="#">Apparels</a></li>
<li><a href="#">Jeans</a></li>
<li class="active">Bare Jeans</li>
</ol>

The preceding...