Sublime Text
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style> p:last-of-type{ border:2px solid red; } </style> </head> <body> <div>Lập Trình Web 01</div> <div> <h1>Lập Trình Web 02</h1> <p>Lập Trình Web 03</p> <p>Lập Trình Web 04</p> <h3>Lập Trình Web 05</h3> </div> <h1>Lập Trình Web 06</h1> <span>Lập Trình Web 07</span> <span>Lập Trình Web 08</span> </body> </html>
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style> p:last-of-type{ border:2px solid red; } </style> </head> <body> <div>Lập Trình Web 01</div> <div> <h1>Lập Trình Web 02</h1> <p>Lập Trình Web 03</p> <p>Lập Trình Web 04</p> <h3>Lập Trình Web 05</h3> </div> <h1>Lập Trình Web 06</h1> <span>Lập Trình Web 07</span> <span>Lập Trình Web 08</span> </body> </html>