Welcome to WebmasterWorld Guest from 54.145.208.64

Forum Moderators: phranque

Message Too Old, No Replies

Max. length of web page title

max maximum web page title

   
4:51 am on Oct 5, 2007 (gmt 0)

5+ Year Member



Hi,

What's the max. length of web page title allowed in IE and Firefox?

Thanks

4:58 am on Oct 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ignoring the technical limits in browsers may be a good idea. I find titles are more important in SERPs, so take a look at how a title would look in that context.

People rarely look at a page title in their browser, unless they're bookmarking the page (the page title is used as the default bookmark text).

5:28 am on Oct 5, 2007 (gmt 0)

5+ Year Member



Actually my question has nothing to do with website or SEO. I am developing an application in VB6 in which I will be making a string for title to do something that is why I was asking. Because my string could be 200 chars in length.
6:50 pm on Oct 5, 2007 (gmt 0)

WebmasterWorld Senior Member jomaxx is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I doubt there's any "maximum", in the sense that the browsers will crash if you exceed it. They will simply display the first n characters (easily determined if it's important) and throw away the rest.
8:26 am on Nov 13, 2007 (gmt 0)

10+ Year Member



I doubt there's any "maximum", in the sense that the browsers will crash if you exceed it. They will simply display the first n characters (easily determined if it's important) and throw away the rest.

There is a url limit. Certain browsers will crash if you exceed the limit. I saved the original source of this info [boutell.com] a few months back and tested it out and proved it to be true.

Here it is:

Although the specification of the HTTP protocol does not specify any maximum length, practical limits are imposed by web browser and server software.

Microsoft Internet Explorer (Browser)
Microsoft states that the maximum length of a URL in Internet Explorer is 2,083 characters, with no more than 2,048 characters in the path portion of the URL. In my tests, attempts to use URLs longer than this produced a clear error message in Internet Explorer.

Firefox (Browser)
After 65,536 characters, the location bar no longer displays the URL in Windows Firefox 1.5.x. However, longer URLs will work. I stopped testing after 100,000 characters.

Safari (Browser)
At least 80,000 characters will work. I stopped testing after 80,000 characters.

Opera (Browser)
At least 190,000 characters will work. I stopped testing after 190,000 characters. Opera 9 for Windows continued to display a fully editable, copyable and pasteable URL in the location bar even at 190,000 characters.

[edited by: kamikaze_Optimizer at 8:42 am (utc) on Nov. 13, 2007]

[edited by: phranque at 2:51 am (utc) on Feb. 12, 2008]
[edit reason] quote attribution and trimmage [/edit]

10:25 am on Nov 13, 2007 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



kamikaze, that is actually really interesting information:

Apache (Server)
My early attempts to measure the maximum URL length in web browsers bumped into a server URL length limit of approximately 4,000 characters, after which Apache produces a "413 Entity Too Large" error. I used the current up to date Apache build found in Red Hat Enterprise Linux 4. The official Apache documentation only mentions an 8,192-byte limit on an individual field in a request.

Microsoft Internet Information (Server)
The default limit is 16,384 characters (yes, Microsoft's web server accepts longer URLs than Microsoft's web browser). This is configurable.

but techman was asking about titles, so only have this to offer:
there is no length limit on titles per se.
i believe the practical limit for what is typically displayed on a search engine results page is 60-65 characters.

1:43 pm on Mar 31, 2008 (gmt 0)

WebmasterWorld Senior Member caveman is a WebmasterWorld Top Contributor of All Time 10+ Year Member



There is technically no limit on the length of a page title.

W3C recommends restricting the length to 64 characters as a matter of style.

There are plenty of SEO and display considerations involved when determining title length, but since that is not part of the OP's question, no point in going into it here.