Ready to watch this entire course?
Become a member and get unlimited access to the entire skills library of over 4,900 courses, including more Web and personalized recommendations.Start Your Free Trial Now
- View Offline
- Exploring HTML5 templates in Dreamweaver
- Understanding document flow
- Using floats properly
- Resetting CSS styles
- Creating a 1-, 2-, or 3-column layout
- Deciding on a fixed width versus variable width design
- Coding layouts for HTML5 and CSS 3
- Incorporating floated elements
- Applying the faux column technique
- Using Spry widgets
- Using Multiscreen Preview
- Modifying desktop layout for tablets
- Developing smart phone layouts
Skill Level Intermediate
In addition to the 16 other pre-built layouts that are based on the current version of HTML and XHTML, Dreamweaver now offers to HTML5 based layouts. HTML5 is a major update of the web building language. Although it's still in development so many modern browsers have included HTML5 support, but it's quickly becoming a Firewall alternative for designers. Let's take a tour of those layouts. So I'll go to File>New, make sure a Blank Page is chosen and then HTML.
At the very bottom of the Layout column you'll see an HTML5 2 column fixed, right sidebar, header and footer, and also a 3 column fixed header and footer. Now notice that when I select either of these the Doc Type goes to HTML5. You can if you want, select any of the other layout and switch it to an HTML5 Doc Type but it won't have the HTML5 coding, for that we'll have to look at these HTML5 specific layouts.
All right, with the 2 column fixed, right sidebar header and footer chosen, let's go ahead and click Create, and I'm going to go ahead and switch over to Live View for a moment, so you can see that the links, all work, and it works very nicely. Now there is not any real obvious differences when you're just looking at the page between HTML4 and HTML5. However, if we start to look a little bit deeper at the code like the nav button over here, and take a look at the Tag Selector you'll notice that it's not a div with a class of nav, or ID of nav, it's an actual nav tag.
And the same thing is true when we look at the header and some of the other content areas of the page include sections and articles. You'll note that there is a combination of HTML structural tags, like article and section with the currently standard div tag. This is not only "legal" but actively encouraged by the W3C who are developing the HTML5 specification.
Well this page previews fine within Dreamweaver's WebKit-driven rendering engine and the most current browsers. Keep in mind that older browsers may have problems. To lessen those issues the HTML5 templates use a CSS Rule that sets all the structural tags to display block, let me show you have that note. So I'll go over to code and because our CSS rules are embedded, they're listed here on the page and right before the end of the style section you'll see a CSS Rule that says HTML5 support in the comments, and in that Rule - header, section, footer, aside, nav, article, and figure, which are all HTML5 tags are set to display: block.
So straight out of the box, this layout is ready to become your first HTML5 page once you've customized it with your own images, content, and CSS styles.