课程: HTML and CSS: Creating Navigation Bars
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Adding and styling a second level of vertical navigation
课程: HTML and CSS: Creating Navigation Bars
Adding and styling a second level of vertical navigation
- [Tutor] To this point in the course, we have looked at situations where we have a navigation bar with a single level of navigation. But what if you have two levels or potentially more levels than that, what are you going to do about these additional levels of navigation? Well, that is what this chapter addresses. And as always the very first place to start with adding a second level of navigation to your website is adding semantic HTML, that's marked up correctly to add that additional level of navigation, and then we can style it. So, you can't see it, you can't style it, I've said it several times in this course, and that is why we always start with the HTML before we deal with the CSS. The problem that most people forget when adding a second layer of navigation, is that it's all contained within the LI element. This is like one of the biggest mistakes that beginners to HTML make. So let's say I wanted to add a second level of navigation to the about portion of the page. That's…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。