The "nav" tag provides more meaning, I guess bootstrap just checks the
class "navbar" so it doesn't care if you used a div or a nav, but in terms
of semantics, a nav tag if better for a navigation bar as the name suggests.

El dom., 22 dic. 2019 a las 20:08, fugee ohu (<fugee...@gmail.com>)
escribió:

> Documentation says to use:
>
> <nav class="navbar navbar-expand-lg navbar-light bg-light">
> But in my views I've been using
>  <div class = "navbar navbar-default navbar-static-top">
> The code is a little different, I have to try it out, but the question is the 
> same Is applying the class to the div the same as not using the div for 
> bootstrap purposes
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/f79a4675-30bd-4527-872f-f65badb78d5b%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/f79a4675-30bd-4527-872f-f65badb78d5b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcCjNGeViMEWg54Mk7VO-DuDORUsZc%3DpTg2wA94s9UaSWg%40mail.gmail.com.

Reply via email to