]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
clarify example with code comment
authorMark Otto <markdotto@gmail.com>
Fri, 13 May 2016 02:47:49 +0000 (19:47 -0700)
committerMark Otto <markdotto@gmail.com>
Fri, 13 May 2016 02:47:49 +0000 (19:47 -0700)
docs/components/navbar.md

index d106795a8038b1485dea1dc99bbf3e59c224a632..5f7f366344fac31ab5b1f9955537779ffba9f878 100644 (file)
@@ -59,10 +59,12 @@ Here's an example of all the sub-components included in a default, light navbar:
 The `.navbar-brand` can be applied to most elements, but an anchor works best as some elements might require utility classes or custom styles.
 
 {% example html %}
+<!-- As a link -->
 <nav class="navbar navbar-light bg-faded">
   <a class="navbar-brand" href="#">Navbar</a>
 </nav>
 
+<!-- As a heading -->
 <nav class="navbar navbar-light bg-faded">
   <h1 class="navbar-brand m-b-0">Navbar</h1>
 </nav>