I don't know whether that's a good thread title or not, but we'll go with it anyway!
If we want to add any dynamic content to a Web page with PHP (in PHP tags obviously) then we can. If we view the source of the Web page then we'll see the content within the markup, whether the PHP is inline or has been written to the page through a templating system.
Now, if you load up date.html in the Web browser and view the source code everything appears as normal however, nothing appears within thetags. If you had a similar date script written with PHP then it would appear in the view source code.Code HTML4Strict:<p id="dateField"></p>
What content will appear in the markup source code of a document and what won't? Is there a way to have the content within a JS script appear in the source code as it usually would?
If the content within the JS code doesn't exist in the actual source code after the Web page has been fully loaded, does that mean that the said content won't appear to search engines? Doesn't this mean that, like Flash content, the content within a JS script is not search engine friendly?
Hope I can get some clarification and help on this. Thanks.