We need to use <marquee> tag to run text and/or images on webpages. We may run them in different ways using different values. To show the news headlines or important messages we may use <marquee> tag. Some examples of Marquee is given below.
Normal Marquee:
It's a simple marquee created using the normal <marquee> tag without any customization. Necessary codes for the above marquee is given below.
<html>
<head>
<title>iDhali</title>
</head>
<body>
<marquee> www.iDhali.com </marquee>
</body>
</html>
How to test the above marquee?
1. Press Windows Key + R buttons together to open the RUN Command Box. Then type Notepad into the Text Input Box and press the Enter Key or click on the OK button. A new notepad program will open.
2. Now copy and paste the above codes or type them into the Notepad. Click on File from the menu, a drop-down menu will open. Then click on Save As... , a pop-up window will open. Provide a name with .html or .htm extension as click on the Save button.
3. Finally locate the HTML files and double click on that to open. The file will must open with the default browser of your Computer System.
N.B. Remember only the line <marquee> www.iDhali.com </marquee> is enough to create the marquee. But the rest you need to use to form a html file.
Formatted Marquee:
It's a formatted marquee, I have formatted using <font> tag. But rest of the codes are same to the above codes of the normal marquee. However, the codes for the above Marquee is given below...
<html>
<head>
<title>iDhali</title>
</head>
<body>
<marquee><font color="3778CD" face="calibrimath" size="14">www.iDhali.com</font></marquee>
</body>
</html>
Code Description:
All the above codes are to form a webpage. Only the line in italic form is to create the above formatted marquee. To create the marquee I have used the simple <marque> tag, but customized <font> tag to format the text. color="3778CD" is used to define the text color, face="calibrimath" is used to define a font and size="14" is used to define the font size.
Speed Controlled Marquee:
It's a speed controlled marquee, I have created using the code scrollamount="1". The value may be 1, 2, 3 or anything you like. The code for the above marquee is given below...
<html>
<head>
<title>iDhali</title>
</head>
<body>
<marquee scrollamount="1"><font color="3778CD" size="14" face="Verdana">www.iDhali.com</font></marquee>
</body>
</html>
It's a simple marquee created using the normal <marquee> tag without any customization. Necessary codes for the above marquee is given below.
<html>
<head>
<title>iDhali</title>
</head>
<body>
<marquee> www.iDhali.com </marquee>
</body>
</html>
How to test the above marquee?
1. Press Windows Key + R buttons together to open the RUN Command Box. Then type Notepad into the Text Input Box and press the Enter Key or click on the OK button. A new notepad program will open.
2. Now copy and paste the above codes or type them into the Notepad. Click on File from the menu, a drop-down menu will open. Then click on Save As... , a pop-up window will open. Provide a name with .html or .htm extension as click on the Save button.
3. Finally locate the HTML files and double click on that to open. The file will must open with the default browser of your Computer System.
N.B. Remember only the line <marquee> www.iDhali.com </marquee> is enough to create the marquee. But the rest you need to use to form a html file.
Formatted Marquee:
It's a formatted marquee, I have formatted using <font> tag. But rest of the codes are same to the above codes of the normal marquee. However, the codes for the above Marquee is given below...
<html>
<head>
<title>iDhali</title>
</head>
<body>
<marquee><font color="3778CD" face="calibrimath" size="14">www.iDhali.com</font></marquee>
</body>
</html>
Code Description:
All the above codes are to form a webpage. Only the line in italic form is to create the above formatted marquee. To create the marquee I have used the simple <marque> tag, but customized <font> tag to format the text. color="3778CD" is used to define the text color, face="calibrimath" is used to define a font and size="14" is used to define the font size.
Speed Controlled Marquee:
It's a speed controlled marquee, I have created using the code scrollamount="1". The value may be 1, 2, 3 or anything you like. The code for the above marquee is given below...
<html>
<head>
<title>iDhali</title>
</head>
<body>
<marquee scrollamount="1"><font color="3778CD" size="14" face="Verdana">www.iDhali.com</font></marquee>
</body>
</html>
No comments:
Post a Comment