Marquee tags are used to add an animated scroll effect to HTML elements. The tags within the marquee tags scroll from right to left by default at a default speed. To change this default speed you need to make use of SCROLLAMOUNT attribute.
SCROLLAMOUNT attribute accepts integer values.
The default value for this scrolling speed is 6.
If you give any value less than 6 then the text, images, links within the marquee tag will run slower than the default. Note we cannot have values less than or equal to zero.
Any value for SCROLLAMOUNT greater than 6 will make it move faster than the default speed.
Let's take some examples to demonstrate this :
Marquee Speed Scroll Amount
<!DOCTYPE html>
<html>
<body>
<marquee SCROLLAMOUNT = 1><p>Marquee with SCROLLAMOUNT as 1 </p></marquee>
<marquee SCROLLAMOUNT = 2><p>Marquee with SCROLLAMOUNT as 2 </p></marquee>
<marquee SCROLLAMOUNT = 3><p>Marquee with SCROLLAMOUNT as 3 </p></marquee>
<marquee SCROLLAMOUNT = 4><p>Marquee with SCROLLAMOUNT as 4 </p></marquee>
<marquee SCROLLAMOUNT = 5><p>Marquee with SCROLLAMOUNT as 5 </p></marquee>
<marquee SCROLLAMOUNT = 6><p><b>Marquee with SCROLLAMOUNT as 6 : Default Speed </b></p></marquee>
<marquee SCROLLAMOUNT = 7><p>Marquee with SCROLLAMOUNT as 7 </p></marquee>
<marquee SCROLLAMOUNT = 8><p>Marquee with SCROLLAMOUNT as 8 </p></marquee>
<marquee SCROLLAMOUNT = 9><p>Marquee with SCROLLAMOUNT as 9 </p></marquee>
<marquee SCROLLAMOUNT = 10><p>Marquee with SCROLLAMOUNT as 10 </p></marquee>
<marquee SCROLLAMOUNT = 12><p>Marquee with SCROLLAMOUNT as 12 </p></marquee>
<marquee SCROLLAMOUNT = 15><p>Marquee with SCROLLAMOUNT as 15 </p></marquee>
<marquee SCROLLAMOUNT = 18><p>Marquee with SCROLLAMOUNT as 18 </p></marquee>
</body>
</html>
Comments:
- Thank you! useful information, I was looking for this!
11 Aug 2020 11:02:24 GMT
- Further comments disabled!
More Posts related to Html,
- Comprehensive 256 Ascii code table with Html Hex IBM Microsoft Key
- HTML5 HELLO WORLD Example
- What is the doctype for HTML5?
- The author stylesheet specified in tag script is too long - document contains 21759 bytes whereas the limit is 10000 bytes
- W3 : character data is not allowed here html validation error
- HTML, HTML5. CSS, CSS3 Color Codes 2020
- Obsolete marquee element alternatives html5
- Create HTML button that looks like a href hyperlink
- All directional arrows codes for HTML
- Adding Sub Headings to Bootstrap Header tags
- Hyperlink in html (anchor tag) without a underline
- Align html element at the center of page vertically and horizontally
- How to remove old 404 pages ulrs from Google crawler
- How to set background color in HTML page?
- Default speed of Marquee tag : SCROLLAMOUNT
- W3 HTML validator warning Unable to Determine Parse Mode
- Get HTML table td, tr or th inner content value with id or name attribute
- reCaptcha Verification expired. Check the checkbox again
- How to word wrap in HTML
- Base 64 Index, Character and Binary Table
- Fibonacci series from 1 to 500 table
- How to make a div tag clickable
- Remove Html head and body tags from ckeditor source
- remove div vertical scroll
- Chessboard with pieces using pure HTML and CSS
More Posts:
- How to display Toast in a thread : Android - Android
- Change CKEditor Table Properties default width - CKEditor
- Mac OS X Stuck During Booting Gray Screen Logo and Spinner - Mac-OS-X
- Find Difference of two numbers - C-Program
- Share Multiple Images in WhatsApp using Android Intent - WhatsApp
- Instant Run requires Tools | Android | Enable ADB integration to be enabled - Android-Studio
- Setting up Cloud feature with Notepad++ - NotepadPlusPlus
- W3 : character data is not allowed here html validation error - Html
- List of 60 useful FTP Client Commands to access server - FTP
- Write javaScript code in Swedish using FikaScript - JavaScript
- Android Installation error: INSTALL_FAILED_OLDER_SDK on Device - Android
- Programmatically Send an Email from Android App using Intent - Android
- jQuery : Move to top of the page - jQuery
- PHP Code for sending Emails - PHP
- Error:The SDK Build Tools revision (XX.X.X) is too low for project. Minimum required is XX.X.X - Android