Creating buttons in html with Anchor & Icons

There are two ways to creating buttons in HTML with Anchor and Icons, But we must learn how to create button in HTML, then learn how to add link and icon with material-icon or font-awesome

Creating buttons in html with button tag

To create button in HTML with beautiful style write this code bellow:

Creating buttons with anchor



Note:you can add style for anchor tag for exemple color of text, hover color, textdecoration by using css.
Creating buttons in html with icon
There are many symbols that you can use within the HTML button, these symbols express something (download link, external link ...)
Icons are generally used to perform a JavaScript function from the attribute onclick = "function", as the JavaScript functions works when the button is pressed directly.

We will use two sources to create icon in HTML
1-Font-awesome
  • 1- add in your website or blog template this link to run font icon.
  • 2- choose the icon that you want use in button.
  • 3- you find the code in official website of font awesome

  • 2-Material-icon

    Creating buttons in html with input tag

    note:in input tag cannot add link, but you can run JavaScript function with attribute onclick="function". Creating buttons in html with Anchor & Icons

    © Manajmnt code

    Share to :

    Comments