WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts

WeLoveCSS > WEB DESIGN > HTML & XHTML > xhtml newbie questions

Reply
  Thread Tools Display Modes
Old 7th February 10, 04:04 AM   #1
kinghippo
WLC Member
 
Join Date: Feb 2010
Posts: 2
Default xhtml newbie questions

Hello!

I recently enrolled in a new media communications class at a IUK, a local satellite college of Indiana University. My first assignment for this class is to design a basic web page to show that I understand the basics of xhtml and css. I am having trouble with the last two requirements of the assignment though.

My professor wants me to change the background for one block of text and use a class selector that makes the enclosed text display in large bold orange Arial. I have read everywhere in our assigned reading and videos but I can't figure out how to do it. I'm thinking I need to use a span or div or tag but i'm not sure how i should do it?

Thanks for any help!
kinghippo is offline   Reply With Quote
Old 7th February 10, 07:49 AM   #2
Josephbm91
WLC Member
 
Join Date: Jan 2010
Location: Texas
Posts: 17
Default Re: xhtml newbie questions

Heya! Glad you choose to learn CSS and XHTML. And I love the Punch Out reference! (King Hippo = Punch Teh Stomach)

As for your questions:

Span tags differ from divs in that a div tag identifies a region of the page. Spans are best used to accent a portion of the page.

Here is what I believe your professor is asking for.


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Using XHTML and CSS</title>
<style type="text/css">
.orange{
color: #FF9900;
font-family: Arial;
font-size: 4em;
background-color: #000000;
}

</style>
</head>
<body>
This is not orange.<br />
<span class="orange">OMG THIS IS SUPER ORANGE!</span>

</body> 
</html>
Let me know if you get a good grade! So sorry if you don't!!!
__________________

To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Josephbm91 is offline   Reply With Quote
Old 8th February 10, 04:27 AM   #3
kinghippo
WLC Member
 
Join Date: Feb 2010
Posts: 2
Default Re: xhtml newbie questions

Quote:
Originally Posted by Josephbm91 View Post
Heya! Glad you choose to learn CSS and XHTML. And I love the Punch Out reference! (King Hippo = Punch Teh Stomach)

As for your questions:

Span tags differ from divs in that a div tag identifies a region of the page. Spans are best used to accent a portion of the page.

Here is what I believe your professor is asking for.


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Using XHTML and CSS</title>
<style type="text/css">
.orange{
color: #FF9900;
font-family: Arial;
font-size: 4em;
background-color: #000000;
}

</style>
</head>
<body>
This is not orange.<br />
<span class="orange">OMG THIS IS SUPER ORANGE!</span>

</body> 
</html>
Let me know if you get a good grade! So sorry if you don't!!!
Thanks so much! I will give this a try and see how it goes.
kinghippo is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:21 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved. Designed by DESIGNGRAPHY
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.