Skip to main content

Buttons in HTML - Khabork

Button is the one of the impotent element in the HTML.We can do many several work by clicking the button.Button is basically a input type element in the HTML. By the button Tag we can submit our Sign Up or Login form or any kind of form Submition we use the button tag.We also do any kid of work like when we post our photos , videos or other documents then we use the button for the final submission.

 Buttons in HTML


Button without CSS :

<button>Click Me</button>

out put: 









Without CSS the button looks a normal ,It not looking good, it have no background color, no text color, no border. So we have to customize the button in our own way, So we have to add CSS to the button property.so we are adding some CSS property to the button for more attractive.

Button With CSS   :

html:


  <button>Click Me</button>

CSS:

button
{
width: 150px;
height: 50px;
color:  white;
border-radius: 5px;
font-size: x-large;
font-family:  Arial Black;
background-color:  rgb(1, 82, 78);
box-shadow: 2 px 2px 4px black;
border: none;

}
Out Put:
 Buttons in HTML










By using the CSS property the button looks so attractive. This button you can use any html file.

The other types of html buttons  

1) This button has no background color but it has the green solid border and its text color is green. Its looks so cool. you can use the button any kind of html page.

Html:
<button>Click Me</button>

CSS:

button
    {
width: 150px;
height:  50px;
color: green;
border-radius: 5px;
font-size: x-large;
font-family:  Arial Black;
border: 4px solid green;
box-shadow:  2px 2px 4px black;

    }

Out Put:
 Buttons in HTML





2)This Button is curve button, the corners are curved by the border radius.the background of the button is green and the color is white
.It has 2px solid white border. 

html:

<button>Click Me</button>

CSS:
button
    {
font-size: x-large;
font-family:  Arial Black;
border:  2px solid white;
box-shadow: 2px 2px 4px black;
color: white;
        background: green;
        width: 15%;
       padding: 1%;
       border-radius: 20%; 

  }
Out Put:
 Buttons in HTML






3) This is the circle button. This type of button use in the any kind of calculation like as calculator or the shopping center listing items.
The background of the button is the orange and color is white.

html:
<button> + </button>

Css :

button
{
margin-left: 500px;
margin-top: 300px;
font-size: 60px;
font-family: Arial Black;
border: none;
box-shadow: 2px 2px 4px black;
color: white;
        background: orange;
        width: 100px;
        height: 100px;
        border-radius: 50%; 

}
Out Put:
 Buttons in HTML







4) This button is the nice looking cool.The button is two side is curve like the capsule tablets.This buttons background color is pink and the text color is white and the 1px white solid borser radius.Its look awesome.
html :
<button>Click Me</button>

CSS: 

button
     {
font-size: 30px;
font-family:  Arial Black;
border: none;
box-shadow:  2px 2px 4px black;
color: white;
        background: pink;
        width: 150px;
        height:  50px;
       border-radius: 30px; 

    }
Out Put :
 Buttons in HTML






Those are the basic button css those are mostly used in the html documents.There are so many hover effects in the buttons. Buttons in html is so useful element every event handle with the buttons.

Comments

Popular posts from this blog

Indian Food Culture -Khabork

Indian food culture Indian food culture  is the best in the world. Northern Indian food primarily includes items which are surge Linked like Tandoori roti ,garandma, Kulcha, etc. South Asian matter primary includes items which are created of cereal solid like Idli, Sambar vada, Upma ,Dosa etc. Indian Food Indian food corporation In India  other kinds of food like  North Indian food ,  South Indian Food  etc. North Indian Food primarily includes items are sugar linked like Tandoori roti grandma,kulcha etc. East Indian food provides the sweet dish like rashogolla, sandesh etc. South Indian matter primarily includes items which are created of cereal solid like Idli,sambar,vada,dosa,ctc. Chili is most important for every Indian.     I ndian food, street In Indian food Culture the most reliable cuisine of India is the India neighborhood food, which will be purchased just for same rupees portable kiosks seen in the Indian cities and town. These street vendors provide wa

What is Corona Virus ? Novel Coronavirus (2019-nCoV) -Khabork

What is Corona Virus ?          Coronaviruses are   an outsized  family of viruses found in both animals and humans. Some infect people and are known to cause illness  starting from  the  cold  to more severe diseases  like  Middle East  Respiratory Syndrome (MERS) and Severe Acute Respiratory Syndrome (SARS). What is "Novel" Coronavirus (2019-nCoV) ? A novel coronavirus (CoV) may be a new strain of coronavirus that has not been previously identified in humans. The "novel" is defined as 2019-nCoV  ,it is not seen before the out break was reported in December 2019 in Wuhan city in China. How Dangerous on It ?? As with other respiratory illnesses, infection with 2019-nCoV can cause mild symptoms including a runny nose, pharyngitis , cough, and fever. It is not only one symptoms by the Corona Virus can be   fever , cough,  pharyngitis and  runny nose  .   It are often more severe for a few persons and may cause pneumonia or breathing difficulties.

Valentines Day Images💕 -Khabork

💕 Valentines Day 💕 It's also called  Saint Valentine's Day  or the  Feast of Saint Valentine. Originating as a Western Christian fete day honoring one or two early saints named Valentin's, Valentine Day is recognized as a big cultural, religious, and commercial celebration of romance and romantic love in many regions round the world.The day first became related to romantic love within the circle of Chaucer within the 14th century, when the tradition of code of conduct flourished. happy valentine day 💕 Who is Your Valentines ? love is within the air! are you able to feel it? Every Valentine Day , Valentine Day rolls around and that we find ourselves trapped within the excitement of candy, flowers, cards and hearts of red, white and pink. So who is your valentine this year? If you are like most youngsters , you almost certainly have many them. Parents, sisters and brothers, aunts and uncles, neighbors, teachers and every one kinds of friends at college — th