Knowee
Questions
Features
Study Tools

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

Question

Is the following HTML markup valid?<html> <head> </head> <body> <h1> <a href="www.google.com'>Google</a> </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 lies in the anchor tag. The opening quote for the href attribute is a double quote, but the closing quote is a single quote. They should match. The correct markup should be:

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

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

The single line of HTML below is intended to create the following hyperlink:  The Australian BalletLinks to an external site. <a href=https:australianballet.com.au The Australian Ballet  a>What are characters are missing from this line of HTML? Not necessarily in the right order.  / /   < > / /   < > " "   < > / / " "   < > / / / " "

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.