How css(Cascading Style Sheet) styles override each other.

<!DOCTYPE html>
<html>
<head>
<tittle>getting started with fauna</fauna>
</head>
<style>
.greentext{
color: green;
}
</style>
<body>
<h3 class=”greentext bluetext”>I am a technical writer of Fauna</h2>
<p class=”greentext bluetext”> And am here to produce educative content.</p>
</body>
</html>
<html>
<head>
<tittle>getting started with fauna</fauna>
</head>
<style>
.greentext{
color: green;
}
.bluetext{
color: blue;
}
</style>
<body>
<h3 class=”greentext bluetext>I am a technical writer of Fauna</h2>
<p class=”greentext bluetext> And am here to produce educative content.</p>
</body>
</html>
<html>
<head>
<tittle>getting started with fauna</fauna>
</head>
<style>
.greentext{
color: green;
}
.bluetext{
color: blue;
}
</style>
<body>
<h3 class=”greentext bluetext” style=”color:pink;”>I am a technical writer of Fauna</h2>
<p> And am here to produce educative content regarding technology</p>
</body>
</html>
<html>
<head>
<tittle>getting started with fauna</fauna>
</head>
<style>
.greentext{
color: green;
}
.bluetext{
color: blue;
}
#violettext{
color: violet;
}
</style>
<body>
<h2 class=”greentext bluetext” id=”violettext”>I am a technical writer of Fauna</h2>
<p> And am here to produce educative content regarding technology</p>
</body>
</html>

<html>
<head>
<tittle>getting started with fauna</fauna>
</head>
<style>
.greentext{
color:green !important;
}
.bluetext{
color:blue;
}
#violetcolor{
color:violet;
}
</style>
<body>
<h2 class=”greentext bluetext” id=”violettext”>I am a technical writer of Fauna</h2>
<p> And am here to produce educative content regarding technology</p>
</body>
</html>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abiola Gbolahan Alabi

Abiola Gbolahan Alabi

18 Followers

Abiola Gbolahan by name, Data scientist💻| part-time tech writer and full time learner of data science concepts.