![]() (which is why there's 4.0 transitional, and 4.0 strict) If you have the extra layer of encapsulation, you can do checking, to make sure that the values are valid, and that you're not using tags that you're not supposed to. The big problem, with the change from HTML 3.2 to HTML 4.0 was that a bunch of tags were deprecated. Now for the question, why use functions to create everything? I don't know for everyone, but I think part of it is a historical thing - there was a time when HTML was in flux, and new versions were coming out. (but you're not using the OO syntax, so let's get to the other part). The OO implementation is may be faster than the function calls. Well, I think this is actually two questions - why use CGI to dynamically generate HTML, rather than hard coding your HTML, and second, why use the OO interface to CGI, rather than the function calls. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |