xxxxxxxxxx
<!-- html button tag example -->
<button type="button">Click Me!</button>
xxxxxxxxxx
<!-- To access the button in css, use a dot (.) and one of the words in "class". I like to define my buttons as "button" and then the specific number so i can customize all the buttons individually while still having a way to customize them all. The "onclick" is used to make functions for JavaScript so that something actually happens when you press the button. -->
<button class="button button1" id="button" onclick="buttonfunction();"> This is a button </button>
xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<title>Add a Button</title>
</head>
<body>
<button>This is a button</button>
</body>
</html>
xxxxxxxxxx
<!DOCTYPE html>
<script>
function log() {
console.log("Hello World!")
}
</script>
<html>
<button onclick="log()">Button</button>
</html>