answersLogoWhite

0


Best Answer

The XHTML code to embed an external stylesheet would look like:

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

The CSS code would need to be placed in a separate document and would need to be saved as style.css. The CSS code need to make the background white and the text green would look like:

body {

background-color: #ffffff;

text-color: #008000;

}

This code will make your content display in green text against a white background.

User Avatar

Wiki User

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

Wiki User

14y ago

Not writing all that code, but will give you the basic CSS properties:

a {

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

font-size: 10pt;

font-weight: normal;

font-style: normal;

text-decoration: none;

background: #fff;

color: #000;

}

That will do ALL of them at once. Then for a:link, a:visit, a:hover and a:active you can style any differences without repeating.

You may not know it, but a link has four different states that it can be in. CSS allows you to customize each state. Please refer to the following keywords that each correspond to one specific state:

* link - this is a link that has not been used, nor is a mouse pointer hovering over it

* visited - this is a link that has been used before, but has no mouse on it

* hover - this is a link currently has a mouse pointer hovering over it/on it

* active - this is a link that is in the process of being clicked

Using CSS you can make a different look for each one of these states.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write the XHTML and CSS code for an embedded style sheet that configures a background color of white and a text color of green?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write the XHTML and CSS code for an embedded style sheet that configures a class called new that is bold and italic?

Place the code into the head of the webpage..new {font-style:italic;font-weight:bold;}in the body of the webpage where you want the style to be.if it is just for a word you would add span class. Of course closing the tags too.


Which type of CSS is coded in the body of the web page as an attribute of an Xhtml tag?

Embedded


How do you write a xhtml code?

You can write a XHTML code in same way as HTML. The only thing is that you have to close all tags.


What are some tips for writing XHTML?

# Write up multiple XHTML documents, attempting to not make any mistakes. # Write multiple HTML documents, and transform them into XHTML documents. # Browse forums or other online sources for HTML documents (or incorrect XHTML documents) that need help, markup-wise. # Take on projects involving XHTML coding.


Is XHTML 1.1 implemented by Firefox?

According to an IBM document ( http://www.ibm.com/developerworks/xml/library/x-ffox15.html ) XHTML 1.1 is supported by Firefox: "Mozilla Firefox 1.0 supports XHTML 1.0 Strict, Transitional, and Frameset, as well as XHTML 1.1 which is based on modularization of XHTML 1.0 Strict. XHTML 2.0 is still in the working draft stage. Some developers wonder how well XHTML 2.0 will be adopted because it's such a significant change from HTML and XHTML 1.x. I recommend that Web developers targeting Firefox (such as for embedded applications) serve XHTML 1.1. Unfortunately, this may not yet be practical for developers targeting the general Web."


What are the three flavors of XHTML?

(1) XHTML 1.0 Strict(2) XHTML 1.0 Transitional(3) XHTML 1.0 Frameset


What language was used to create XHTML?

HTML is in XHTML, some argue that XHTML is it's own markup


Is html a replacement for xhtml?

No. HTML existed before XHTML. XHTML combines XML and HTML, so it is an advancement on HTML.


Why we you use xhtml?

XHTML is used as a stricter view of HTML. People who like to make the code clean and nice use XHTML.


When was XHTML created?

XHTML 1.0 was established on January 26, 2000.


Which browser supports xhtml?

All modern browsers support XHTML.


XHTML is the combination of what?

XHTML is a combination of largely HTML and a small portion of XML.