HTML Attributes Examples
HTML Attributes Examples
<!DOCTYPE html>
<html>
<head>
<title>HTML Title Attribute Example</title>
</head>
<body>
<h2 title="The Title Attribute">The Title Attribute</h2>
<p title="I am a Tooltip">
Mouse over this heading, to Display the title Attribute as a Tooltip.
</p>
</body>
</html>
Output
The href Attribute Example
<!DOCTYPE html>
<html>
<head>
<title>HTML href Attribute Example</title>
</head>
<body>
<a href="http://www.tutorialsroot.com">This is a link</a>
</body>
</html>
Output
The width and height Attributes Example
<!DOCTYPE html>
<html>
<head>
<title>HTML width and height Attribute Example</title>
</head>
<body>
<img src="image_hyperlink.jpg" width="500" height="600">
</body>
</html>
Output
The alt Attribute Example
<!DOCTYPE html>
<html>
<head>
<title>HTML alt Attribute Example</title>
</head>
<body>
<img src="image_hyperlink.jpg" alt="Image Hyperlink" width="500" height="600">
</body>
</html>
Output
The Attribute without quotes Example
<!DOCTYPE html>
<html>
<head>
<title>HTML Attribute without quotes Example</title>
</head>
<body>
<a href=http://www.tutorialsroot.com>This is a link</a>
</body>
</html>
Output