Forum Moderators: not2easy

Message Too Old, No Replies

Inserting HTML document title and URL with CSS

         

mr_nabo

11:01 am on Dec 1, 2010 (gmt 0)

10+ Year Member



Hi,

Just wondering if it's possible to insert the title of a HTML page (<title>This title!</title>) and the URL of the page via CSS?

I was looking at something like this:

#selector:after {content:" [" title "] ";}


But obviously that doesn't work. Is there a way to do this?

Thanks,

mn

nrobidoux

9:51 pm on Dec 1, 2010 (gmt 0)

10+ Year Member



I don't believe so. CSS affects, to my knowledge, the rendering of content. The title is not part of the page "content."

You can change the title via javascript but if you're worried about SEO I would avoid it. Search engines won't see the change.