Killersites Community: I wanted to learn HTML, not XHTML, aren't they different? - Killersites Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

I wanted to learn HTML, not XHTML, aren't they different?

#1 User is offline   siddu 

  • View blog
  • Group: New Members
  • Posts: 6
  • Joined: 11-October 10
  • LocationHyderabad

Posted 21 November 2010 - 11:19 PM

I wanted to learn HTML, not XHTML, aren't they different?
0

#2 User is offline   Ben 

  • View blog
  • Group: Administrators
  • Posts: 5,409
  • Joined: 19-December 08
  • LocationChico, CA

Posted 22 November 2010 - 12:09 AM

Take a look at http://www.killersit...ted-30-july-06/
Benjamin Falk | Falken Creative : Twitter : KillerSites Screencast Blog
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
0

#3 User is offline   LSW 

  • View blog
  • View gallery
  • Group: Moderators
  • Posts: 7,981
  • Joined: 20-December 08
  • LocationJuneau AK

Posted 22 November 2010 - 11:34 AM

Yes they are, two vastly different languages and purposes.

Cheers Ben!
Thank You, Migwetth, Gunalche’esh, Ha’w'aa, Danke

Kyle


"90% of user's 'problems' can be resolved by punching them -the other 10% by switching off their PCs."




0

#4 User is offline   Wickham 

  • PipPipPipPip
  • View blog
  • View gallery
  • Group: Advanced Member
  • Posts: 1,731
  • Joined: 20-December 08
  • LocationSalisbury UK

Posted 23 November 2010 - 01:55 AM

When Kyle says that HTML and XHTML are vastly different, I think he is referring to "pure" XHTML written with content="application/xhtml+xml in the meta tag. However, everyone using an XHTML doctype for normal websites uses content="text/html; (like this forum) which just results in the page being processed as HTML, so the only difference using a XHTML doctype is that you have to use the coding format like lower case names and closing tags with /> instead of > but the end result is the same.

So whether you use HTML 4.01 or XHTML 1.0, provided you use content="text/html; in the meta tag you will have the code processed as HTML.

It will get more complicated when HTML5 and XHTML2 are issued and also the compromise X/HTML5 which can be either HTML with content="text/html; or XHTML with content="application/xhtml+xml

Complicated ! We recommend using HTML 4.01 on this forum and when HTML5 becomes more widely used you won't have to change closing tags back from /> to >
0

#5 User is offline   madhusmita 

  • PipPip
  • View blog
  • Group: Member
  • Posts: 23
  • Joined: 20-May 11

Posted 08 June 2011 - 01:49 AM

HTML and XHTML are two different languages.But the difference between them is only 2 to 3%.They are almost same except some points.They are as follows:

*. HTML allows <br> without </br>. But this is not allowed in XHTML.
*. Empty elements like <br> and <hr> should also be closed in XTHML.
*. Proper Nesting of tags are required for XHTML.

You can easily learn HTML from XHTML.The codings, syntax are same except the above three.
0

#6 User is offline   Andrea 

  • View blog
  • View gallery
  • Group: Moderators
  • Posts: 5,498
  • Joined: 19-December 08
  • LocationSan Antonio, TX

Posted 08 June 2011 - 04:22 AM

View Postmadhusmita, on 08 June 2011 - 01:49 AM, said:

HTML and XHTML are two different languages.But the difference between them is only 2 to 3%.They are almost same except some points.They are as follows:

*. HTML allows <br> without </br>. But this is not allowed in XHTML.
*. Empty elements like <br> and <hr> should also be closed in XTHML.
*. Proper Nesting of tags are required for XHTML.

You can easily learn HTML from XHTML.The codings, syntax are same except the above three.

HTML also requires the proper nesting of tags - and XHTML also requires meta and image tags to be closed.

The actual question should be,however: Which is the proper doctype to be used, HTML and XHTML - and the correct answer usually is HTML.
0

#7 User is offline   Henry Layla 

  • PipPipPip
  • View blog
  • Group: Member
  • Posts: 53
  • Joined: 23-May 11

Posted 13 June 2011 - 03:01 AM

View PostBen, on 22 November 2010 - 12:09 AM, said:



Great post by Kyle. Helped me to clear a lot of misconceptions.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users