Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Article Discussions

Discuss the articles posted on Dev.Opera.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By ChrisHeilmann anchor Tuesday, 8. July 2008, 07:15:38

18: HTML links - let's build a web!

Some may argue that links are the most important feature of the Web - they make it a Web after all, linking all the pages together. In this article, Christian Heilmann takes you on a detailed tour of using the <a> element to create accessible, meaningful links.

( Read the article )

By Tamil anchor Tuesday, 8. July 2008, 17:58:37

avatar

Visitors cannot bookmark the page—the next time they open their bookmark they̱ll get the initial state of the frameset and not the page as they left it.

By chrismills O anchor Wednesday, 9. July 2008, 08:28:07

avatar@Tamil - cheers, fixed!

By josdehart anchor Sunday, 13. July 2008, 08:24:56

avatarA bit confused here: do you recommend using the id or the name for anchors? You seem to have corrected your text but which of the two is correct?

By chrismills O anchor Wednesday, 16. July 2008, 11:07:17

avatar

Originally posted by josdehart:

A bit confused here: do you recommend using the id or the name for anchors? You seem to have corrected your text but which of the two is correct?



ID is correct.

By Ton-Lankveld anchor Wednesday, 16. July 2008, 16:01:21

avatarOne other type of link you can find on websites, is the mailto-link. Many times it is disguised as a "contact" or "info" link. When a visitor clicks on it, the email program jumps in his face. Annoying at least. Especially when the "contact" link is part of the main menu.
It happens, I've seen it!

Good examples of mailto-links are "info@example.com" or "send me an email".

My 2 (Euro)cents.

By marcotuts anchor Monday, 24. November 2008, 15:00:25

avatarThe print for me doesn't work right. It ignores the equivalent of the first page. I've printed many opera articles, and from the WSC Curriculum articles 18,19, and a handful in the 20s don't print right for me....

By chrismills O anchor Tuesday, 25. November 2008, 07:45:53

avatar

Originally posted by marcotuts:

The print for me doesn't work right. It ignores the equivalent of the first page. I've printed many opera articles, and from the WSC Curriculum articles 18,19, and a handful in the 20s don't print right for me....



Thanks for the heads up. I will have to look into this for you.

As an FYI - one thing we are doing as soon as the final articles are published is to create accessible, nice PDFs of the articles for easy printing.

By karaj anchor Friday, 19. December 2008, 18:19:09

avatarIn the list at the end of chapter "Link or target?" there is a misstype: "ref" instead of "href".

By stelt anchor Friday, 19. December 2008, 23:23:37

avatar<whisper>You can make framesets bookmarkable, but as it involves a fragile javascript hack, i fully agree and say:</whisper> "Please no frames".

By AndBre anchor Tuesday, 13. January 2009, 08:48:57

avatarAs the article recommends the "id" attribute:
1. "Link or target? The name and href attributes" should be "Link or target? The id and href attributes"
2. "A fragment identifier or anchor name" should be "A fragment identifier or id name"
3. "(with a name attribute)" should be "(with an id attribute)"
4. "The need for an anchor name to be unique" should be "The need for an anchor id to be unique"

By Erinyes anchor Friday, 3. April 2009, 19:04:10

avatar

Frames and popups—just say no


As with previous articles, this is personal bias. There are good uses for them, the article should not presume the user is a idiot or otherwise have such narrow minded target audience. Frames/Popus having been missued in the distant past is no excuse to discard/ignore/vandalise them.

By chrismills O anchor Monday, 6. April 2009, 21:46:30

avatar

Originally posted by Erinyes:

As with previous articles, this is personal bias. There are good uses for them, the article should not presume the user is a idiot or otherwise have such narrow minded target audience. Frames/Popus having been missued in the distant past is no excuse to discard/ignore/vandalise them.



Thanks for your comment Erinyes. I'll get on to answering all your comments tonight.

Well, you can look at this as personal bias, but it is more a bias of the whole course, and it is a generally agreed best practice that use of frames and popups are bad, for usability and acessibility.

Complicated web applications sometimes make use of trickery like hidden iFRames and suchlike, but this is not generally agreed best practice. I'd be interested to hear your further thoughts on this, and what you consider good uses for Frames and popups.

By accelerator anchor Thursday, 18. June 2009, 23:38:21

avatarThis is a great course and I'm learning a lot. Thanks for taking the time to research, write and support.

The articles inspired me to run my website through the W3C link checker (amongst doing other good things).

My question is "are broken URI fragments a problem?" The normal operation of the site doesn't seem to be affected although I'm wondering if google page rank is affected (my site is writen SEF and yet seems stuck at PR2 even though alexa is rising nicely though 650K now).

As I understand it, the google spider would follow these links and find only styling fragments but no content. Therefore the ranking engine would never get to see the keyword rich content.

Here is the W3C linkchecker report detail:

(The only box I ticked was the "check linked documents recursively" and I set this to ten levels.)

W3C linkchecker returned the following report

2001Some of the links to this resource point to broken URI fragments (such as index.html#fragment).

error Lines: 74, 75, 76, 77, 157, 290, 291, 292, 293, 294, 295, 297, 299, 308, 315, 326, 337, 348, 357, 367, 376, 386, 396, 406, 417, 427, 436, 446, 456 http://www.my-own-site.com/
Status: 200 OK

Some of the links to this resource point to broken URI fragments (such as index.html#fragment).
Broken fragments:

* http://www.my-own-site.com/#ja-content (line 74)
* http://www.my-own-site.com/#ja-col1 (line 76)
* http://www.my-own-site.com/#ja-mainnav (line 75)
* http://www.my-own-site.com/#ja-col2 (line 77)



Any comments appreciated

Post edited Thursday, 18. June 2009, 23:48:52

By chrismills O anchor Tuesday, 23. June 2009, 12:28:17

avatar

Originally posted by accelerator:

My question is "are broken URI fragments a problem?"



Hi there - thanks for the nice comments!

So basically, you have a site containing some links to specific anchors on a page, but those ids don't actually exist on the page, so the links are broken?

It's not exactly a critical problem, ie it won't totally break the functionality of your site, but it is rather untidy, likely to affect SEO, and will irritate your users and make them less likely to trust your content. So you really should fix them.

Why do you ask?

best regards,

By reisenderpro anchor Wednesday, 24. June 2009, 11:59:08

avatarThanks for this very extensive article about links, but I´m misssing something about the rel attribut.

By accelerator anchor Friday, 26. June 2009, 08:14:16

avatarThanks for the sanity check re the URI fragments Chris, one of my objectives in working through this course is to build up my own capability to fix them :smile: The question was to ensure that I really did have a problem in the first place.

I'm hoping by the time I complete HTML and CSS sections, that I'll have the knowledge to fix it.

By chrismills O anchor Monday, 29. June 2009, 17:50:13

avatar

Originally posted by accelerator:

Thanks for the sanity check re the URI fragments Chris, one of my objectives in working through this course is to build up my own capability to fix them The question was to ensure that I really did have a problem in the first place.



Ok, I getcha. Glad I could be of help.

By chrismills O anchor Monday, 29. June 2009, 17:52:19

avatar

Originally posted by reisenderpro:

Thanks for this very extensive article about links, but I´m missing something about the rel attribut.



This might be answered in the follow-up article, at http://dev.opera.com/articles/view/supplementary-more-about-the-document/. Let me know if this helps.

Moderators: pepelsbey | dstorey | mcx | operadev | chrismills | shwetankdixit | brucelawson | iheni | andreasbovens | zibin | mollydotcom