HTML
CSS
Deno
Examples
Do It Yourself
Type in your code below
Run
<!DOCTYPE html> <html> <head> <style> div+h1 { color: navy; } </style> </head> <body> <div>My next element will be selected.</div> <h1>This element is selected because it next element to <h1> element. (color = navy)</h1> <h1>This element is not selected, because it is not the next element to <div> element. </div></h1></h1></body> </html>