1

I am using the TinyMCE (extended) that ships with Joomla.

When I use the link button to link an image to another page on the site it asks me to select an option for the 'rel' attribute within the href.

I am a bit confused about this - what value should I put for an internal link? I looked here http://www.w3schools.com/tags/att_a_rel.asp but it didn't really help. The select defaults to 'alternate' - which isn't really right.

If I use the 'article' button, my image is deleted and replaced with the title of the article.

What should I put?

unor
  • 92,415
  • 26
  • 211
  • 360
maxelcat
  • 1,333
  • 2
  • 18
  • 31
  • Please check: [section 6.12](http://www.w3.org/TR/html4/types.html#h-6.6). – emmanuel Oct 23 '14 at 16:13
  • thanks - but none of those really seems to imply an internal link... although I suppose at a push you could say 'next' but still doesn't feel right to me – maxelcat Oct 23 '14 at 16:17

1 Answers1

2

(Assuming HTML5.)

There is no registered link type for "internal links". There are various link types that might be appropriate for some internal links, but not generally for all internal links. (And you are right that alternate is not appropriate.)

The registered external link type can be used for external links, so one might assume that every link without the external link type is an internal link.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360
  • Thanks. Seems weird to me that in tinymce you are forced into selecting a value for the rel. you can't leave it blank – maxelcat Oct 23 '14 at 20:32
  • @maxelcat: If TinyMCE really requires a value for the `rel` attribute, this would not be in line with the spec, as `rel` is an optional attribute (which makes sense, because there is not a suitable link type for every case). – unor Nov 01 '16 at 14:29
  • should i be using `rel='external'` for a `form` element if the script that processes the form is a PHP file elsewhere on the back-end of the server? – oldboy Nov 25 '20 at 02:44