Important Notice:

Course Content
Float Property
0/1
Z-Index
0/1
CSS object-fit Property
0/1
CSS Visibility Property
0/1
CSS (Chapter 4) M2-R5.1
About Lesson

::before

         यह pseudo element specify किये गए element के content के पहले कुछ content add करने के लिए प्रयोग किया जाता है।

::before

        This pseudo element is used to add some content before the content of the specified element

Example:

 

<html>

<head>

<style>

p::before

{  

content: ” – “;

}

</style>

</head>

<body>

<p>First Paragraph</p>

<p>Second Paragraph</p>

</body>

</html>

error: Content is protected !!