Wednesday, 25 March 2009

Methods of using CSS in a HTML file

Cascading Style Sheets have revolutionised the HTM editing of pages by offering an effective solution to lengthy coding. CSS is used to set different styles and fonts and then reuse them inside the webpage HTML. The reusability feature has really made CSS so popular. Let us take a look at the following methods to use CSS insie HTML.
There are essentially three methods to use CSS

1. Inline Linking
2. Internal Linking
3. External Linking

1. Inline Linking
Use the CSS code inside the HTML tags . Here is an example to do so



2. Internal Linking

Internal linking means defining CSS styles inside the web page and then using those styles inside the coe. Here is an example of internal CSS linking

3. External Linking

Save your CSS styles in an external style sheet file. Make the extension CSS

Link the file in an HTML page and then use the code. This method is very simple and you can make a global CSS file and use the styles site-wide. This allows you to change your styles throughout with just one click.

First make a text file with a name.css

Say style. css and append the following code to it

Once you have done this, you can embed this style sheet in any page and use it. The code line here shows the linking procedure


Now you can add CSS to your website and use its styles inside your webpages


See Also

What is a CSS?

Wednesday, 18 March 2009

What is a CSS?

CSS is commonly known as cascading style sheet. A cascading style sheet is a collection of font, style and color pattern layout for easing the lengthy HTML coding process.

Let is take the example of a bold tag. If you were to apply bold tag you will write Text . This tag will make the text bold. If you were to make text bold at different locations in your web page. You will apply the bold tag every where.

The situation is simple till now. Let us assume a situation where you have to convert all the bold texts to italic. It will become pretty difficult for you to do this. CSS sheet can be used to define a specific style and then apply it throughout. So if you had defined this bold style in a CSS class and applied it in the document. All you had to do was to change the style once and the change would have been implemented throughout the document.

Same is the case with custom headings, paragraph style, fonts and other things. You can define specific backgrounds, table styles, font styles, sizes and colors in your document and then applied it as per your requirement. Use of a cascading style sheet makes it very easy for you to change the look and feel of your document wirth a few minor changes.

Now a days, CSS is used so extensively that no standard website is complete without it. You can create css and keep it in a seperate file and then link it in your main web page . In this way, you can use your cascading style sheets throughout the document.

See also

Thursday, 5 March 2009

How to register domain names

World Wide Web (WWW) is a collection of millions of websites. Have you ever wondered that how come when you type a website address, you always see the same page (of course page would be different if the company updated or changed it). A website address is just like a normal address with the difference that it is on the internet. These addresses are kept in a database of addresses called domain name servers. These servers have entries for all the websites in the world.

When you enter a URL and hit enter, your browser automatically sends request to these name servers and these servers then locate the matching entries from their database and send the location of the hosting server of the website, you are looking for. The whole process is facilitated by this two way approach. You can map a single website with different domain names and you can map a single domain name with multiple copies of your website.

If it were not for the domain names, you might not have been able to locate the websites n the internet. These easy to remember and meaningful names help you remember your most favourite websites and use them when you like.

If you are planning to build a business on the internet, your first step is to buy a domain name on the internet. In case you have been wondering why you should pay for a small entry then you must know that there are operational costs of these servers located around the world. In order to maintain them, a small cost usually ranging between £5 - £20 is paid. You can register a domain name for up to 10 years.

You can buy an international address which is cheaper than locale specific domains. The reason for them being costlier is because they are managed by separate operators. You can select cheaper addresses too as compared to .com. The example include .org & .info domain names.