answersLogoWhite

0


Best Answer

Cascading Style Sheet, or CSS, is a web standard to describe the presentation semantics of a document written in a markup language. In web design CSS is used to separate the document presentation from the document content. CSS specifies a priority scheme in how rules are to be used, thus the cascading effect that is referred to in the name Cascading Style Sheet.

User Avatar

Wiki User

βˆ™ 13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 14y ago

Cascading style sheets can be written into an HTML document by using the following code:

This code should be placed in between the and tags of your document.

You can also format individual tags by adding a style='style information' property to the tag, for example:

this text would be bold and black

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 13y ago

The three types of Cascading Style Sheets, or CSS, are external, internal, and inline. External style sheets are a separate file that is linked to from a page, an internal style sheet are styles located within the <style></style> tags in the header of a page, and in inline style is located within an element like <p style="text-color: #00FFFF;">. There is a hierarchy in terms of how rules are used in a document. Inline styles override internal styles and internal styles override external styles.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 12y ago

CSS or Cascading Style Sheets are of three types. Inline, Embedded and External. Depending on whichever type you wish to use in your HTML document, here's how to use them.

Inline : This type can be used in your individual HTML elements. they integrate along with your HTML code.

example :

<p style="border-style: solid">

<input size="20" style="text-align: right">

Embedded : This type will more come in a style block inside your HTML document. Mostly this type is added at the top

of the HTML doc.

example :

<style>

<!--

body { background: blue;

color: white;

font-family: times, serif;

font-size: 10pt }

a:link { text-decoration: none: }

-->

</style>

One thing to note is that embedded style sheets can be applied only to that HTML doc where it is used.

External : Use this type if you need to apply the style across multiple

HTML docs. This type is written entirely externally on a .css extenssion page and then linked to your HTML doc as follows.

Example :

body { background: blue;

color: white;

font-family: times, serif;

font-size: 10pt }

a:link { color: white}

a:visited { color: red}

h1 { font-family: arial, helvetica, sans-serif;

font-size: 10pt;

font-style: bold }

Code for linking to your HTML doc:

<head>

<link rel="stylesheet" type="text/css" href="style.css">

</head>

Rememeber to link the external stylesheet file within your head section of the

HTML doc.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 11y ago

Cascading Style Sheets (CSS) is mechanism which is used for adding style (such as, colours, fonts, and spacing) to Web documents.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create cascading style sheets in HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

What is cascading style script?

CSS (Cascading Style Sheet) is a proramming language that is used with HTML to create the layout of a page.


What is the special formatting languages used to create webpages?

HTML, the HyperText Markup Language, defines web pages' content; CSS, Cascading Style Sheets, defines the web pages' presentation; and JavaScript, defines interactivity with the user, creating "Rich Internet Applications" (RIA).


What has the author Eric A Meyer written?

Eric A. Meyer has written: 'Cascading style sheets' -- subject(s): Cascading style sheets, Computer graphics, Design, HTML (Document markup language), Web sites 'More Eric Meyer on CSS' -- subject(s): Cascading style sheets, Design, Web publishing, Web sites


What is the uses of cascading style sheets?

to aide html and other programs when creating the layout and color scheme of a webpage


How does Cascading style sheets improve web design?

CSS separates the presentation information from the HTML content info


Are Cascading style sheets the files inserted into an HTML document that control the appearance of the web pages including layout colors and fonts?

CSS files, which stands for Cascading Style Sheets. CSS can be set up as a separate file which can be referenced by a webpage or you can have CSS directly in a HTML document. HTML itself can also be used to control fonts and colours.


What does a CSS table have to do with HTML?

HTML is a markup language used when one wants to create a website. Cascading style sheets or CSS is a style sheet language that one can use with HTML to create different kind of tables and pictures to the web page. Using CSS is easier than using HTML when creating tables for a website. It also makes updating the page easier.


The language used to create docments on the www is called?

Hypertext Markup Language (HTML), JavaScript, and Cascading Style Sheets (CSS) at the most basic level. Following that are PHP, Ajax, MySQL, etc.


BASIC element of dynamic HTML?

Dynamic HTML is a combination of HTML tags and interactive web pages. Its basic elements include: an object-oriented view of web elements, cascading style sheets and dynamic fonts.


Is CSS a scripting language?

No, HTML is a mark up language and css ( cascading style sheet) is a way of styling a web page eg, bgcolor, text color size and font ect, you can write the css in the HTML or make it separate and link the HTML to it


How do you set margins without CSS in HTML?

HTML does not have a built-in way to set margins without CSS. Margins are a property of Cascading Style Sheets (CSS), not of HTML. To set margins in HTML, you need to use CSS either directly in a β€œstyle” attribute of an HTML element, or by using an external CSS file linked to your HTML document.


What do you have to do to be a web designer?

Learn the basics of HTML..you can start here: w3schools.com Study advanced HTML. Advanced HTML pages include frames, cascading style sheets and DHTML. Know the basics of good website design. Stay updated on design trends. -------------------- yugenelee.com