limitphp Posted January 13, 2009 Share Posted January 13, 2009 Is HTML and PHP code supposed to be written in lowercase? Link to comment https://forums.phpfreaks.com/topic/140674-solved-is-html-and-php-code-supposed-to-be-written-in-lowercase/ Share on other sites More sharing options...
trq Posted January 13, 2009 Share Posted January 13, 2009 Neither force the use of lower case, its personal a taste. Thought xhtml must be in lower case to validate. Link to comment https://forums.phpfreaks.com/topic/140674-solved-is-html-and-php-code-supposed-to-be-written-in-lowercase/#findComment-736199 Share on other sites More sharing options...
revraz Posted January 13, 2009 Share Posted January 13, 2009 And also know that php variables are case sensitive. Link to comment https://forums.phpfreaks.com/topic/140674-solved-is-html-and-php-code-supposed-to-be-written-in-lowercase/#findComment-736201 Share on other sites More sharing options...
dennismonsewicz Posted January 13, 2009 Share Posted January 13, 2009 uppercase HTML was how it was written when it first started... so early webpages still use it... deprecated as it is you still see it and it can be very annoying Link to comment https://forums.phpfreaks.com/topic/140674-solved-is-html-and-php-code-supposed-to-be-written-in-lowercase/#findComment-736203 Share on other sites More sharing options...
limitphp Posted January 13, 2009 Author Share Posted January 13, 2009 uppercase HTML was how it was written when it first started... so early webpages still use it... deprecated as it is you still see it and it can be very annoying so, it would probably be wise to start doing my html in lowercase? one thing I have been doing is, I use single quotes now for all my html.... ex) use to use: <a href="test" now I use <a href='test' that way if I ever put something in an echo "".....its ready to go. thanks for the info Link to comment https://forums.phpfreaks.com/topic/140674-solved-is-html-and-php-code-supposed-to-be-written-in-lowercase/#findComment-736208 Share on other sites More sharing options...
dennismonsewicz Posted January 13, 2009 Share Posted January 13, 2009 when doing my echoes i usually use single quotes... so for example: echo '<a href="test.html">Click me</a>'; but its a personal preference and personally I would begin writing using Lowercase HTML. But like it has already been mentioned keep in mind that PHP variables are case sensitive Link to comment https://forums.phpfreaks.com/topic/140674-solved-is-html-and-php-code-supposed-to-be-written-in-lowercase/#findComment-736210 Share on other sites More sharing options...
revraz Posted January 13, 2009 Share Posted January 13, 2009 The only bad thing about that is if you use a variable, then you need to have the string in double quotes or get out of the string. Link to comment https://forums.phpfreaks.com/topic/140674-solved-is-html-and-php-code-supposed-to-be-written-in-lowercase/#findComment-736233 Share on other sites More sharing options...
dennismonsewicz Posted January 13, 2009 Share Posted January 13, 2009 The only bad thing about that is if you use a variable, then you need to have the string in double quotes or get out of the string. True... its just the way i have always done it lol... it can be cumbersome Link to comment https://forums.phpfreaks.com/topic/140674-solved-is-html-and-php-code-supposed-to-be-written-in-lowercase/#findComment-736236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.