Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 5
Name: Brett
Location: germany but from canada
Trades: 0
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
 
 
Register now for full access!
Old 07-13-2006, 08:04 PM Re: stupid question
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
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: 269
Name: Silent
Location: Ohio
Trades: 0
could be done with the <font> tag
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is 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
King Spam Talker

Posts: 1,222
Location: Middle England
Trades: 0
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: 269
Name: Silent
Location: Ohio
Trades: 0
Code:
<font color="#FF0000">Text</font
Is what I would use.
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is 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:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
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 |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

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: 269
Name: Silent
Location: Ohio
Trades: 0
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

Please login or register to view this content. Registration is 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:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
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 |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
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
Trades: 0
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:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Here's a good HTML reference if you're ever looking for a tag again.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
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: 111
Name: Jonathan
Location: Arizona, USA
Trades: 0
Just another voter here for the span tag. Re-writing font tags due to deprecation can get tedious.
__________________

Please login or register to view this content. Registration is FREE
- Computer Repair over the internet!
pcoptimized is offline
Reply With Quote
View Public Profile Visit pcoptimized's homepage!
 
Reply     « Reply to stupid question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
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.32641 seconds with 12 queries