<style>
    p {
        padding: 1em;
        border: 1px solid #cdcd4c;
        border-radius: 0.5em;
        background-color: beige;
    }
</style>
<p>
    This content is important and should be read right away.
    <br>
    I'm really glad you found it! πŸ˜ƒ
</p>

<!--
    As a Boolean attribute,
    only the attribute name is included
    without specifying a value.
-->
<p hidden>
    This content is not currently relevant to this page and should not be displayed.
    <br>
    There's nothing to see here. πŸ˜₯
</p>
Rendered Output
<style>
    p {
        padding: 1em;
        border: 1px solid #cdcd4c;
        border-radius: 0.5em;
        background-color: beige;
    }
</style>
<p>
    This content is important and should be read right away.
    <br>
    I'm really glad you found it! πŸ˜ƒ
</p>
<p hidden style="display: block;">
    This content is not currently relevant to this page and should not be displayed.
    <br>
    There's nothing to see here. πŸ˜₯
</p>
Rendered Output
.card {
    text-align: center;
    padding: 1.5em;
    background: rgba(251, 233, 235, 0.5);
    border: 1px solid red;
    border-radius: 0.5em;
    max-width: 300px;
    margin: auto;
}
#agree.card {
    border-color: green;
    background: rgba(235, 250, 235, 0.6);
}
<div role="dialog" class="card" id="welcome">
    <h3>Welcome!</h3>
    <p>Click the "Agree" button to view our awesome content.</p>
    <button type="button" id="agreeButton">Agree</button>
</div>
<div class="card" id="agree" hidden>
    <h3>Thank You!</h3>
    <p>We hope you have a wonderful day.</p>
</div>
const agreeButton = document.getElementById("agreeButton");

agreeButton.addEventListener("click", () => {
    document.getElementById("welcome").hidden = true;
    document.getElementById("agree").hidden = false;
});
Rendered Output Click the "Agree" button!