Page 1 of 1

Can a web page name start with a number?

Posted: Thu Feb 09, 2023 1:17 pm
by alan_sh
Is there any reason why I cant have the name of a web page start with a number? e.g "1stmilnrow.html"

thanks

Alan

Re: Can a web page name start with a number?

Posted: Thu Feb 09, 2023 1:51 pm
by BaconFries
At onetime yes under the following https://www.rfc-editor.org/rfc/rfc952 but now under https://www.rfc-editor.org/rfc/rfc1123#page-13 there should be no issue. After all there is 1&1 IONOS
and 123-reg.co.uk both start with a number.

Re: Can a web page name start with a number?

Posted: Thu Feb 09, 2023 4:29 pm
by alan_sh
OK - I'll carry on.

It's not actually the host name, but a web page name. I assume the same RFC covers that too.

Alan

Re: Can a web page name start with a number?

Posted: Thu Feb 09, 2023 4:48 pm
by jerryco

Re: Can a web page name start with a number?

Posted: Thu Feb 09, 2023 5:17 pm
by Pablo
Although a page can start with a number, IDs and object names cannot start with a number because then styles and scripts may not work.
This also means that if you have enabled 'include page name in automatically generated ID attributes' and the page name starts with a number that the page may not be rendered correctly.

Re: Can a web page name start with a number?

Posted: Thu Feb 09, 2023 8:09 pm
by alan_sh
Pablo wrote: Thu Feb 09, 2023 5:17 pm Although a page can start with a number, IDs and object names cannot start with a number because then styles and scripts may not work.
This also means that if you have enabled 'include page name in automatically generated ID attributes' and the page name starts with a number that the page may not be rendered correctly.
OK - I'll add a letter at the start, just in case.