Workshop
The Workshop has quiz questions and exercises to help you put to use what you just learned. If you get stuck, the answers to the quiz questions are in the next section. But try to answer them first. Otherwise you'll be cheating yourself.
Quiz
-
In Code view, how do you tell the browser to treat one line of text differently from another?
Answer
-
To separate and group content, HTML uses tags. Any content placed between a beginning and an end tag is semantically defined by that tag so that browsers understand paragraphs as paragraphs, headings as headings, unordered lists as unordered lists, and so on. When you apply a particular style to content in Design view, you are actually telling the browser to find content wrapped by a certain tag and then apply the defined styles to this content.
Exercise
Find a Word document you already have on your computer or write a new one. Make sure it has several headings and subheadings along with bold and italicized content and a few lists. With the default.html file open in Expression Web 3, choose Save As under File and select a new name, like myTest.html, and save it. Delete all the content in your new file and import the content from the Word document. Clean up the code so that it has only styles you can find in the Styles drop-down menu, and all bold and italicized content is strong and emphasized instead. Save the file and test it in your browser to verify that it works properly.