Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> What's The Diff Tween Html, Xhtml, And Shtml?, that's kind self explanitory
AvatarMonkeyKirb...
post Apr 12 2005, 10:51 PM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 14
Joined: 11-April 05
Member No.: 3,871



does any one know sad.gif ?
Go to the top of the page
 
+Quote Post
X-Wes
post Apr 13 2005, 12:49 AM
Post #2


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 43
Joined: 12-April 05
From: British Columbia, Canada
Member No.: 3,921



HTML is the Hypertext Markup Language. That's where it all started. Back when the world wide web was new, HTML was the only way information got passed between a server and your web browser.

HTML typically stores "static" pages. An HTML page does not change, so it's pretty much the same every time you load it. When you go to an HTML file on the Internet, the server just spits out the page to you.

(Sometimes HTML files *contain* things that change, like images or scripts, but the HTML file doesn't change until someone goes and changes it.)

HTML was all good and well for a while, but eventually it got slightly off-track. HTML 2 came out, followed by HTML 3 and HTML 4. By HTML 4, though, things were getting ugly. The original idea of an HTML file was to contain information, but web browser makers (Netscape, Microsoft) tried to put in a whole bunch of funny features like scrolling and blinking text. In other words, HTML was due for an overhaul.

Thus, XHTML was created. And it's still being developed. XHTML 1 was essentially HTML 4, with very minor changes. XHTML 2 is still being worked on right now.

The jist of the difference between HTML and XHTML is that XHTML is based on a more logical way of writing web pages. XHTML is written more like a database and less like forum code. To the programmers, XHTML is more meaningful.

But it's still just about the same, just newer and better. Not necessarily practical in all situations, but just newer and better.

SHTML...well, um...well...

SHTML is HTML with server-side includes. This means that the server is actually combining HTML files together (right when you ask for the page). However, I've never actually used SHTML, so I'll leave this reply to someone else. I'd hate to answer incorrectly, after all.

Hope that helps!

By the way, nice name (>")>
Go to the top of the page
 
+Quote Post
vizskywalker
post Apr 13 2005, 04:32 AM
Post #3


Techno-Necromancer
Group Icon

Group: Members
Posts: 1,018
Joined: 13-January 05
From: The Net
Member No.: 2,127



Can you please give a code example of a difference between HTML and XHTML? And also, demonstrate a feature XHTML has that HTML doesn't (if there are any)? Thanks

~Viz

P.S. nice ascii Kirby (^")>
Go to the top of the page
 
+Quote Post
X-Wes
post Apr 13 2005, 06:40 AM
Post #4


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 43
Joined: 12-April 05
From: British Columbia, Canada
Member No.: 3,921



QUOTE(vizskywalker @ Apr 12 2005, 09:32 PM)
Can you please give a code example of a difference between HTML and XHTML?  And also, demonstrate a feature XHTML has that HTML doesn't (if there are any)?  Thanks
*

Sure. First off, though, I should mention my typographical convention: I type all HTML tags in uppercase while typing all XHTML tags in lowercase. In HTML, case doesn't matter, but XHTML tags must be in lowercase. Also, where I omit closing tags in HTML, I will state whether those tags are optional or invalid. (Someone tell me if I missed any instances tongue.gif) XHTML examples are only valid when closed the way they are shown. I separate examples in the code with the standard HTML comment notation--this notation is the same for HTML and XHTML.

In HTML, various elements have no closing tag. These include <LI>, <P>, <BR>, and <IMG>. Closing tags are optional for the first two, but are invalid for the second two. Here is a comparison of the elements in the two languages:

Optional Close Tag:
CODE
<!-- HTML -->

<OL>
<LI>This is a list item
<LI>This is another list item
<LI>And yet another item
</OL>

<P>This is a paragraph. It is short.
<p>Here starts my next paragraph.

<!-- XHTML -->

<ol>
<li>This is a list item</li>
<li>This is another list item</li>
<li>And yet another item</li>
</ol>

<p>This is a paragraph. It is short.</p>
<p>Here starts my next paragraph.</p>


No Close Tag:
CODE
<!-- HTML -->

<BR>

<IMG SRC="infiltriticator.jpeg" ALT="A picture of the infiltriticator">

<!-- XHTML -->

<br />

<img src="infiltriticator.jpeg" alt="A picture of the infiltriticator" />



Thus, for elements that are optionally closed in HTML, close them in XHTML. For elements that are not closed in HTML, add a slash before the closing bracket. Other than remembering to use lowercase, that's the only difference between HTML 4.01 (the last version of HTML) and XHTML 1.0.

One thing I should mention--quite a few elements have been deprecated since HTML 4. This means that a lot of elements are recommended to be taken out. While many features that have been deprecated are still in wide use, better coding practices have come along. Thus, in future XHTML releases, we may see such features dropped. A few of the elements to be removed include <strike>, <u>, and <font>. (These are to be replaced with Cascading Style Sheets.)

One new addition to XHTML 1.1 is Ruby markup. However, Ruby appears to be most useful in East Asian languages, so I have relatively little to say about it. Take a look at the Ruby Specification for more details.

Having said all this, not much has really changed between HTML and XHTML. Other than changing the way a few tags are coded, most of the underlying language is the same. It is for this exact reason that there is not widespread migration to XHTML--there is no huge benefit for doing so yet.

If you do decide to switch to XHTML, though, I highly recommend that you check out some of the websites devoted to that topic. Unfortunately, I have never looked into finding information about XHTML off the web (I learn from these old-fashioned "book" things), though I'm sure someone would be happy to point out a few if you wait here a while.

Hope this helps, and please let me know if I've missed anything. Thanks!
Go to the top of the page
 
+Quote Post
madcrow
post Apr 13 2005, 07:57 PM
Post #5


Advanced Member
Group Icon

Group: Members
Posts: 196
Joined: 12-April 05
Member No.: 3,899



SHTML = HTML with SSI? I had always thought that it meant Static HTML...
Go to the top of the page
 
+Quote Post
X-Wes
post Apr 14 2005, 02:40 AM
Post #6


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 43
Joined: 12-April 05
From: British Columbia, Canada
Member No.: 3,921



As far as I can tell, SHTML represents Server-Parsed HTML. I get this sort of an answer from Answers.com. When looking up SHTML on Wikipedia, I get redirected to SSI, Server Side Includes.
Go to the top of the page
 
+Quote Post
vizskywalker
post Apr 14 2005, 02:50 AM
Post #7


Techno-Necromancer
Group Icon

Group: Members
Posts: 1,018
Joined: 13-January 05
From: The Net
Member No.: 2,127



SHTML is HTMl that allows server side includes. The "S" may at one point have stood for static, but that is not the case any more.

~Viz
Go to the top of the page
 
+Quote Post
vujsa
post Apr 14 2005, 05:02 AM
Post #8


Absolute Newbie
Group Icon

Group: Admin
Posts: 888
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714
myCENTs:35.43



QUOTE(vizskywalker @ Apr 13 2005, 09:50 PM)
SHTML is HTMl that allows server side includes.  The "S" may at one point have stood for static, but that is not the case any more.

~Viz
*



I believe that the "S" was required by many servers in the past to tell Apache that the file used Server Side Includes. Just like many hosts are set up to allow PHTML to be used to tell Apache that the PHP parser will be used for the file. Now that SSI is a standard feature on most hosts, many hosts have simply configured Apache to handle the request for SSI without the need to specify SHTML.

vujsa
Go to the top of the page
 
+Quote Post
AvatarMonkeyKirb...
post Apr 14 2005, 02:55 PM
Post #9


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 14
Joined: 11-April 05
Member No.: 3,871



biggrin.gif Thanks for clearing that up everyone! I think i understand now!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Converting HTML over to XHTML(13)
  2. Tastes Of Music(34)
  3. Favourite Bands(64)
  4. Whats The Last Dvd You Watch And Rate It Out Of 10(17)
  5. What's The Difference Between Linux And Unix?!?(18)
  6. What's The Best 3d Animation Software?(15)
  7. Server Os(16)
  8. Understanding Xhtml(8)
  9. Notebook Or Laptop?(17)
  10. Whats A High Quality Gaming PC Specs(18)
  11. Perl Vs Php(14)
  12. Boast Your Computers Specs.(162)
  13. Who Is Your Favourite Free Host?(145)
  14. My Review Of Runescape... What's Yours ( Poll ) ?(67)
  15. What's The Best CMS(38)
  1. Converting PSD To HTML(11)
  2. Cruzer Flash Drive (usb)(13)
  3. Html Basic Tutorial(9)
  4. Increase Your Knowledge Of Html Language(11)
  5. Php Random Selector(2)
  6. How To: Display A Members/user List.(3)
  7. Good Book For Learning Xhtml & Css(2)
  8. Web Editor(0)
  9. Indentation In Html(4)
  10. Joomla Template Kit Extension For Nvu/composer(3)
  11. What You Need Before You Can Create A Text-based Game..(7)
  12. Basic Html Tutorial(1)
  13. Good Books For Html And Css Beginners(1)


 



- Lo-Fi Version Time is now: 3rd December 2008 - 07:43 PM