Open In App

Onsen UI CSS Component Large Call To Action Button

Improve
Improve
Like Article
Like
Save
Share
Report

Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop.

Buttons are one of the most common UI elements. When we want to perform some action and want to navigate to a different page then we can use the button. Onsen UI CSS Component Large Call To Action Button is used to create the large CTA(Call To Action) button using the button–large–cta class.

Onsen UI CSS Component Large Call To Action Button Class:

  • button–large–cta: This class is used to create the large call to action button.

Syntax:

<button class="button button--large--cta">
    ...
</button>

Example 1: The following example demonstrates the Onsen UI CSS Component Large Call To Action Button.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- CDN links of Onsen UI library -->
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
    <script src=
    </script>
</head>
  
<body>
    <center>
        <h1 style="color: green;">
            GeeksforGeeks
        </h1>
        <h3>
            Onsen UI CSS Component 
            Large Call To Action Button
        </h3>
        <button class="button button--large--cta">
            Java
        </button>
    </center>
</body>
</html>


Output:

 

Example 2: The following example demonstrates the Onsen UI CSS Component Large Call To Action Button.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <!-- CDN links of Onsen UI library -->
    <link rel="stylesheet" href=
    <link rel="stylesheet" href=
    <script src=
    </script>
</head>
  
<body>
    <center>
        <h1 style="color: green;">
            GeeksforGeeks
        </h1>
        <h3>
            Onsen UI CSS Component 
            Large Call To Action Button
        </h3>
        <button class="button button--large--cta">
            Java
        </button> <br>
        <button class="button button--large--cta"
                disabled>
            C++
        </button> <br>
        <button class="button button--large--cta">
            Python
        </button>
    </center>
</body>
</html>


Output:

 

Reference: https://onsen.io/v2/api/css.html#button-category



Last Updated : 05 Jul, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads