xxxxxxxxxx
<style>
.centered-button {
text-align: center;
display: inline-block;
}
</style>
<button class="centered-button">Click Me!</button>
xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<style>
/* Styles for centering the button */
.centered-button {
display: flex;
justify-content: center;
}
</style>
</head>
<body>
<div class="centered-button">
<button>Centered Button</button>
</div>
</body>
</html>