Jump to content

How do XHTML, DHTML relate to PHP?


cirene

Recommended Posts

I am new to PHP.

 

I see alot of talk about XHTML and DHTML.  If I write php am I basically writing DHTML?  Are they basically the same?

 

How would you describe these languages and how they relate to php?

 

Sorry for stupid questions - I'm new.  :)

Link to comment
Share on other sites

I know HTML quite a bit.  I know how to have php read data and spit some out "on the fly".  Because that portion of HTML is dynamically being generated (by PHP), isn't this official DHTML, or am I missing something?

Link to comment
Share on other sites

This isn't DHTML:

 

<?php

echo "<html>";
echo "<head>";
echo "<title>Some title</title>";
echo "</head>";
echo "<body>
echo "<p>" . $dynamic_content . "</p>";
echo "</body>";
echo "</html">

?>

 

 

DHTML is normally used to describe dynamic content created with HTML, JavaScript, DOM and CSS:

 

http://www.w3schools.com/dhtml/default.asp

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.