how can I change/choose fonts in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can I change/choose fonts in html?

13th Jan 2017, 1:51 PM
Minas Koukis
Minas Koukis - avatar
7 Answers
+ 2
Or use <font> I really am not using this very well but search it
13th Jan 2017, 2:31 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 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
13th Jan 2017, 2:33 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 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 ^^
13th Jan 2017, 2:47 PM
visph
visph - avatar
+ 1
this is an example <p style="font-family:verdana">This is a paragraph.</p>
13th Jan 2017, 1:55 PM
Ayoub Bani
Ayoub Bani - avatar
0
thanks guys it was really helpful
13th Jan 2017, 2:36 PM
Minas Koukis
Minas Koukis - avatar
0
Using the <font> element.
13th Jan 2017, 10:55 PM
iamaprogrammer
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..
27th Jan 2017, 4:13 PM
Mohit Bisht
Mohit Bisht - avatar