0% found this document useful (0 votes)
7 views19 pages

HTML Attributes and Task

The document provides an overview of HTML attributes and elements, including the use of the <img> tag for images and the <marquee> tag for scrollable text. It explains attributes as name/value pairs and highlights the importance of the alt attribute for accessibility. Additionally, it describes the behavior attribute of the marquee tag, detailing its scrolling options.

Uploaded by

Harshit Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views19 pages

HTML Attributes and Task

The document provides an overview of HTML attributes and elements, including the use of the <img> tag for images and the <marquee> tag for scrollable text. It explains attributes as name/value pairs and highlights the importance of the alt attribute for accessibility. Additionally, it describes the behavior attribute of the marquee tag, detailing its scrolling options.

Uploaded by

Harshit Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

BCSE203E

Web Programming
Dr.Priyanka N
Syllabus
HTML Attributes

HTML elements can have attributes

Attributes provide additional information about an element

Attributes are always specified in the start tag

Attributes come in name/value pairs like: name="value"

The link address is specified in the href attribute


HTML Images
HTML images are defined with the <img> tag.

<!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> tag is a container tag of HTML that is


implemented for creating scrollable text or images
within a web page from either left to right or vice versa,
or top to bottom or vice versa
Marquee Tag
Marquee behavior attribute

• 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

You might also like