📖 Samacheer Kalvi · 11th TN - English Medium · Computer Applications · Page 292question

Unit III Web Page Development using · Part 3

Chapter 7: CHAPTER 13 · Computer Applications

Italic; Font-weight : bold; } Font size Font-size Size in pixels P { Font-family : “Times New Roman”; Font-style : Italic; Font-size : 14px; } Background Colour Background Colour Body { background-color : violet; } Border Colour Border Border thickness <space> border style <space>Predefined_ H2 { border : 2px solid red; } HTML supports nearly color names. Background Image Background- image URL (“image name with extension”) Body { background-image : url ( “Flower.gif” ); } Background- repeat norepeat Body { background-image : url ( “Flower.gif” ); background-repeat : norepeat; } Background- position Direction Body { background-image : url ( “Flower.gif” ); background-repeat : norepeat; background-position : right top; } Paragraph Margin Margin-top Margin- bottom Margin-left Margin-right Margin size in pixels P { Margin-top : 50px; Margin-left : 50px; } Chapter Pages Creating CSS style sheets: • Open an empty notepad. • Type the style properties and their values as given in the table given above. • Save the file with extension .css P { font-style : Italic; color :MediumSeaGreen; } H1 { border:2px solid red; } The above code should be saved with extension .css Illustration .

My First CSS file Linking CSS with HTML The <link> tag is used to add CSS file with HTML in head section. While using <link> tag, the following attributes are also included along with standard values. rel = “stylesheet” type = “text/css” The href attribute is used to link the .css file. General format of <Link> tag <Link rel = “stylesheet” type = “text/css” href = > Mystyle.css H1 { font-family : "Comic Sans MS"; Font-weight : Bold; border:2px solid blue; } P { font-style : Italic; color :MediumSeaGreen; } --- .htm --- <html> <head> <title> Demonstration of using CSS </title> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> <body> <H1> Welcome to CSS </H1> <P> CSS was invented by HakonWium Lie on October , and maintained through a group of people within the W3C called the CSS Working Group.

The CSS Working Group creates documents called specifications. When a specification has been discussed and

Related topics

Have a question about this topic?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →