Graphic Design Classes Online

CSS ::first-line Selector

HTML Code

<!DOCTYPE html>
<html>
<head>
<style>
p::first-line {
background-color: yellow;
}
</style>
</head>
<body>

<h1>WWF’s Mission Statement</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged..</p>

</body>
</html>

HTML View

WWF’s Mission Statement

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged..

If you want to join my online or offline graphic designing course than just call me - 9334029817

Related Posts

Leave a Reply