Write code to mark the text Gourmet Thai Cooking as a heading with the second level of importance.
- <!DOCTYPE html>
<.html>
<.head>
<.title>My Site
<./head>
<.body>
<.header>
<.h2> <.i> Gourmet Thai Cooking<./i> <./h2>
<./header>
<./body>
<./html>
What is the div element and why will you often encounter it in pre-HTML5 code?
- Div defines a division or a section in an HTML document as well as behaves as a block element. This allows pages to be better organized and groups certain elements within a web page.
What element would you use to indicate a change of topic within a section?
3.Using the <.h#> Tag.
Write the code to mark the text Daily Special as emphasized text.
4.<.p><.em> Daily Special <./em><./p>
Write code to mark the text H2SO4 with subscripts.
5.<.p><.i> H<.sub>2<./sub> SO<.sub>4<./sub><./i><./p>
Write the code to link the web page to the CSS file mystyles.css.
- <.LINK href = "Mystyles.css." rel= "stylesheet" />
Write the expression to insert the em dash into a web page using the character code 8212.
7.<.em> — <./em>
Write the code to insert an inline image using the source file awlogo.png and the alternate text Art World.
- <.img src= "awlogo.png" alt="ArtWorld">
Top comments (0)