Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of attribute selector</title> <style> p[lang|=en] { color: #fff; background: blue; } </style> </head> <body> <p lang="en">The style will apply to this paragraph.</p> <p lang="en-us">The style will also apply to this paragraph.</p> <p lang="us">The style will not apply to this paragraph.</p> </body> </html>