DEV Community

keepoSteepo
keepoSteepo

Posted on

HTML5 Basics

In Module 2 we explored the concepts expressed below;

Write code to mark the text Gourmet Thai Cooking as a heading with the second level of importance.

To mark the text Gourmet Thai Cooking as heading with second level of importance and italicize it, the code should look as follows;

Gourmet Thai Cooking

.

What is the div element and why will you often encounter it in pre-HTML5 code?

Div element defines a division or section of a HTML document. It is more frequently encountered in pre HTML5 because back then sections were defined as divisions using the div element. & are semantic elements that replace whenever possible.

What element would you use to indicate a change of topic within a section?

To indicate a change of topic within a section the


tags should be used.

Write the code to mark the text Daily Special as emphasized text.

To mark the Daily Special as emphasized text the following code should look as follows; Daily Special .

Write code to mark the text H2SO4 with subscripts.

To mark subscripts in the chemical composition above, the code should look as follows; H2SO4.

Write the code to link the web page to the CSS file mystyles.css.
In order to link the web page to the CSS file mystyle.css, the code should look as follows; .

Write the expression to insert the em dash into a web page using the character code 8212.

β€” is the way to insert the em dash into web page using character code.

Write the code to insert an inline image using the source file awlogo.png and the alternate text Art World.

In order to insert an inline image using source file awlogo.png and the alt text Art World, the following code should be displayed; β€œArt.

Top comments (1)

Collapse
 
keeposteepo profile image
keepoSteepo

Woah.. my document, it's answers mainly were interpreted as code and did not show up or did so in an unexpected way.