HTML Page Structure

HTML Elements
HTML Attributes


HTML Button Tag

Whenever you want to use a clickable button, you need to use the <button> tag. In this tag, you can put either text or any image.

Syntax

<body>
	<button type="button">
</body>

Example

<!DOCTYPE html>
<html>
<head>
<title>My HTML Button Example</title>
</head>
<body>
<button type="button" onclick="alert('Welcome to Techstrikers!')">Hit me!</button>
</body>
</html>

This will produce following result