Marquee tag
The <marquee>
tag is a container tag of HTML that is implemented for
creating scrollable text or images within a web page.
Attribute |
Description |
width |
provides the width or breadth of a marquee. For example width="10" or width="20%" |
height |
provides the height or length of a marquee. For example height="20" or height="30%" |
direction |
provides the direction or way in which your marquee will allow you to
scroll. The value of this attribute can be: left, right, up, or down |
scrolldelay |
provides a feature whose value will be used for delaying each jump. |
scrollamount |
provides value for speeding the marquee feature |
behavior |
provides the scrolling type in a marquee. That scrolling can be like
sliding, scrolling, or alternate |
loop |
provides how many times the marquee will loop |
bgcolor |
provides a background color where the value will be either the name of
the color or the hexadecimal color code. |
<!DOCTYPE html>
<html lang="en">
<head>
<title>use
of marquee tag</title>
</head>
<body>
<h2>Marquee
tag</h2>
<marquee direction = left behavior="scrolling" bgcolor = yellow> this text is scrolling from left</marquee>
</body>
</html>
Image tag
<img> tag to insert pictures in a web document. The <img> tag is an empty tag, meaning it has no its ending tag.
The syntax of using <img> tag is:
<img src="path or URL"
alt="alternate text or image replacement text." Width=”value in pixel”
height = “value in pixel”>
Example
<!DOCTYPE html>
<html>
<head>
<title>use
of image tag</title>
</head>
<body>
<h2>Inserting
Image</h2>
<img
width =100px height="100px" src = sagarmatha.png alt="Highest
peak sagarmatha">
</body>
</html>