What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Is there a way to include (in PHP) with javascript?

Pages: (2): « First « 1 [ 2 ] Last »
Is there a way to include (in PHP) with javascript?
Author: Message:
fluffy_lobster
Veteran Member
*****

Avatar
Posts: -2

Posts: 1391
Reputation: 23
36 / Male / Flag
Joined: Nov 2002
RE: Is there a way to include (in PHP) with javascript?
Well you should be making your pages XHTML compatible anyway :P  All the main web browsers support it.
05-28-2004 02:03 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Is there a way to include (in PHP) with javascript?
Who said that? It's not because (most) browsers support it, that you should use it... What is wrong with HTML? If you don't have a use for XHTML then why use it? XHTML is an extention to HTML... BTW, most pages I encountered on the web that claim to be XHTML don't even have a DTD specification and are just normal HTML pages (but with the error like /> in them)... So don't mix up standards ;)


To give examples:
For non-empty elements, end tags are required in XHTML. This means you can't use:
  <p>this is a line<p>this is a new line.
but you must use:
  <p>this is a line</p><p>this is a new line.</p>
This is not required in HTML. Now look at the source of this thread... It claims to be XHTML, but yet <p> is used without </p>.

Attribute values must always be quoted in XHTML. That's something many people forget. You can't use:
  <img with=100 height=100 src=http://blahblah>
but you must use:
  <img with="100" height="100" src="http://blahblah">
This is not required in HTML.

My whole point is, don't use XHTML if you don't need it. You don't use Flash either if you don't have a use for it ;)

This post was edited on 05-28-2004 at 03:30 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-28-2004 03:13 PM
Profile PM Find Quote Report
fluffy_lobster
Veteran Member
*****

Avatar
Posts: -2

Posts: 1391
Reputation: 23
36 / Male / Flag
Joined: Nov 2002
RE: Is there a way to include (in PHP) with javascript?
From what I gather, there are various benefits of XHTML over HTML because it's an XML-compliant markup.  The purpose of using XHTML over HTML isn't so much that it enhances the page at all but it allows browsers to move on with the knowledge that more sites are now using XHTML.  Browsers would be a fair lot faster if they parsed only XHTML, not HTML

Plus, XHTML is GREAT for making conversation about :P
05-28-2004 04:15 PM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Is there a way to include (in PHP) with javascript?
XHTML is the future! :p

quote:
http://www.w3.org/TR/xhtml1/#xhtml
The XHTML family is the next step in the evolution of the Internet. By migrating to XHTML today, content developers can enter the XML world with all of its attendant benefits, while still remaining confident in their content's backward and future compatibility.

MyBB was originally not XHTML, and is in the process of being "upgraded." When I create new things, I use XHTML, and I check it with an XHTML validator.

quote:
Originally posted by CookieRevised
For non-empty elements, end tags are required in XHTML. This means you can't use:
  <p>this is a line<p>this is a new line.
That's shitty anyway... you should always close your tags if you want clean, professional code. :dodgy:
05-28-2004 05:14 PM
Profile PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On