welcome to tutorialfamily

html attributes – learn online html

Html attributes of an element keep the styling with value.

An attributes have their value

Html attributes (href)

href are used for a linking url to redirect one page to another page.
HTML contain one or more attributes in a tag. One element tag have one or more attributes.
This attributes define to browser how element behave. It behave as element name and value. attributes like
title,
height, width, src,
alt, style, lang and many more.

example


         		
<a href=”#”> This is a link demo </a>									


Html attributes (title)

title attributes are define as a title of element. means it work as a tooltip. when you mouse hover on element, you can see title as a tooltip message.
Here we have give a one example:: title added to paragraph p tag.

example


         		
<p title=”volvo”> This is my car </p>									


height, width, src, alt attributes

Here we can use this attributes in many element. But we use now it in image tag.
The height attributes define height of element of HTML document.
The width attributes define width of element of HTML document.
The src attributes define src of element of HTML document. we need add file path at src attributes.
The alt attributes define alternative text of element of HTML document. alt attributes are used for a image tag, we need to put image information in this attributes.

example


         		
<img src=”” height=”300px” width=”300px” alt=”this is image of…”>								


Html attributes (style)

Here we can use this attributes in many element and give inline css to element.
The style attributes define css of element of HTML document.
The style attributes work as a inline css.

example


         		
<p style=”color:#ff0000″> This is my car </p>									


Our Content