This is a discussion on "The right look but is it semantic?" within the Web Page Design section. This forum, and the thread "The right look but is it semantic? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
The right look but is it semantic?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
The right look but is it semantic?
Maybe what I have done is okay but semanticly it could be poor.
I have the front page of a site I'm working on here.... http://www.mattoconnor.co.uk/index2.php The code I'm concerned about is the header
- Should I have the logo within the <h1> tag? or is it okay as a background to the whole header? - How can I write semantic code for the <h2> tag whereby 'competing in the mongolia rally' is within the <h2> but a logo is substituted for the mongolia rally and positioned as shown on the webpage? Many thanks in advance. |
|
|
|
#2
|
|||
|
|||
|
Re: The right look but is it semantic?
For the logo, I would simply use this:
Alternatively, make the entire <h2> into an image, and use the same method as for the <h1>. This would be easier. Last edited by MikeHopley; Dec 16th, 2007 at 19:38. |
|
#3
|
||||
|
||||
|
Re: The right look but is it semantic?
Matt, I see you've used
Personally, I don't like images in header tags, and essentially the logo is presentation, not content. I must admit the Phark Technique (mentioned above) will suffer from CSS On / Images Off scenario, whereas Mike's suggestion will mean the alt tag is at least visible. You might also want to read about FIR (Fahrner Image Replacement), but IMO it has no advantages over Phark (and requires extra markup)
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#4
|
|||
|
|||
|
Re: The right look but is it semantic?
I don't see the problem with images in headings.
If you've decided that you prefer users to see the image, then why not put it straight into the heading? This is the most straightforward and logical way, and it avoids all possible accessibility problems (provided you use alt text). All the "clever" alternatives involve potential accessibility problems. Search engines can (and do) index alt content. If the logo is being used to communicate a page heading, then it is not presentation. It's content. It happens to be content conveyed by an image, but it's content nonetheless. Last edited by MikeHopley; Dec 17th, 2007 at 15:27. |
|
#5
|
||||
|
||||
|
Re: The right look but is it semantic?
Quote:
http://www.mezzoblue.com/tests/revis...e-replacement/ - near the bottom http://wellstyled.com/files/css-repl...example02.html - example (header) http://wellstyled.com/css-replace-text-by-image.html - look at second method again, it requires a little extra markup, and also solves the CSS on / images off scenario. It also works with JAWs (screen reader software).
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#6
|
|||
|
|||
|
Re: The right look but is it semantic?
Were I to use an image replacement technique, it would be Gilder/Levin. That's the only one that seems even close to sane.
|
|
#7
|
|||
|
|||
|
Re: The right look but is it semantic?
cheer chaps.
I'll give that a whirl. |
|
#8
|
|||
|
|||
|
Re: The right look but is it semantic?
PPK's javascript version is another sane option.
|
|
#9
|
|||
|
|||
|
Re: The right look but is it semantic?
There's also the Rundle text-indent method which I really like
How do I hide text but still have my site accessible to all? |
|
#10
|
|||
|
|||
|
Re: The right look but is it semantic?
Quote:
So a better title would have been: "How do I hide text but still have my site accessible to some?" |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Web Semantic Role - Contract - Prototyping, .net | patrickbradley | Job Opportunities | 0 | Mar 7th, 2008 11:56 |