Prev Demo
CSS3
>
Attribute Selector
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <style> a:link { background-color: red; } a[target] { background-color: lightgreen; } </style> <p>Hyperlink without attribute : <a href="http://www.techfunda.com" title="www.TechFunda.com">TechFunda</a></p> <p>Hyperlink with attribute      : <a href="href://www.dotnetfunda.com" target="_blank">DotNetFunda</a></p> <b>Click on the above hyperlinks and notice the difference.</b> </body> </html>
Note: We DO NOT save your trial code in our database.
Output