QAds
Samsung S5233 with 3 MP Camera, MP3 player
$136.29
Apple iPod shuffle 4 GB Siyah
$49.13
Canon Digital Rebel XT 8MP Digital SLR Camera with EF-S 18-55mm f3.5-5.6 Lens
$254.25
Apple iPod shuffle 1 GB Pembe
$35.00
:: HOME » HTML » How To Use Tag Attributes
 
How To Use Tag Attributes

We can define attributes for some tags. At the coming documents, I will explain them in details. These attributes can be specific for a tag. Thus, you should know for which tag, you will use which attributes.  If you use a HTML editor like FrontPage or Dreamweaver, these editors show the attributes of the current tag you typed. Now I want to explain the logic of the tag attributes and some basic tags.

 

For example, Let's work on <p> tags which defines the paragraph. If we want to align our paragraph left we can use <p> tags like <p align="left">. As you see, we put the attribute inside the tag. "Align" attribute is not a specific attribute and you can use it inside any tag that you want to align text. You should be careful about that when you define attribute value you should put it between " ". It is not required for one word values but if our value contains more than one word, you have to use it.

 

Align attributes have 4 type values: left, right, center and justify.

 

Other tag is <font>  inside which we can define text color, font size , font face and moreover. If we want to define the text color: <font color="blue">text</font> or if we want to change font face: <font face="Tahoma">text</font>. We can also use two attribute together or more than one <font> tag.

 

<font color="red">this is red <font  face="Tahoma"> and this part is Tahoma</font></font>

 

When you using color attribute you can use color name or color code. Color codes are very difficult to understand and keep in mind. For example instead of red you can use "#FF0000" and instead of blue you can use "#0000FF".

 

Also, you can find a lot of font face by using HTML editor like " Times New Roman", "Arial". As I said before, you have to put these value between "…" because "Times New Roman" consists of more than one word .  

 

The other attribute we are going to use for <font> is "size". By this attribute we can define the size of text. <font size="5">text</font>.

 

For example;

 

<p align="center"><font size="5">With big font size<font color=red> and red color</font> let's start to write HTML. </font> Than, <font face="Arial">let's change the font Arial and <font size ="2">make font size  2</font></font></p>


HTML How To Use Tag Attributes HTML How To Use Tag Attributes HTML How To Use Tag Attributes
HTML How To Use Tag Attributes
NEW QUESTION
 
Your E-Mail Address
»
Your e-mail will never be shown!  
   
 
Question
»
Please type your question and please use [CODE] tag for your codes!  
  Add CODE Quote BOLD ITALIC Underline Align Left Align Center Align Right Add Line  
   
 
Human Check
»
Enter human check code below!  
   
 
       
 
* Your Question will be answered as soon as possible, probably within 24 hours!
HTML How To Use Tag Attributes HTML How To Use Tag Attributes HTML How To Use Tag Attributes
HTML How To Use Tag Attributes
 
mc sinema sudoku