Web Design with HTML | HTML Attributes | Our PC Solution

Web Design with HTML | HTML Attributes

HTML Attributes:


HTML Attributes is nery important for web design. It provide additional information about HTML documents / elements.
Attributes are always specified in the opening tag and attributes come in name/value pairs like: name="value".
Attribute values should always be enclosed in double style quotes or single style quotes.


It is necessary to use single quotes, when the attribute value itself contains quotes. For Example: name='welcome to "our pc solution" home'.


Attribute names and attribute values are case-insensitive and (X)HTML will demand lowercase attributes.
World Wide Web Consortium recommends lowercase attributes.

Try this Example:

<html>
<head>
<title>HTML Attributes</title>
</head>
<body bgcolor="#FFFFFF">
<font size="7" face="Tahoma" color="#0000FF">
This is a paragraph.
</font>
</body>
</html>

Some HTML Attributes :
Tag Attributes
<h1> to <h6> <p> align="center" align="left" align="right" title="Bangladesh"
<font> size="7" face="Tahoma" color="#0000FF"
<body> bgcolor="#FFFFFF" background="../images/html.gif"
<img><table> height="100 px" width="80 px" border="7 px"
<div> id="student" class="html" align="justify"
<input> type="password" name="user_password"
<a> href="https://www.facebook.com" title="Facebook"

Note: You will learn about all attributes in the Reference chapter of this tutorial.

0 Comments :

Post a Comment