Technoblog
Technical blog, HTML Tutorials, ASP Tutorials, JAVA Tutorials, Windows, Linux etc
Wednesday, 9 November 2011
Font weight Prperty in CSS
Font weight property uses to change font weight such as bold, normal etc
Example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled 1</title> </head> <body style="background-color:black;"> <p style="font-family:Arial;font-size:20px; color:green; font-weight:bold"> This is bold font </p> <p style="font-family:Arial;font-size:20px; color:red; font-weight:lighter;"> This is lighter font </p> <p style="font-family:Arial;font-size:20px; color:yellow; font-weight:bolder;"> This is bolder font </p> <p style="font-family:Arial;font-size:20px; color:purple; font-weight:normal; "> This is normal font </p> </body> </html>
Result:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment