Part 2: HTML Attributes
Part 3: HTML Table
Part 4: Colspan and Rowspan
What is an attributes in HTML?
Attribute is an additional command towards the element which are written after a start tag and come in name/value pairs like: name=”value”. The values are always enclosed in quotes.
Here are the examples of attribute:
<h3 style="background-color:red;"> </h3> |
|
<body style="background-color:green;"> |
|
<FONT COLOR="Lime"> </FONT> | To color the font in lime. |
<FONT SIZE=5> </FONT> | To set the size of the font. |
<A HREF="URL"> </A> | Establishes a link to another Website or Webpage. |
<a href="page2.htm"> </a> | To link to another page on the same website. |
<a href="Subfolder/page2.htm"> </a> | To link to another page in the subfolder on the same website. |
<a href="../page2.htm"> </a> | The other way around of the example above. |
<h1 id="heading1"> </h1> | To mark the element to which you want to link it within a page. |
<a href="#heading1"> </a> | To link to an element which you had marked within a page. |
<A HREF="MAILTO:sadhycia@gmail.com"> </A> | Create a link to your email address. |
<a href="http://www.sadhycia.blogspot.com/" title="Visit my blog :)"> </a> | To add a title on your link, like this: You can try to place your cursor over this link. |
<p align="right"> </p> |
To align the text to the right.
|
<FONT FACE=”Courier new, arial, helvetica”> </FONT> | To select which types of font we use. |
<img src="image url "> | To insert an image. |
About adding an image, there are 3 types of images which can be inserted into your pages:
- JPG / JPEG (Joint Photographic Experts Group)
- GIF (Graphics Interchange Format)
- PNG (Portable Network Graphics)
No comments:
Post a Comment