HTML
Design you web page by yourself
Attributes
HTML elements can have associated properties known as attributes, to further define the tags.
The general syntax is as follows:
<tag attribute 1 = "value" attribute 2 = "value" ... >
General rules are
- Any number of attributes can be added to a tag
- Attributes are added in the name="value" format.
- Attributes are separated by spaces.
- Attribute names are not case sensitive.
Example
<html>
<head>
<title>Html page with attributes</title>
</head>
<body bgcolor="blue" dir="ltr" lang="en">
<h1 align="center">Html page with attributes</h1>
<p> This page uses tags with attributes. Notice the use of attributes in the body
<p>tag ,I defined the entire back color page by using the bgcolor attribute, the dir <p>attribute specifies the text direction "left to right, the lang attribute specifies <p>the page language.
<p>
<p> I added the align="center" to place the header at the page center.
</body>
</html>
Through this tutorial I will add attributes to tags, you will learn and memorize these attributes by time.