Do you want to be a professional web designer?
Learn how to design attractive websites most
efficiently and smartly by using Cascading Style Sheets.
Give a professional look to your website.
We will discuss CSS3 in the upcoming tutorials. You can learn CSS3 with us and our code editor will help you to run the basic code examples.
<!-- Internal Style-Sheet -->
<style>
.tdb-class{
color:red;
height:50px;
width:10px;
animation: tdb 2s infinite;
transition:2s;
padding:10px 10px 10px 10px;
margin:10px 20px;
background-image:url("image.jpg");
background-size:cover;
background-position:top left;
background-color:red;
}
/*Here we are using a CSS class selector (tdb-class) to
apply these CSS properties on HTML Elements */
</style>
<div class="tdb-class">
The Developer Brains CSS3 Turorials.
</div>
<head>
<!--Internal CSS-->
<!--We can use multiple Internal and external style sheets-->
<style>
.class{property: value}
</style>
<!--External CSS-->
<link rel="stylesheet" href="style-sheet.css">
</head>
<body>
<!--Inline CSS-->
<!--We can use inline style sheet on every HTML Element-->
<p style="property: value"></p>
</body>
<body>
<!--Internal CSS-->
<style>
.tdb{
padding:40px 0px;color:white;
text-align:center;
color:white;
font-weight:300;
background-color:gray;
}
</style>
<h2 class="tdb">CSS3 Online Tutorials</h2>
</body>
Result
When you run the code the output is same as the design given below.
<head>
<link rel="stylesheet" href="style.css">
</head>
Share TDB SCHOOL
Share this E-Learning Website on social media platforms with your friends and followers