How to make a button return to the home menu? Use html and css

Asked

Viewed 1,502 times

-1

<!DOCTYPE html>
<html>
<head>
    <title>JdBEdit - Demo</title>
    <meta content="IE=edge" http-equiv="X-UA-Compatible"/>
    <meta content="width=device-width, initial-scale=1" name="viewport"/>
</head>
<body id="bg">
    <div id="elem1">
        <button class="start href"> START </button>

        <a href="https://m.youtube.com/user/jadson8255">
            <button id="b1">

20 Buscar
            </button>
        </a>

        <a href="https://m.youtube.com/channel/UCLRW29kscCnup6lYpLp-mDw">
            <button id="b2">
            MALUCO BR2
            </button>
        </a>

        <a href="https://m.youtube.com/channel/UChjOkhXUsQExsAG5hffIuJw">
            <button id="b3">
            MALUCO BR3
            </button>
        </a>
    </div>
    <div id="elem2" style="display: none;">
        <button id="bcen">10000</button>
    </div>
</body>
</html>
  • I could not understand what you want. I would give you more details?

  • 2

    Be more specific with your question, give more details, post the full code, including css. how to ask?

1 answer

0

I used a link with background and padding to create a start button and put / to indicate the start url

.inicio {
    padding: 15px;
    background-color:#232323;
    color: #fff;
    text-decoration:none;
}
<a class="inicio" href="/">INICIO</a>

You can also add the css directly into the element by adding style="", thus:

<a style="padding:15px;background-color:#232323;color:#fff;text-decoration:none;" class="inicio" href="/">INICIO</a>
  • Blz I’m going to test it here!

  • Then I get it in the middle of the quotation marks I put the menu id?

  • 1

    Your doubt is how to make a start button, I replied.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.