|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 | |
| iWEBTOOL SEO Advisor Contributor Join Date: May 2006
Posts: 1,252
![]() ![]() ![]() | Check HTML warning and pondering on this. I'm using styles, yet where ever I put the code it warns me it isn't allow in that area. Where is style suppose to go? <style> isn't allowed in <html> elements <style> isn't allowed in <body> elements Quote:
__________________ Eco Tours | Gift Baskets See a good post? <--Give thanks by clicking left of post.
| |
| |
|
| |||||||
| | #2 | |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,762
![]() ![]() ![]() ![]() ![]() | Chart, why don't you use external css file? Place this code Quote:
__________________ Please, apply the signature policy Have a look at my free seo related web directory konferencia helyszínek seo fórum Free shopping cart | |
| |
| | #3 | |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,470
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | If you need to insert a style to an html element, you can do it in one of three ways. One, like Bagi said, you can link to it in the head of your document, or you can put it directly into your document head (between the head tags), or you can place it in your element itself. For instance, if you want to center a paragraph you could use: Quote:
To use the <style> tag, place it within the <head></head> tags. | |
| |
| | #4 | |
| iWEBTOOL SEO Advisor Contributor Join Date: May 2006
Posts: 1,252
![]() ![]() ![]() | Quote:
This is what I've just done and that warning is gone, will continue cleaning code and might try one of other above methods before I'm done.
__________________ Eco Tours | Gift Baskets See a good post? <--Give thanks by clicking left of post.
| |
| |
| | #5 |
| iWEBTOOL SEO Advisor Contributor Join Date: May 2007
Posts: 675
![]() ![]() | I would use external style sheets as it makes it easier to make global changes. I would seriously warn about code clutter in each page.
__________________ Umbrella Consultancy Internet Marketing Company - Rugby Forum - Google Expert Blog |
| |
| | #6 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,470
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I agree OWG. It's okay to use inline styling for instances when you only need to use it once, but it's so much easier if you reuse the same styling over and over if you can. I have never used style tags, I don't see the point when you can link to an external style sheet, it helps keep the code easier to read. |
| |
| | #7 | |
| Junior Guru Join Date: Nov 2006 Location: Ayr, Scotland
Posts: 626
![]() ![]() | Absolutely right, use in order of preference 1 external style sheets 2 embedded style 3 inline style Using external style allows reusable styles across all pages, style consistency modified across all pages by modifying a single style sheet. Using embedded styles resricts the style to the current document, but modifies all applications of the style in the document. Using embedded style is too much like hard work trying to maintain all the styles for consistency on a single page never mind more than one page. Dont forget to add in the media element so that display on handhel/print/screens appear in the appropriate format. Quote:
__________________ ahb Solutions | |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Am i allowed to have adsense in my url? | Internetwiz | Adsense | 0 | 06-19-2007 05:41 AM |
| Affiliate Links Allowed? | dhscott | Discuss iWEBTOOL | 0 | 04-21-2007 04:21 PM |
| MsXLabs Organization & M-Force Style (Plastic Blue vB Style) | NeutralizeR | Website Reviews | 2 | 07-16-2006 12:38 AM |
| Forums Reviews Allowed Here? | a1whs.com | Website Reviews | 13 | 06-11-2006 12:44 AM |