Jump to content

[SOLVED] Is HTML and PHP Code Supposed to be Written in Lowercase?


limitphp

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.