CSS comes with three types of Style Sheets (i.e. Inline Style-Sheet, Internal Style-Sheet, and External Style-Sheet). We can use These Cascading Style-Sheets as per their requirements during designing the Web Page.
<button type="submit" style="color:white;
background-color:rgb(0, 102, 255);padding:10px 35px;
border:none;border-radius:5px">
Press Me
</button>
<!DOCTYPE html>
<html>
<!--HTML Head-->
<head>
<title>Button</title>
</head>
<!--HTML Body-->
<body>
<button type="submit"
style="color:white;background-color:rgb(0, 102, 255);
padding:10px 35px;border:none;border-radius:5px">
Press
</button>
</body>
</html>
<style>
.css-class-name{
property: value;
property: value;
property: value;
}
</style>
<!DOCTYPE html>
<html>
<head>
<style>
.tdb-school{color: white;
background-color: rgb(0, 102, 255);
padding: 10px 35px;
border: none;
border-radius: 5px}
</style>
</head>
<!--Body-->
<body>
<button type="submit" class="tdb-school">
Press
</button>
</body>
</html>
<head>
<link rel="stylesheet" href="style.css"/>
</head>
<!DOCTYPE html>
<html>
<!--Head-->
<head>
<!--We can link multiple external style-sheets
to our html web page-->
<link rel="stylesheet" href="style.css"/>
</head>
<!--Body-->
<body>
<button type="submit" class="tdb-school">Press</button>
</body>
</html>
Previous
      Next Page
Share TDB SCHOOL
Share this E-Learning Website on social media platforms with your friends and followers