HTML CSS examples for CSS Selector:before
Use ::before selector to add text before the content of each <p> element
<!DOCTYPE html> <html> <head> <style> p::before {<!--from w w w. java2 s . c o m--> content: "News:"; } </style> </head> <body> <p>this is a test</p> <p>this is another test</p> </body> </html>