> Online tutorial : HTML font
Showing posts with label HTML font. Show all posts
Showing posts with label HTML font. Show all posts

HTML frameset

HTML frames
HTML frames allow us to present document in multiple views.Using the multiple view we can keep certain information visible and at the same time other views are scrolled or replaced.
<frameset cols="150,*">
This allow us to divide the two columns.(i.e vertical frames).One are occupying the size of 150 pixels and the other occupies the remaining portion of the window.
<frameset  rows='20%,30%,50%, cols='30%*'>

Example
<html>
<head>
<title>
HTML Frame
</title>
</head>
<frameset cols="50%,50%">
<frame src="htmlalign.html" name="leftvertical">
<frameset rows="*,170%">
<frame src="htmlfont.html" name="right">
<frame src="htmlformatting.html" name="right_bottom">
</frameset>
</frameset>
</html>
Output


HTML Alignment

Text Alignment
We can align the text at left,right,center using <div> tags.
syntax
<div align='left/center/right'>
Example

<html>
<head>
<title>
HTML Alignment
</title>
</head>
<body>
<div align='left'>This is left align</div>

<div align='right'>This is right align</div>

<div align='center'>This is center align</div>
</body>
</html>

Output

This is left align

This is right align

This is center align

HTML font

Font in html
We can set the font,size and color of the text in the webpage.The tag <basefont>is the set the font.
Syntax
<basefont face=font_name>
Example
<html>
<head>
<title>
Html font
</title>
</head>
<body>
<basefont face='arial' size='20'>
Today is greeny day<br/>
Today is graceful day</br>
</font>
</body>
</html>

Output

Today is greeny day
Today is graceful day