Marquee Tag

Marquee tag are used for display the moving content on the web browser.

Attributes

  1. Direction: To specify direction of moving content like left, right, up, down.
  2. Scroll amount: To specify the speed of the content.
  3. Loop: To specify how many time that text has to move on the browser window.
  4. Behavior: To specify the style to the moving content. It have attribute scroll, alternate, slide.

EXAMPLE NO 1

<!DOCTYPE html>
<html>

<head>
<title>HTML marquee Tag</title>
</head>

<body>
<marquee>Codingknack</marquee>
</body>

</html>

OUTPUT

Codingknack

EXAMPLE NO 2

<!DOCTYPE html>
<html>

<head>
<title>HTML marquee Tag</title>
</head>

<body>
<marquee width = “50%”>Codingknack</marquee>
</body>

</html>

OUTPUT

HTML marquee Tag Codingknack

EXAMPLE NO 3

<!DOCTYPE html>
<html>

<head>
<title>HTML marquee Tag</title>
</head>

<body>
<marquee direction = “up”>Codingknack</marquee>
</body>

</html>

OUTPUT

HTML marquee Tag Codingknack

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu