Thursday, August 31, 2017

Use of Style

Style use

A new attribute of Style, HTML, allows the use of CSS in HTML itself. Various elements of web page are designed by using style or CSS. Although designs can be made through other attributes like align = "center", align = "left", bgcolor = "green", height = "100px", width = "50px, bgcolor =" green "etc., The benefits are available.

Example Program: Using Other Attributes
<Html>
<Head>
<Title> www.tutohost.com </ title>
</ Head>
<Body bgcolor = "green">
<Font size = "2" face = "verdana">
This is a paragraph
</ Font>
<br />
<Font size = "5" face = "Tahoma" color = "red">
Bangladesh is a beautiful country
</ Font>
</ Body>
</ Html>

Example Program: Using Style
<Html>
<Head>
<Title> www.tutohost.com </ title>
</ Head>
<Body bgcolor = "green">
<Font style = "font-family: verdana; font-size: 15px">
This is a paragraph
</ Font>
<br />
<Font style = "font-size: 25px; font-family: Tahoma; color: red;" >
Bangladesh is a beautiful country
</ Font>
</ Body>
</ Html>


Open a Notepad and enter the code at the top and save the file by clicking on Save as by clicking on File name: index.html, Save as type: All files, save index.html file with Mozilla Firefox, and look like a picture next to it.

No comments:

Post a Comment

Flash Addition Tags

Flash Addition One of the most interesting elements of the Flash Animation Web site. Attractive navigation bars, banners, buttons, etc. t...