-3

Here's the code I'm working with more or less.

<!DOCTYPE html>
<html lang="en">
<body>
<header></header>
<div class="container">
    <section>
        <h1>Title</h1>
        <pre>
            Text <A herf="linkurl.com">Link</A> Text
        </pre>
    </section>
</div>
<footer></footer>
</body>
</html>

I'm trying to get the URL Hyperlink to work inside of the <pre></pre>. What am I missing here?

Laurel
  • 5,965
  • 14
  • 31
  • 57
WasteOfADrumBum
  • 217
  • 2
  • 12

2 Answers2

1

You are missing the fact that you spelled href as herf.

landru27
  • 1,654
  • 12
  • 20
0

Looks like you are missing the protocol in the link. So before linkurl.com there should be something like http:// or https:// for a web-site, ftp:// for an FTP-resource and etc.

  • 1
    only if the link is supposed to go to another site; if it's supposed to stay within the same site, the protocol portion is not needed – landru27 Jun 20 '20 at 03:53