0% found this document useful (0 votes)
25 views

Tag Attributes

The document summarizes common HTML tag attributes such as href, src, width, height, alt, style, lang, and title. It explains that the href attribute specifies the link address for <a> tags, the src attribute specifies the image filename for <img> tags, and the width and height attributes define the size of images. It also outlines that the alt attribute provides alternative text for images, the style attribute controls styling, the lang attribute identifies the document language, and the title attribute displays a tooltip.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Tag Attributes

The document summarizes common HTML tag attributes such as href, src, width, height, alt, style, lang, and title. It explains that the href attribute specifies the link address for <a> tags, the src attribute specifies the image filename for <img> tags, and the width and height attributes define the size of images. It also outlines that the alt attribute provides alternative text for images, the style attribute controls styling, the lang attribute identifies the document language, and the title attribute displays a tooltip.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

TAG ATTRIBUTES

HTML links are defined with the <a> tag.

href The link address is specified in the href


attribute.

HTML images are defined with the <img> tag.


src The filename of the image source is
specified in the src attribute.

Images in HTML have a set of size attributes,


width and height which specifies the width and height of the
image.

The alt attribute specifies an alternative text


to be used, when an image cannot be
alt displayed.
The value of the attribute can be read by
screen readers. This way, someone
“listening” to the webpage, e.g. a vision
impaired person, can “hear” the element.

The style attribute is used to specify the


style styling of an element, like color, font, size,
etc.

The language of the document can be


declared in the <html> tag.
lang The language is declared with the lang
attribute.
Declaring a language is important for
accessibility applications (screen readers) and
search engines.

Here, a title attribute is added to the


title <p>element. The value of the title attribute
will be displayed as a tooltip paragraph.

You might also like