VOOZH about

URL: https://www.geeksforgeeks.org/css/pure-css-primary-buttons/

⇱ Pure CSS Primary Buttons - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Pure CSS Primary Buttons

Last Updated : 23 Jul, 2025

Buttons are one of the most common UI elements. It is used for users to interact with a system and take action by making selections. Pure CSS Primary Button is used to create a primary action button. The primary button is created using Pure CSS class.

Pure CSS Primary Buttons Class:

  • pure-button-primary: This class is used to create the primary action button. his class is used alongside "pure-button" class.

Syntax:

  • Create a Primary Button using <a> Tag:

    <a class="pure-button pure-button-primary" href="#">
    Primary Button
    </a>
  • Create a Primary Button using <button> Tag:

    <button class="pure-button pure-button-primary">
     Primary Button
    </button>

Example:

Output:

👁 Pure CSS Primary Buttons
Pure CSS Primary Buttons

Reference: https://pure-css.github.io/#primary-buttons

Comment
Article Tags: