Menu
Coddy logo textTech

Buttons

Part of the Fundamentals section of Coddy's HTML journey. Lesson 44 of 60.

Buttons are interactive elements in HTML used to trigger actions when clicked. To create a button, you use the <button> tag.

Here’s the basic syntax:

<button>Click Me</button>
challenge icon

Challenge

Easy

Create an HTML document that includes a button using the <button> tag. Make the button display the text "Press Me".

Try it yourself

<!DOCTYPE html>
<html>
    <body>
        <!-- Write code here -->
    </body>
</html>
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals

Practice on your own: Web playground