answersLogoWhite

0

How do you convert css codes?

Updated: 8/9/2023
User Avatar

Wiki User

15y ago

Best Answer

You can't convert a HTML into CSS in the same way you can convert, say a .wmv file to a .mpg file.

CSS is a way to style HTML items but doesn't use the same language as HTML.

There may be software solutions that may be able to extract the styling instructions written in HTML and convert the language into CSS but failing that you'll have to rewrite the HTML styling into CSS manually. Whilst you can have CSS and HTML in the same .html document generally the CSS will be the styling and the HTML will be the content.

I say 'generally' because it is possible to add 'content' using CSS and to still style using HTML within the same document.

User Avatar

Wiki User

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

Wiki User

11y ago

The short answer is: Yes and no.

The long answer:

Original HTML uses tags to both describe the elements on the page and to tell the browser how to display them. You have a tag like

, which tells the browser we're starting a new paragraph, and you have a tag like , which tells the browser what font settings to use. Many tags have multiple attributes that can tell the browser both things, such as the background or bgcolor attributes.

With CSS, the idea is to separate the content description from the styling and display instructions. CSS allows far more attributes and customization than the attributes in HTML. It also allows for reuse of styling instructions on many parts of the page, without having to repeat them Think of a page with several tables in it. With HTML, each one needs to contain all the styling information. With CSS, you can set style settings for all tables in one shot.

The outcome of this is, that you can never do away completely with HTML, as this is the basic structure of the web-page, but you can (and should) remove the styling information from the HTML, and convert those into CSS. This means all font names, colors, text sizes, table design, background placement, list styles, line spacing, etc. can be converted into CSS.

Yes,

Expert web developers are able to convert html files into CSS. CSS, also popularly known as the Cascading Style Sheet is best way of maintaining the content and images on the website. With conversion from HTML to CSS, the content is separated from the images. With CSS, the idea is to separate the content description from the styling and display instructions. CSS allows far more attributes and customization than those in HTML and also reuse of styling instructions on many parts of the page, without having to repeat them. It is better to convert the styling information of the web page into CSS while the basic structure remains that of HTML. This means all font names, colors, text sizes, table design, background placement, list styles and line spacing can be converted into CSS.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

This is a css sample code:

body

{

background-color:#d0e4fe;

}

h1

{

color:orange;

text-align:center;

}

p

{

font-family:"Times New Roman";

font-size:20px;

}

This answer is:
User Avatar

User Avatar

JustPerfect Designs

Lvl 2
1y ago

HTML & CSS are different.

HTML stands for HyperText Markup Language, while CSS stands for Cascading Style Sheets.

HTML is used to create the actual content of the page which is visible to the user or in other words, the content everyone sees, such as written text, images, and so on.

CSS is responsible for the design or style of the website, including the layout, visual effects, and background color.

Below is a simple infographic image explaining this in detail.

visit my YouTube channel @JustPerfectDesigns

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

There are some parts of CSS which can be converted into HTML (if this is what you mean) but a lot of attributes can't be duplicated...

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

<style type="text/css">

codes go here

</style>

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you convert css codes?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you use CSS transparency codes on WikiAnswers?

No, WikiAnswers does not provide its users with any option to use CSS transparency codes.


How can one amend border properties in CSS?

It is possible to amend border properties in CSS by understanding the border-syle value codes, border width codes, shorthand codes and border color codes.


How do you make a personal profile using a CSS codes?

You cannot "Make" something with CSS. CSS only decorates the elements on a page.


On MagiStream what is a Custom CSS code and how do you use it?

A CSS code allows you to modify your profile visually. There are articles in the MagiStream gamer forums that explain how and where you can use CSS codes.


Why cant you get a background on 2.0 version on MySpace?

you can you have to paste the codes in the css section then paste the other code in your about me


How can one convert a PSD file to a HTML file?

PSD to HTML: At Xhtmljunction, we convert PSD to HTML/XHTML &amp; CSS. Convert Image to HTML/CSS, PSD to Wordpress, Joomla, Drupal &amp; Magento Theme, PSD Slicing at an affordable budget. Lowest rate ($39) &amp; fastest delivery (8 hrs) guaranteed!


What are the HTML codes for effects?

You can use for bold, for example, but it is recommended that you use CSS adding styles and formatting to your HTML.


How do you use CSS codes?

You can find a lot on CSS at the w3schools website:http://w3schools.com/css/default.aspIn general, you can apply CSS directly to an HTML element in-line using the style attribute:Link TextYou can define CSS in a style HTML tag in the head of the document:....RedLink {color: #f00;}...Or you can put your CSS in a separate file or Stylesheet and embed it in the head of the document:......A typical way of having those CSS properties applied to an HTML element is using the class attribute (which is defined by a leading period (.) in the CSS itself:Link Text


What is css and deffrent type of css?

css


What is valid css?

Valid CSS is CSS that has been run through the W3C CSS checker and passed.


How do you convert action replay DS codes for Japan games to codes for US games?

If you don't have any knowledge whatsoever with game coding etc., I highly recommend you wait for a code master to convert all your AR codes for you.


Can you convert caetla codes to game shark?

B1300002 00000000