HTML Marquee Tag

Jan 26, 2015 By Mohammed Imtiyaz

Live Demo

NOTE: Keep the mouse over the text to stop scrolling and move the mouse to start scrolling.

Introduction

The HTML <marquee> tag is used to scroll the text or image displayed either horizontally across or vertically down your website page depending upon the settings of the page.

Html

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <title>HTML Marquee Tag</title>

</head>

<body>

    <marquee direction="up"

             scrollamount="5"

             onmouseover="this.stop();"

             onmouseout="this.start();">

        <p>Asp.net</p>

        <p>C#</p>

        <p>Vb.net</p>

        <p>HTML</p>

        <p>jQuery</p>

    </marquee>

</body>

</html>

Attributes

Attribute Value Description
behavior
  • scroll
  • slide
  • alternate
Defines the type of scrolling.
bgcolor
  • rgb(x,x,x)
  • #xxxxxx
  • colorname
Defines the background color of the marquee tag.
direction
  • up
  • down
  • left
  • right
Defines the direction of the scrolling text.
height pixels or % Defines the height of marquee.
loop number Specifies how many times the text should loop in marquee. The default value is infinite, which means that the marquee loops endlessly.
scrollamount number Define scrolling speed.
width pixels or % Defines the width of marquee.


Post your comment