<!DOCTYPE html> <html> <body> <p id="blink">This is an example of blinking text.</p> <script> var x = document.getElementById('blink'); setInterval(function() { x.style.opacity = (x.style.opacity == 0 ? 1 : 0); }, 2000); </script> </body> </html>