Now i am going to tell you about attributes of html:
Html Attribute:
Attributes come in name/value like:name="value"The Language Attribute:
Lang attribute can be declared in <html> tag.Language declaration is important for search engines:
In this first two words specify language(en) and for more dialect add two more letters(US).
Attributes Title:
Paragraphs of html are defined as <p> tags.In following example ,<p> element has title attribute.
Example:
Href Attribute:
Links in html are described with <a> tags.Link is specified in href attribute.I will teach you more about <a> in later posts.
Size Attribute:
Images in html are described with <img> tag.First we write source(src),and for image(width and height) all will be provided as attributes:
Size of image is specified in pixels:width="500" means 500 screen pixels wide.
Alt Atrribute:
The alt attribute is used,if image will not be displayed written content will be displayed.Example:
This is about Html attributes.
No comments:
Post a Comment