• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Html » Tutorial » HTML Marquee Tag
Next →
← Prev

HTML Marquee Tag

By Dinesh Thakur

This tag is used to scroll text horizontally across the screen. It is mainly used to deliver a specific message to the visitor or to scroll Ads on a page. It is not a standard HTML tag and so the browser support for it is typically limited to Internet explorer.

The following lines of code show the use or marquee tag:

<HTML>
  <HEAD><TITLE> MARQUEE TAG</TITLE></HEAD>
  <BODY>
    <H1><MARQUEE>HTTP://ECOMPUTERNOTES.COM</MARQUEE></H1>
</BODY>
</HTML>

The following code is displayed in which the text within the <MARQUEE>and </MARQUEE> tags scrolls across the screen from right to left. But by including the attribute direction=”right” in marquee tag code changes the direction of flow of text i.e left to right.

By including the attribute direction=”up” in marquee tag of code changes the direction of flow of text from bottom to top and direction=” down” changes the flow of text from top to bottom.

&lt;HTML&gt;
&lt;HEAD&gt;  
&lt;TITLE&gt;EXAMPLE1&lt;/TITLE&gt;
&lt;/HEAD&gt;
   &lt;BODY BGCOLOR=”PINK”&gt;
     &lt;MARQUEE DIRECTION=”UP”&gt;
       &lt;H1 ALIGN=”CENTER”&gt;LAPTOPS&lt;BR&gt;HCL&lt;BR&gt;IBM&lt;BR&gt;HP&lt;BR&gt;LENOVO&lt;BR&gt;&lt;/H1&gt;
     &lt;/MQRQUEE&gt;
   &lt;/BODY&gt;
&lt;/HTML&gt;
Attributes used in <MARQUEE> tag
AttributePossible valuesFunctional
BgcolorAnv standard color name or hexadecimal color value.Specifies the background color of the marquee.
DirectionLeft, RightSpecifies the direction in which the marquee contents Scrolls.
HeightAny valid percentage or no. of pixelsSpecifies the vertical dimension of the marquee
BehaviorScroll, Slide, AlternateSets the behavior of marquee to one of following:

Scroll: Text scrolls like a stock ticker.

Slide: Text slides into view.

Alternate: Text alternates between scrolling  and  sliding.

WidthAny valid percentage or no. of pixelsSpecifies the horizontal dimension of the marquee.
HspaceAny valid percentage or no. of pixelsSpecifies the left and right margin of the marquee
VspaceAny valid percentage or no. of pixelsSpecifies the top and bottom margin of the marquee.
LoopAny positive integer of INFINITEControls the number of appearance of the marquee content.
ScrollamountNumber of pixelsSpecifies the shift of marquee text
ScrolldelayNumber specifying the delay in millisecondsSpecifies how often the marquee text redraws.

 

 

You’ll also like:

  1. The hr tag in HTML
  2. HTML Anchor Tag
  3. HTML table tag
  4. HTML button tag
  5. HTML form tag
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

HTML Tutorials

HTML Tutorials

  • HTML - Home
  • HTML - History
  • HTML - Lists
  • HTML - Unordered List
  • HTML - Ordered Lists
  • HTML - Frame Tag
  • HTML - Input Type
  • HTML - Input Type="File"
  • HTML - Input Type="Hidden"
  • HTML - Form Tag
  • HTML - Img Tag
  • HTML - Anchor Tag
  • HTML - Table Tag
  • HTML - Span Tag
  • HTML - Button Tag
  • HTML - Doctype
  • HTML - Fieldset Tag
  • HTML - Links Tag
  • HTML - Drop Down Menu
  • HTML - Accesskey
  • HTML - Cgi
  • HTML - Post Method
  • HTML - Background Image
  • HTML - Text Area
  • HTML - TabIndex
  • HTML - Align Center
  • HTML - Address Tag
  • HTML - Thumbnails
  • HTML - Marquee Tag
  • HTML - Line Break
  • HTML - Blockquote
  • HTML - HR Tag
  • HTML - Image Center
  • HTML - Center Text
  • HTML - Link CSS
  • HTML - Html Vs Html5

Other Links

  • HTML - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW