Scrolling Text

Task:

Develop a static web page that scrolls latest updates. When you place cursor on it, it's stop scrolling and start's scrolling when you out from it.

Code:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Latest Updates</title>
</head>
<body>
  <marquee direction="up" height="400" width="400" onmouseover="this.stop()" onmouseout="this.start()" bgcolor="cyan">
    <ul>
      <li>Scrolling Text-1</li>
      <li>Scrolling Text-2</li>
      <li>Scrolling Text-3</li>
      <li>Scrolling Text-4</li>
    </ul>
  </marquee>
</body>
</html>
Result
  • Scrolling Text-1
  • Scrolling Text-2
  • Scrolling Text-3
  • Scrolling Text-4