Sublime Text
<!DOCTYPE html> <html> <head> <style type="text/css"> p:empty{ width:300px; height:40px; background-color: red; } div:empty{ width:300px; height:40px; background-color: green; } </style> </head> <body> <p></p> <p>Hướng dẫn học lập trình web</p> <p></p> <div></div> <div>Hướng dẫn học lập trình web</div> </body> </html>
<!DOCTYPE html> <html> <head> <style type="text/css"> p:empty{ width:300px; height:40px; background-color: red; } div:empty{ width:300px; height:40px; background-color: green; } </style> </head> <body> <p></p> <p>Hướng dẫn học lập trình web</p> <p></p> <div></div> <div>Hướng dẫn học lập trình web</div> </body> </html>