Thursday, June 4, 2020

HTML Font

Font

Font

 

You will have different look and feel of a web page on different machines running different operating systems like WindowsHere

HTML <font> tag is deprecated in version 4.0 onwards and now all fonts are set by using CSS. Here is the simple syntax of setting font of a body of web page.

body {

   font-family: "new century schoolbook";

} 

or 

<body style = "font-family:new century schoolbook;">

 

Example

 

<html>

   <head>

      <title>Font Setting Using CSS</title>

   </head>

   <body>

      <p>Change any of the style and try it.</p>

      <div style = "font-family:verdana;">This is demo for font family</div>

      <br />

       <div style = "font-size:120%;">This is demo for font size</div>

      <br />

       <div style = "font-size:14pt;">This is demo for font size</div>

   </body>

</html>

 

Fonts for Microsoft Systems

Font

Font

Font

Andale Mono

Arial

Arial Bold

Arial Italic

Arial Bold Italic

Arial Black

Comic Sans MS

Comic Sans MS Bold

Courier New

Courier New Bold

Courier New Italic

Courier New Bold Italic

Georgia

Georgia Bold

Georgia Italic

Georgia Bold Italic

Impact

Lucida Console

Lucida Sans Unicode

Marlett

Minion Web

Symbol

Times New Roman

Times New Roman Bold

Times New Roman Italic

Times New Roman Bold Italic

Tahoma

Trebuchet MS

Trebuchet MS Bold

Trebuchet MS Italic

Trebuchet MS Bold Italic

Verdana

Verdana Bold

Verdana Italic

Verdana Bold Italic

Webdings

 

 

Following tables list down all the 7-BIT ASCII codes and their equivalent HTML Entity Codes.

 

7-BIT Printable ASCII Characters

ASCII Characters

Description

HTML Entity Codes

 

space

&#32;

!

exclamation mark

&#33;

"

quotation mark

&#34;

#

number sign

&#35;

$

dollar sign

&#36;

%

percent sign

&#37;

&

ampersand

&#38;

'

apostrophe

&#39;

(

left parenthesis

&#40;

)

right parenthesis

&#41;

*

asterisk

&#42;

+

plus sign

&#43;

,

comma

&#44;

-

hyphen

&#45;

.

period

&#46;

/

slash

&#47;

0

digit 0

&#48;

1

digit 1

&#49;

2

digit 2

&#50;

3

digit 3

&#51;

4

digit 4

&#52;

5

digit 5

&#53;

6

digit 6

&#54;

7

digit 7

&#55;

8

digit 8

&#56;

9

digit 9

&#57;

:

colon

&#58;

;

semicolon

&#59;

< 

less-than

&#60;

=

equals-to

&#61;

> 

greater-than

&#62;

?

question mark

&#63;

@

at sign

&#64;

A

uppercase A

&#65;

B

uppercase B

&#66;

C

uppercase C

&#67;

D

uppercase D

&#68;

E

uppercase E

&#69;

F

uppercase F

&#70;

G

uppercase G

&#71;

H

uppercase H

&#72;

I

uppercase I

&#73;

J

uppercase J

&#74;

K

uppercase K

&#75;

L

uppercase L

&#76;

M

uppercase M

&#77;

N

uppercase N

&#78;

O

uppercase O

&#79;

P

uppercase P

&#80;

Q

uppercase Q

&#81;

R

uppercase R

&#82;

S

uppercase S

&#83;

T

uppercase T

&#84;

U

uppercase U

&#85;

V

uppercase V

&#86;

W

uppercase W

&#87;

X

uppercase X

&#88;

Y

uppercase Y

&#89;

Z

uppercase Z

&#90;

[

left square bracket

&#91;

\

backslash

&#92;

]

right square bracket

&#93;

^

caret

&#94;

_

underscore

&#95;

`

grave accent

&#96;

a

lowercase a

&#97;

b

lowercase b

&#98;

c

lowercase c

&#99;

d

lowercase d

&#100;

e

lowercase e

&#101;

f

lowercase f

&#102;

g

lowercase g

&#103;

h

lowercase h

&#104;

i

lowercase i

&#105;

j

lowercase j

&#106;

k

lowercase k

&#107;

l

lowercase l

&#108;

m

lowercase m

&#109;

n

lowercase n

&#110;

o

lowercase o

&#111;

p

lowercase p

&#112;

q

lowercase q

&#113;

r

lowercase r

&#114;

s

lowercase s

&#115;

t

lowercase t

&#116;

u

lowercase u

&#117;

v

lowercase v

&#118;

w

lowercase w

&#119;

x

lowercase x

&#120;

y

lowercase y

&#121;

z

lowercase z

&#122;

{

left curly brace

&#123;

|

vertical bar

&#124;

}

right curly brace

&#125;

~

tilde

&#126;

 

 


No comments:

Post a Comment