Knowee
Questions
Features
Study Tools

Is the following HTML markup valid?<html> <head> </head> <body> <h1> <a href="www.google.com">Go to <b>Google</b> </h1> </body></html>

Question

Is the following HTML markup valid?<html> <head> </head> <body> <h1> <a href="www.google.com">Go to <b>Google</b> </h1> </body></html>

🧐 Not the exact question you are looking for?Go ask a question

Solution

No, the HTML markup is not valid. The problem is that the <a> tag is not properly closed. Here is the corrected version:

<html>
    <head>
    </head>
    <body>
        <h1>
            <a href="www.google.com">Go to <b>Google</b></a>
        </h1>
    </body>
</html>

In this corrected version, the <a> tag is properly closed before the closing </h1> tag. This is important because in HTML, tags must be properly opened and closed in the correct order.

This problem has been solved

Similar Questions

Is the following HTML markup valid?<html> <head> </head> <body> </body></html>

Is the following HTML markup valid?<html> <head> </head> <body> <img src="logo.png" /> </body></html>

True or False: The following shows the correct usage of HTML code.<HTML> <head> <title> </title> </head> </body> <body></hmtl>

True or False: The HTML <a> href attribute is used to specify the URL of the page that the link goes to.An

What is the correct syntax for creating a hyperlink in HTML?<link href="http://www.example.com">Link Text</link><a href="http://www.example.com">Link Text</a><url="http://www.example.com">Link Text</url><hyperlink="http://www.example.com">Link Text</hyperlink>

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.