Website Building » Wix » How Do I Add a HTML Button to Wix?

How Do I Add a HTML Button to Wix?

Last updated on January 7, 2023 @ 11:15 am

HTML buttons are a great way to make your website more interactive and engaging for your visitors. You can use them to add navigation, call to action, or simply add some style to your pages.

In this article, we’ll show you how to add HTML buttons to Wix.


Exciting update! We've collaborated with Wix to offer WBI users with a free plan for all website creation needs - Explore the details here.

Adding an HTML Button to Wix

Adding an HTML button to your Wix site is easy. Just follow these steps:

1. Log in to your Wix account and go to the Editor.

2. Select the page where you want to add the button.

3. Click on the Add (+) button and then select the HTML element from the drop-down menu.

4. In the HTML code box, paste the code for your button. Here’s an example:

<button type="button">Click Me!</button>

5. Click Apply changes.

Your button will now appear on the page.

Styling Your Button with CSS

You can use CSS (Cascading Style Sheets) to style your HTML buttons. For example, you can change the color, font, size, and other properties of your button. CSS is a powerful tool that gives you complete control over the look and feel of your website.

To style your button, just add a “style” attribute to the code for your button. Here’s an example:

<button style="color: red;" type="button">Click Me!</button>

In this example, we’ve used the “style” attribute to change the color of our button to red. You can use any CSS properties in the “style” attribute, including font-family, font-size, background-color, and so on. Just make sure to separate each property with a semi-colon (;).

If you want to learn more about CSS, we recommend checking out our guide on how to use CSS in Wix.

PRO TIP: If you are not familiar with HTML code, we do not recommend adding a HTML button to your Wix site. This can result in code errors that can break the functionality of your site.
Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.