Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Page title CSS style

Tags:

css

Is it possible to change title font style?

I want to have my page title with font-variant: small-caps;

like image 906
Maurício Giordano Avatar asked Nov 19 '12 04:11

Maurício Giordano


People also ask

Can I style title in HTML?

You can't style an actual title attribute It's not possible for a webpage to apply any style to the tooltip that the browser displays based on the title attribute. However, you can create something very similar using other attributes.

Can we add CSS in title tag?

You can apply CSS to the <title> element, but not though the style attribute (since it is for "All elements but BASE, BASEFONT, HEAD, HTML, META, PARAM, SCRIPT, STYLE, TITLE").


1 Answers

No we cant style it. For some information you can read W3C documentation about the title tag. It says:

The title is not part of the text of the document, but is a property of the whole document. It may not contain anchors, paragraph marks, or highlighting. The title may be used to identify the node in a history list, to label the window displaying the node, etc. It is not normally displayed in the text of a document itself. Contrast titles with headings . The title should ideally be less than 64 characters in length. That is, many applications will display document titles in window titles, menus, etc where there is only limited room. Whilst there is no limit on the length of a title (as it may be automatically generated from other data), information providers are warned that it may be truncated if long.

like image 82
totymedli Avatar answered Sep 17 '22 12:09

totymedli