Reply
stupid question
Old 07-13-2006, 07:25 PM stupid question
Novice Talker

Posts: 5
Name: Brett
Location: germany but from canada
Hey just got back into web designing, and i have a silly question:
What's a tag that doesn't effect the text at all, but can, say group some text so you can use a style sheet and perhaps turn it blue or make it larger.

Example:

<h1>Big Title</h1>
I want the word "Title" to be turned blue while "Big" is black. I don't want to use html or anything for this, i prefer having no formatting in my html documents.
Thanks, sry if its a really obvious question.
tupixel is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 07-13-2006, 08:04 PM Re: stupid question
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Beginning Ajax with PHP
Posts: 161
Location: MS
I think h1:firstword will work but I'm not 100% sure....

just looked it up that's not an option

Here's a good resource on CSS 1 & 2 properties and selectors are the two sections I use most

http://www.blooberry.com/indexdot/css/index.html

Last edited by AliKat : 07-13-2006 at 08:06 PM.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 07-13-2006, 11:52 PM Re: stupid question
Silent77's Avatar
Ultra Talker

Posts: 255
Name: Silent
Location: Ohio
could be done with the <font> tag
__________________
Firefox
rediscover the web
Get Firefox today it's free! Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 07-13-2006, 11:54 PM Re: stupid question
blue-dreamer's Avatar
Webmaster Talker

Posts: 696
Location: Middle England
You will have to format the word "Title" in a <span> tag then add some CSS to make it blue:

Using inline CSS...

<h1>Big <span style="color: blue">title</span></h1>

or using an external stylesheet

<h1>Big <span class="blue">title</span></h1>

.. then add the following to your CSS

.blue {color: #0000FF;}
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 12:02 AM Re: stupid question
Silent77's Avatar
Ultra Talker

Posts: 255
Name: Silent
Location: Ohio
Code:
<font color="#FF0000">Text</font
Is what I would use.
__________________
Firefox
rediscover the web
Get Firefox today it's free! Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 07-14-2006, 12:36 AM Re: stupid question
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
Either the <font> or styling the <span> will work. I'd opt for the <span> with the css styling though since the <font> tag has been deprecated in later versions of html.

The way I would set it up is to give either a class or an id to the span and then style the class or id in an external stylesheet. Assuming you already have the default color for the <h1> to be black:

<h1>Big <span class="blue">Title</span></h1>

and in the css:

.blue {color#00f}

Using classes will allow you to easily give other elements a blue text color on the page or site and ultimitaley save you a lot of code and typing.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum

Last edited by vangogh : 07-14-2006 at 12:39 AM.
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-14-2006, 01:06 AM Re: stupid question
Silent77's Avatar
Ultra Talker

Posts: 255
Name: Silent
Location: Ohio
Quote:
Originally Posted by vangogh
the <font> tag has been deprecated in later versions of html.
I didn't know that, I would go with what vangogh and blue-dreamer said.
__________________
Firefox
rediscover the web
Get Firefox today it's free! Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 07-14-2006, 01:30 AM Re: stupid question
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
Yeah it was deprecated in html 4.01. It will still work as browsers are going to be handling deprecated tags for quite some time to come, but the way (x)html is evolving presentation tags and attributes are going to continue to be deprecated from the language and presentation will be handled by css instead.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-14-2006, 09:59 AM Re: stupid question
Novice Talker

Posts: 5
Name: Brett
Location: germany but from canada
thanks, <span> is what i was looking for, i forgot the name but couldnt find it newhere
tupixel is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 12:13 PM Re: stupid question
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
Here's a good HTML reference if you're ever looking for a tag again.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-17-2006, 07:13 PM Re: stupid question
Super Talker

Posts: 109
Name: Jonathan
Location: Arizona, USA
Just another voter here for the span tag. Re-writing font tags due to deprecation can get tedious.
__________________
PAYBACKLinks - Directory that pays you back!
pcoptimized is offline
Reply With Quote
View Public Profile Visit pcoptimized's homepage!
 
Reply     « Reply to stupid question
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.16399 seconds with 13 queries