1 link in two paragraphs in html

I’d like to have a link on text but the text is in 2 paragraphs (using the html editor) resulting in having 2 href’s with the link i’ve given. Here’s the regular code:

<p><a href="google.com">google</a></p>
<p><a href="google.com">dotcom</a></p>

and this is the result of this code how I don’t want it to be:

Read More

google

dotcom

I just want a single highlight when mousing over/clicking, I tried to manually changing the code with erasing the < /a > or so but since im a newbie when it comes to html nothing good came out…
Sorry for bad english, and thanks in advance for replies.[also why are html editors online so buggy? Like the one in wordpress.. trying to do a table exactly how you want it is so annoying.]

Related posts

Leave a Reply

2 comments

  1. Have you tried putting the tag around the p tags?

    <a href="#">
      <p>
        google
      </p>
      <p>
        dotcom
      </p>
    </a>

    In terms of usage, HTML 5 states that the element “may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g. buttons or other links)”.