Question

1. Write the HTML code to create a fragment identifier at the beginning of a web...

1. Write the HTML code to create a fragment identifier at the beginning of a web page designated by the word “top”.

2. Write the HTML code to create a hyperlink to the named fragment designated by “top”.

3. Write the HTML code to assign the header element to the appropriate ARIA landmark role, as shown in the slides.

4. Write the HTML code to associate a web page with an external style sheet named myprint.css to configure a printout.

5. Write the @media rule to target a typical smartphone device and configure the nav element selector with width set to auto. Since 480px targets the display size of many smartphones, we can set the maxwidth to 480px.

6. Write the CSS to configure a graphic named mysprite.gif to display as background image on the left side of a hyperlink. Assume the mysprite.gif contains two different images. Configure the image that is located 67 pixels down from the top of the mysprite.gif graphic to display. Hint: The first image is at the top and the second image is 67 pixels down from the top of the graphics file. The value 67 is used to configure the display of the second image.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1 <p name="top"> This could be at the top of the page</p>

This is link could be at the bottom of the page and when clicked on it will take the user to the top of the page.
<a href="#top"> Go to top</a>

2 <a href="https://www.w3schools.com/html/">Visit our HTML tutorial</a>

3

footer contentinfo when in context of the body element. The footer element is not a contentinfo landmark when it is a descendant of the following HTML sectioning elements:
  • article
  • aside
  • main
  • nav
  • section
form form when it has an accessible name using aria-labelledby, aria-label or title attributes
header banner when in context of the body element. The header element is not a banner landmark when it is a descendant of the following HTML sectioning elements:
  • article
  • aside
  • main
  • nav
  • section
main main
nav navigation
section

region when it has an accessible name using aria-labelledby, aria-label or title attribute

4

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <LINK href="special.css" rel="stylesheet" type="text/css"> </HEAD> <BODY> <P class="special">This paragraph should have special green text. </BODY> </HTML>
Add a comment
Know the answer?
Add Answer to:
1. Write the HTML code to create a fragment identifier at the beginning of a web...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT