Page 81 - TP_Play_V2.1_class6
P. 81
You can also use the 6 digits hexadecimal code in place of colour name. For example, the
hexadecimal code #000000 represents the black colour and #FFFFFF represents the white colour.
For example:
0body{background-color: #000000;}
You can also set an image as background of a web page by using the background-image property
of CSS in the following manner:
body{background-image:url("background.jpg");}
Tech Funda
You can easily get hexadecimal code of any color from color picker. Type color picker
in google and select any color to get the hexadecimal code.
EDITING AN EXISTING HTML DOCUMENT
Follow these steps to edit an HTML document:
Step 1 Locate your file.
Step 2 Right-click on the file icon to open right
click menu.
Step 3 Hover mouse pointer over Open with
option to open a sub-menu.
Step 4 Click on Notepad.
This will open your HTML document in Notepad
so that you can make changes in the file. After
making the required changes, you need to save
the file by pressing the Ctrl+S keys.
Recap Editing HTML file
HTML is the most widely used language to design web pages.
Hypertext is a piece of ordinary text that has a special feature of linking to another
document or webpage.
Tags are the basic building blocks of a web page.
The tags that include both opening and closing tags are called Container Tags.
An attribute is a property that provides some additional information about a tag.
HTML document is a text file containing markup tags.
CSS is a design language that is used to style web pages.
Three ways to use CSS styles in an HTML documents are - Inline CSS, Internal CSS and
External CSS.
Introduction to HTML5 and CSS3 79

