Complete the code to add the correct language attribute to the HTML tag.
<!DOCTYPE html> <html [1]> <head> <meta charset="UTF-8"> <title>My Page</title> </head> <body> <p>Hello, world!</p> </body> </html>
The correct way to specify the language of the document is using lang="en" on the <html> tag. This helps browsers and assistive technologies understand the language.
Complete the code to correctly include a meta viewport tag for responsive design.
<head> <meta charset="UTF-8"> <meta [1]> <title>Responsive Page</title> </head>
The meta viewport tag must have name="viewport" and a content attribute with the correct values inside quotes. This tag helps the page scale properly on mobile devices.
Fix the error in the image tag by completing the missing attribute.
<img src="photo.jpg" [1]>
title instead of alt for accessibility.The alt attribute is required for images to describe the content for screen readers and when the image cannot load. It improves accessibility.
Fill both blanks to create a correct link that opens in a new tab safely.
<a href=[1] target=[2]>Visit Site</a>
_self instead of _blank for new tab.The href attribute needs a URL in quotes. The target attribute with value "_blank" opens the link in a new tab. For safety, rel="noopener noreferrer" should also be added but is not asked here.
Fill all three blanks to create a correct unordered list with three items.
<ul> <li>[1]</li> <li>[2]</li> <li>[3]</li> </ul>
<ol> instead of <ul> for unordered list.<li> tag.<li> tags.An unordered list uses <ul> with list items inside <li> tags. Each blank should be filled with a single item name as text.