Search code examples
htmlcsshyperlinkhref

Make a HMTL <a href> hyperlink not appear as a hyperlink


I'm making a website (for schoolwork) using a combination of php, html and css. I'm currently working on the initial design stages of my site and as I'm inexperienced at html / css, I am going slowly through tutorials trying to learn.

Including the hyperlink my banner looks like:banner with hyperlink

Not including the hyperlink my banner looks like:banner without hyperlink

I want to have the functionality of the link, but the visual design effect of without the link.

The necessary code is:

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <center>
    <div id = "indexBackgroundOne"><h2 style="font-family:verdana"> Q U E S T S &reg;</h2></div>
    </center>
</html>

Thanks!


Solution

  • If you are using inline css you can use like this -

    <html>
        <head>
            <link rel="stylesheet" type="text/css" href="style.css">
        </head>
        <center>
        <div id = "indexBackgroundOne"><h2 style="font-family:verdana;text-decoration: none;color:black;"><a href=""  style="text-decoration: none;color:black;"> Q U E S T S &reg;</a></h2></div>
        </center>
    </html>