javascripthtmlmacosvisual-studiotext-based

I can't see the continue button


I am a beginner programmer working on a text based game in Visual Studio and the continue button doesn't show up on the webpage. Is there something I missed?

            <p></p>
            <fieldset></fieldset>
            <button id="resetButton" class="reset">Restart</button>
            <a id="continueButton" class="continue" href="javascript:void(0);"></a>
        </form>
    </div>
    <script> src="js.js"></script>
</body>
</html>

Solution

  • Your continueButton element is using the <a> tag with nothing in it, so there is nothing to display. Add something inside your <a> tag or change it to a <button> like the resetButton element.

    <html>
        <body>
            <button id="resetButton" class="reset">Restart</button>
            <a id="continueButton" class="continue" href="javascript:void(0);">Continue</a>
        </body>
    </html>