0
how can I change/choose fonts in html?
7 Respostas
+ 2
Or use <font>
I really am not using this very well but search it
+ 2
Or use CSS
Example:
<p class="example">Hello!</p>
<style>
p.example
{
font-family"sans-serif"
}
I dont remember CSS that much try it maybe it works
+ 2
<font> tag is obsolete since Html4: don't use it ^^
Use of inline style is also highly discouraged... must prefer to separate content from style.
About use of particular font on web:
During long time, display a particular font on web page was dubious, because you cannot know which fonts will be available on client computer... That was the reason of the special font family names ( serif, sans serif, monospace, and so on... ) to guarante a minimal consistency in displaying font.
Today, evolutions of technologie ( grow up of bandwith, and the last versions of css in particular ) allows to define and download fonts: display consistency is reinforced, but still few differences from browsers to browsers occurs anyway: WE SHOULD NEVER EXPECT EXACTLY SAME DISPLAY ACCORDING TO THE CONTEXT ^^
+ 1
this is an example
<p style="font-family:verdana">This is a paragraph.</p>
0
thanks guys it was really helpful
0
Using the <font> element.
0
If you want to change in HTML then use this one... <font face="Arial"> Here is the arial font</font>. you just have to remember of fonts name and just replace from Arial place..