Descriere:Font si Basefont
Download:-
Autor:ANONIM
Sursa (Link-ul oficial):
Propria parere:Util .
Tutorialul:
Tag-ul <font> este folost pentru a modifica tipul de text, marimea si culoare. Foloseste atributele "size", "color", si "face" pentru a personaliza textul. Foloseste tag-ul <basefont> pentru a seta culoarea marimea si stilul intregului tau text.
In general tag-urile "font" si "basefont" nu se folosesc prea mult, in general se foloseste css-ul pentru a stabili atributele textului.
Marimea Font-ului
Seteaza marimea font-ului tau cu ajutorul atributului size al tagului font. Sunt acceptate valori intre 1 (cea mai mica) si 7 (cea mai mare). Valoarea standard a unui text normal este 3.
Cod: Selectaţi tot
p>
<font size="5">Acesta este un font de marime 5 </font>
</p>
Seteaza culoarea textului
Cod: Selectaţi tot
<font color="#990000">This text is hexcolor #990000</font>
<br />
<font color="red">This text is red</font>
Cod: Selectaţi tot
This text is hexcolor #990000
This text is red
Alege un stil de litera folosind tag-ul fontface. Poti alege orice font ai instalat, cu toate acestea, alege cu grija deoarece utilizatorul aflat pe pagina ta nuva putea vizualiza fontul respectiv daca nu il are instalat. Acesta va vedea in schimb font-ul default si anume Times New Roman. Solutia ar fi sa alegi mai multe font-uri asemanatoare ca aspect.
Cod: Selectaţi tot
<p>
<font face="Bookman Old Style, Book Antiqua, Garamond">This paragraph has had its font...</font>
<p>
Basefont
Cu ajutorul tag-ului basefont vei putea stabili valoare default a font-ului in pagina ta web. Recomandam sa specifici un basefont in cazul in care vei utiliza font-ul in HTML. Avem alaturat un model.
Cod: Selectaţi tot
<html> <body>
<basefont size="2" color="green">
<p>This paragraph has had its font...</p>
<p>This paragraph has had its font...</p>
<p>This paragraph has had its font...</p>
</basefont>
</body> </html>
Cod: Selectaţi tot
This paragraph has had its font formatted by the basefont tag!
This paragraph has had its font formatted by the basefont tag!
This paragraph has had its font formatted by the basefont tag!
Atribute
Cod: Selectaţi tot
Attribute= "Value" Description
size= "Num. Value 1-7" Size of your text, 7 is biggest
color= "rgb,name,or hexidecimal" Change font color
face= "name of font" Change the font type
Cod: Selectaţi tot
<p>
<font size="7" face="Georgia, Arial" color="maroon">C</font>ustomize your font to achieve a desired look.
</p>