HTML Attributes and Task
HTML Attributes and Task
Web Programming
Dr.Priyanka N
Syllabus
HTML Attributes
<!DOCTYPE html>
<html>
<body>
<h2>The alt Attribute</h2>
<p>The alt attribute should reflect the image content, so users
who cannot see the image get an understanding of what the
image contains:</p>
<img src="Rose.jpeg" alt="Beautiful red rose" width="500"
height="600">
</body>
</html>
Common Tags Used
HTML <sub> Tag
Preformatted text
HTML Style Attribute
Font, Color and Size
Text Alignment
Marquee Tag
• The Marquee behavior attribute in HTML is used to set the behavior of scrolling.
• The default value is scroll.
• Syntax:
<marquee behavior=slide >
Attribute value:
alternate: It defines that text moving to the end and then starting in the opposite
direction.
scroll: It has a default value. Specify the text scrolls to the end and starts over.
slide: It specifies the text moving to the end and then stops it.
Marquee Tag
Task-1
Task-2
Task-3
Task-4
Task-5