Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> :target { border: 2px solid #1c87c9; background-color: #eeeeee; } </style> </head> <body> <h2>Пример селектора :target</h2> <p> <a href="#example1">Jump to Paragraph 1</a> </p> <p> <a href="#example2">Jump to Paragraph 2</a> </p> <p id="example1"> <strong>Paragraph 1</strong> </p> <p id="example2"> <strong>Paragraph 2</strong> </p> </body> </html>