25/8/2019

Lesson 3

Change text Design

"style"

Using "style" Attribute can use like CSS.

EXAMPLE

<p style="font-size:32px; color:red;" >

Font Size 32px & Color Red.

Default font-size of modan browser is set 16px.Color is black.

If you can change text design easily, use "style" Attribute.

Attention
To start use ":". ":" divide between elements name and contens.
Never leave ";". ";" show end of elements and can addition other elements.

Color format

Color Name
red
bule
green
yellow
RGB Color
RED:rgb(255,0,0)
BLUE:rgb(0,0,255)
GREEN:rgb(0,128,0)
BLACK:rgb(0,0,0)
YELLOW:rgb(255,255,0)
Color Code
RED:#FF0000
BLUE:#0000FF
GREEN:#008000
BLACK:#000000
YELLOW:#ffff00

Which format we should choose?

We can choose it as you like.

Let's Try

Useing this text(cop & past your index.hmtl), try to design text.

Font Size 32px and color is RED.

Font Size 10px and color is BLACK.

Font Size 48px and color is BULE.

Font Size 16px and color is WHITE.