answersLogoWhite

0


Best Answer

A CSS file can tell the web browser how a web page is supposed to look. The web page (HTML file) itself says what words are on the page, and which pictures, but you CAN use the CSS file to specify what goes where, how big, what color and font, and things like that.

You CAN also specify all those things in the HTML file. The biggest advantages of using separate CSS are:

  1. The same CSS file can be used for all pages in a site, so if you want to change something, you can just change it in one place, and all the pages will now look the way you want.
  2. If you use the same CSS file for every page, your pages will load faster, since the browser does not re-fetch the CSS file every time.
User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

A file with the extension .css CSS stands for Cascading Styling Sheets and is used with HTML and is inserted in the <head>.

This answer is:
User Avatar

User Avatar

Wiki User

5y ago

A CSS code is a code mainly used to decorate webpages in a easier more comfortable way. Many web pages will show you how to use CSS and create a HTML web page.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

The CSS file extension is reserved for files that contain Cascading Style Sheet (CSS) source.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is CSS File and why it is used?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is an embedded style?

Embedded CSS simply means that your CSS is written in an external file (i.e. not in your HTML file). The external file can be anywhere on your server and must end in ".css". You would call this CSS file from inside your HTML file like this:On the otherhand, inline CSS is when your CSS is included inside of your HTML code, for example:foo


How do you insert a command into a CSS file?

You cannot insert a command into CSS, you can make styles that happen in HTML.


What are the Differences between style sheet and templates?

Templates can be composed of HTML/XHTML files, images, and a CSS file. They all work together to make a site, but the CSS has the control over how it looks. A CSS file by itself is just that. A CSS file of no use until it is linked to bt web pages to use its styling properties.


What kind of styles are located in a separate css file and linked to the HTML language?

All the elements taht render the appearance of the page are contained within the CSS file and are linked to the HTML file within the &lt;Head&gt; element as so: &lt;link href="basic.css" type="text/css" rel="stylesheet" media="screen"/&gt; &lt;


How does CSS inhance HTML?

CSS handles the presentation portion of displaying an HTML document on the web. That is to say that CSS makes things like color, size, shape, weight, etc. possible in HTML. To say that CSS "enhances" HTML, however, is an over simplification. CSS provides separate and different functionality than HTML does. HTML does not have the abilities inherent in CSS. Instead, the CSS code makes HTML code more palatable for a human user. Most web spiders, for instance, do not employ HTML fully, if at all.

Related questions

How do you make CSS layouts?

CSS layouts can be created in an external CSS file. The extension of the file should be CSS only.


How are CSS files created for and used by website pages?

How toYou can use CSS as an external file imported into a HTML file or CSS can be embedded into the HEAD section of a HTML page.Creating/Editing a CSS fileYou can create a CSS file by saving a .txt file as a .css file type. The easiest way though to edit CSS is by searching the web to find a Text Editor, an editor is usually free to download and will allow a user to manipulate CSS and HTML files and to save them.Importing CSS into a HTML fileTo import a CSS file into a HTML file a STYLE declaration must be made inside the HEAD tags of the document and a link to the CSS file is placed within the STYLE tags, see example below.Linking CSS into a HTML fileTo link a CSS file into a a HTML file, a LINK tag must be used and placed within the HEAD tags. Embedding CSS into a HTML fileTo embed CSS styles into a HTML file a STYLE tag must be used to contain the CSS, see example below.


How do you install CSS on Vista?

You don't install CSS onto your computer. CSS is programming langauge, which is programmed by an individual. CSS is used to create styling on a website. To create CSS you would normally install a text editor and link your XHTML file(s) to the CSS file. For this reason CSS can programmed on any operating system, including Vista.


Why is the CSS not working?

if you neglected to save your css file in a .css format, then it may not work.


What is an embedded style?

Embedded CSS simply means that your CSS is written in an external file (i.e. not in your HTML file). The external file can be anywhere on your server and must end in ".css". You would call this CSS file from inside your HTML file like this:On the otherhand, inline CSS is when your CSS is included inside of your HTML code, for example:foo


What program saves files as a CSS file?

Any text editor will, just save the file with .css at the end.


What mark-up is used to insert comments in a CSS file?

In CSS you would use: /* to open the comment , and the reverse */ to close In HTML it is: &lt;!-- to open and --&gt; to close


What is contained in a CSS file?

Variables.


How do you attach a css file?

Attaching a CSS file is done in the &lt;head&gt; of your HTML document with a &lt;link /&gt; tag. Here's the formatting: &lt;link type="text/css" rel="stylesheet" href="YOURFILE.css" /&gt;


How do I use a CSS file?

You need a .html file with HTML code inside and a .css file containing your CSS instructions.For your CSS instructions, you'd move HTML instructions for presentation and appearance to your CSS file. For example, let's say in your HTML mark-up you now have a long section for your "Style" commands. These usually cover things like font size, font color, background image or color, and margins. As you move each HTML piece, you re-write it with CSS codes. Instead of numerous HTML instances that say you want all H1 levels to be a font size 12, you'd have one instance of code in the CSS that controls all instances of H1.Once you've got these 2 files you need to link the .css file inside your .html file in the section.To reference your .css you typically insert the following:


How do you insert a command into a CSS file?

You cannot insert a command into CSS, you can make styles that happen in HTML.


What the best tools for removing inefficient rules in CSS?

CSS rules can be removed manually by opening the CSS file. It makes the user decide what to remove.