When you right click and click 'view source' in a browser, do you see ALL the code that is used for that page, including separate .css or .js files that might be in a separate folder? Or do you see only the html file and any <style> or <script> tags that are included; I imagine if you could see all the content, they would have to compile it all together somehow. Just curious - I've learner a lot from looking at the source code from many websites But it makes sense to me not to reveal ALL of your secrets online. Thanx
After I posted this I was reading the w3school php tutorial and I have another question. I've heard it said that javascript is a browser language and php is a server language. In many of the examples they have embedded php right into the html code, like this -
Welcome <?php echo $_GET["name"]; ?><br>
Your email address is: <?php echo $_GET["email"]; ?>
My question is this; does the browser make a server request every time there is a php tag - is there some way the php CAN run on the browser. I'm trying to learn logistics of what goes where and the why's and wherefores of it all. Very confusing when starting out. I just thought I should have posted this in the php section, but it is kind of a general question. Thanx again.