This is something that Laura from T4 mentioned in the T4SMACAD-L mailing list a couple of months ago that I’ve found useful and have enabled on our version of 6.2.0033 at the University of St Andrews.
As of Site Manager 6.2.0033 and 7.0.0010 the T4 meta tags with a type of html_anchor now have an XHTML-compliant option so that you can use the id attribute rather than the name attribute.
To enable the XHTML-compliant option you need to add two new variables on the Environment Variables page and then set them both to true. The new variables are:
So, for example:
<t4 type=”meta” meta=”html_anchor” />
might generate this fragment identifier:
With the new XHTML-compliant options enabled it would now generate this:
This is good news for those who don’t like to use the older ‘name’ attribute.
Option to choose which element would be nice
Prior to HTML 4 the only way to create a fragment identifier was to to use the name attribute on an anchor tag <a>.
As of HTML 4 practically any element can be used, with an id attribute. Being picky now, it’s just a shame there isn’t a further option to allow you to specify the element that you would like the fragment identifier to be an attribute of, e.g. an empty <div> for example.
That said, this is a welcome addition.