Sublime Text
<!DOCTYPE html> <html> <body> <script> var number = 75; if(number > 50){ document.write("<p>Tài liệu học HTML</p>"); document.write("<p>Tài liệu học CSS</p>"); document.write("<p>Tài liệu học JavaScript</p>"); } </script> <i>(Bạn thử đổi giá trị của biến number nhỏ hơn 50 để xem coi đoạn mã có được thực thi không nhé)</i> </body> </html>
<!DOCTYPE html> <html> <body> <script> var number = 75; if(number > 50){ document.write("<p>Tài liệu học HTML</p>"); document.write("<p>Tài liệu học CSS</p>"); document.write("<p>Tài liệu học JavaScript</p>"); } </script> <i>(Bạn thử đổi giá trị của biến number nhỏ hơn 50 để xem coi đoạn mã có được thực thi không nhé)</i> </body> </html>