link-tag

Self closing Html Generic Control?

I am writing a bit of code to add a link tag to the head tag in the code behind... i.e. HtmlGenericControl css = new HtmlGenericControl("link"); css.Attributes["rel"] = "Stylesheet"; css.Attributes["type"] = "text/css"; css.Attributes["href"] = String.Format("/Assets/CSS/{0}", cssFile); to try and achieve something like... <link rel...

Why does the <link> ‘title’ attribute cause browsers to ignore my styles?

The following html document (together with the CSS) fails to render the styles in b.css. <!doctype html> <html> <head> <link rel="stylesheet" media="screen" type="text/css" title="A" href="a.css" /> <link rel="stylesheet" media="screen" type="text/css" title="B" href="b.css" /> </head> <body> <div id="A">A</di...

What does <link> tag do besides including stylesheets?

I know that the HTML <link> tag is used for attatching stylesheets, but looking at the W3CSchools tag reference, it has many other values for the rel attribute. I've looked all over the place, but I can't for the life of me find a place that describes in detail what the other values do and how they work. Can anyone send me to the right p...

How can I get the href of a <link> tag using jQuery?

Hi, I've seen lots on how to do this with an tag, and I have no problem doing it with that one, but I can't seem to retrieve the href attribute of a <link> tag. Even trying to grab the link tag at all: alert($("link").length); Gives 0. Any ideas? Thanks, Matt ...

Grails - Language prefix in url mappings

Hi there im having problem with language mappings. The way i want it to work is that language is encoded in the url like /appname/de/mycontroller/whatever If you go to /appname/mycontroller/action it should check your session and if there is no session pick language based on browser preference and redirect to the language prefixed site....