<!DOCTYPE html> <html> <head> <style> code ~ kbd{ font-family:cursive; color:rgb(0,225,0); } </style> </head> <body> <code>This is the next immediate sibling to the p element.</code> <p>This is a paragraph.</p> <kbd>This is used for keyboard input.</kbd> <p><strong>Note:</strong> It is necessary to note the difference between '~' and '+' combinators.</p> </body> </html>
Run
×
Share