• Announcements

    • boen_robot

      Guidelines and Netiquette   03/28/2017

      Posting Problems:   Having problems posting your topic? Read through this: To join, you agree to our terms and conditions and fill out and submit a registration form. An activation email will be sent to your email adress, so you'll need to verify your account. After that the account has to be validated by one of the moderators. This will mean that it can take up to a day to be activated. A couple of things to remember to ensure approval: Don't use an email address in one of those $2 four character .com domains eg. xyds.com. These will be deleted and the domain added to the banned list. Don't use an email address that is within a domain with a bad reputation for spam. A Google search is run on every email address and email domain. Don't sign up with an email address that doesn't exist, doesn't work or requires the sender to answer a quiz before their email can get to you. Put your country and or state and city in the signup form. Blank forms will go to the botton of the "to do" list. And make sure that your email address and your country match, saying you're from Alabama and using a .ru email address is not going to get you activated. After a membership is activated the first few posts will be monitored. Posting spam or unapproved topics described in the agreement results in an immediate ban. The email provider and the IP addresses associated with the account will be banned and all posts will be deleted. These strict measures have been deemed necessary to hinder spam. Sorry for any inconvenience this causes, but it's not liable to change. If, after reading this, you still can't post and don't understand why, contact one of the Moderators listed here.   Topic Guidelines   Including the following information can expedite an accurate response from board members: Must be a Specific Problem or Question related to web design and development Include Code in Question (wrap with   for small blocks of code and for longer blocks   ) Include Code Author Include Extra Notes/Modifications/Attempts Include web link to page/file when possible Content Guidelines   You may not post, upload, link to, or email any Content that contains, promotes, gives instruction about, or provides prohibited Content. Prohibited Content includes any Content that breaks any local, state, county, national or international law. Prohibited Content also includes: No direct or indirect advertising or websites, forums, products, services No hijacking of posts (do not post your question in someone elses) Content that infringes upon any rights [ex. MP3s and ROMs] (including, but not limited to, copyrights and trademarks) Abusive, threatening, defamatory, racist, or obscene Viruses or any other harmful computer software False Information or libel Spam, chain letters, or Pyramid schemes Gambling or Illicit drugs Terrorism Hacking or cheating for internet/online games Warez, Roms, CD-Keys, Cracks, Passwords, or Serial Numbers Pornography, nudity, or sexual material of any kind Excessive profanity Invasive of privacy or impersonation of any person/entity Hacking materials or information Posting Tips   There are more BBcodes than there are buttons for on the reply menu. To get the full list, click "BB Code Help" underneath the clickable smilie face menu. Use   for small snippets of code Use   for lengthy snippets of code Use   if your snippet is HTML (optional) Use   if your snippet is SQL (optional) Rules of Conduct   Be nice. There's no need for calling someone stupid if they ask an 'easy' question. Keep your avatars and signatures absolutely child friendly. We have a younger audience on this forum. Keep your language appropriate for the same reason above. Do not PM moderators for help on the forum. Post on the topic, or create a new one.   Spam:   Recently, as you have all without doubt noticed, we have had lots of spam and advertisement on the forum. Therefore, we'd like to alert you as to what to do when you have found any of the aforementioned annoying messages: it. Immediately. Give a clear reason, please, if the advertising is not evident. DO NOT POST! Report, let the post stay as is, and we will get to it, meanwhile if you continue to post as normal in the other threads, it won't be on the top so long. Refrain from PMing the member. This won't help at all, as they are most likely spambots anyway. Thank you.       Images in signatures:   After thinking of users on dial-up, we have decided to enforce the following rules regarding signatures. Please pay heed to them. Respecting these rules is respecting the members on this forum with dial-up. Signature rules: No animated images AT ALL. No matter the amount of animation. Maximum image widthxheight: 300x150 Maximum image (file) size: 15kb Use calm colors. Do not use highly contrasting images in your signature, as this can get really annoying when seeing several posts from one member in the same thread. The same prohibited content goes for images as for posts. Lastly, use common sense. No lengthy signatures please. Save us some scrolling. Thank you.       Links in signatures:   Please understand that w3schools.com only exists because of voluntary work and is barely supported by the advertising littered throughout the tutorials and the forum. So, please, stop advertising other sites. DO not post links that drive traffic away from the w3schools domain - especially to a site that offers similar if not identical information. Please help support the site by keeping individuals on it. Thank you. Here are some guidelines as to what you can put in your signature: w3schools links --> allowed w3.org links --> allowed browser links --> allowed html editor links --> allowed personal sites --> allowed tutorial sites competing with w3schools --> NOT allowed sites completely irrelevant to webprogramming and this forum --> NOT allowed   Thanks for understanding, and for taking the time to read this. ~W3Schools Modstaff~
kaijim

XHTML Tutorial and Reference

27 posts in this topic

That was not sufficient tutorial so you are requested that you should add more information so that it is sensible for any webdeveloper.RegardsRoberto XananaRX

Share this post


Link to post
Share on other sites
That was not sufficient tutorial so you are requested that you should add more information so that it is sensible for any webdeveloper.RegardsRoberto XananaRX

Do you know HTML?

Share this post


Link to post
Share on other sites

Im with RX.. The tutorial is really a quick start but xhtml2.0 stuff is missed in it. Yesterday i was reading one article on web and surprised to find 5 xhtml dtds exist instead of 3 as given in w3schools tutorial. Later learnt xhtml 2.0 things r not mentioned in this tutorial..That wud be a great help if u could include xhtm2 details in it.thanksvnay.v_nai@yahoo.com

Share this post


Link to post
Share on other sites

If you did just a little more researching, you would know that XHTML 2.0 is still a working draft. It is too early for anyone to teach it, scince all of the stuff is still not clear.Currently there are only 4 DTDs. The three W3Schools mentions and XHTML1.1's which was mentioned in another W3Schools tutorial.There are also two HTML DTDs (Scrict and Loose) and that's probably the thing W3Schools missed, but then again, who cares? You should use XHTML 1.0 anyway.By the way, older versions of HTML have DTDs too, but they were only used for validation as is the case with HTML4. However, the XHTML DTD also make the CSS behave as closely as possible to the CSS-on-XHTML spec. That is why W3Schools says you really need the DTD in order for XHTML to work.There is stuff they've missed, but nothing so critical for you not knowing the language.

Share this post


Link to post
Share on other sites
There are also two HTML DTDs (Scrict and Loose) and that's probably the thing W3Schools missed, but then again, who cares? You should use XHTML 1.0 anyway.
Why is that? If I'm going to make a website, using the SGML for structure and CSS for presentation, what's my motivation for using XHTML 1.0 over HTML 4.01? What benefits does it have, considering today's browser market? I realize that it conforms to XML, but big deal. Why is that a benefit? If I'm still going to use CSS and not worry about things like XSLT, then why should I bother? If XML somehow makes it more accessible, are there any devices or products on the market today that actually take advantage of that, and display XHTML pages better then they do a well-formed and validating HTML 4.01 page?I mean apart from the fact that it is a newer spec, and considering the fact that webservers will not be sending the correct mime type for several years at least, is there any real motivation to use it?

Share this post


Link to post
Share on other sites

Yes. Any language that can deal with XML documents can deal with XHTML document as if it's an XML document. So let's say you want to grab all links' URLs. With a complex and rather weird regular expression you would achieve that, but there may always be some sort of leak. If the XML parser was used, an XPath expression like

//a/href

would serve perfectly and flawlessly for that job. But if the document is not a well formed XML document, this wouldn't work.

Share this post


Link to post
Share on other sites

By the way, there's a list of valid DTDs if anyone is interested :).

1 person likes this

Share this post


Link to post
Share on other sites

I know how to write HTML, by the ways I try to read W3schools' tutorial about XHTML but i do not understand. :)

Share this post


Link to post
Share on other sites

XHTML is really just HTML made to follow the rules of XML, things like closing empty tags with /> (e.g. <br /> instead of <br>), and compulsory attributes (e.g. alt on <img /> tags).

1 person likes this

Share this post


Link to post
Share on other sites
I know how to write HTML, by the ways I try to read W3schools' tutorial about XHTML but i do not understand. :)
it's pretty much spelled out right at the beginning...XHTML elements must be properly nested (matching opening/closing tag's, and closing a tag within a tag first...)XHTML elements must always be closed (all tags must have '/' before they close)XHTML elements must be in lowercase (simple enough)XHTML documents must have one root element (must be withing a <html></html>)pretty strightforward for the most part, I think. The rest is listed thought the tut. Anyway, code an HTML page with an XHTML DTD and see what the valaditor spits back out at you.also,Attribute names must be in lower case Attribute values must be quoted Attribute minimization is forbidden The id attribute replaces the name attribute The XHTML DTD defines mandatory elements

Share this post


Link to post
Share on other sites

Two years late... :)

Share this post


Link to post
Share on other sites

The W3Schools pages say that the HTML <p> </p> set of tags give a line feed plus an empty line between paragraphs. I've tried on Firefox and IE and both of these act exactly the same for these tags as for a <br /> tag. Is there a difference?

Share this post


Link to post
Share on other sites

<br /> Doesn't add an empty line, it just takes you to the next line.

Share this post


Link to post
Share on other sites

The actual difference between <p></p> and <br> is that <p> indicates that the text is a paragraph while <br> tells the browser to put a line break there.

1 person likes this

Share this post


Link to post
Share on other sites

Then there is no real difference between their actions ? Neither of them gives a blank line (I think they used to before HTML5).

Edited by PhilOfPerth

Share this post


Link to post
Share on other sites
The actual difference between <p></p> and <br> is that <p> indicates that the text is a paragraph while <br> tells the browser to put a line break there.
Ah, now I see it... the break is an "empty tag" which just does its thing, no ifs or buts, and you can't do much else with it, whereas a paragraph can be styled to do all sorts of things.(but the question remains, does paragraph, by default, leave a blank line, as W3Schools states? It doesn't on my machine).

Share this post


Link to post
Share on other sites
does paragraph, by default, leave a blank line, as W3Schools states? It doesn't on my machine
I think its default behaviour is adding a blank line. It works like that for me.

Share this post


Link to post
Share on other sites
I know how to write HTML, by the ways I try to read W3schools' tutorial about X HTML but i do not understand. :(
Well, X HTML stands for Extended HTML or Extensive Hyper Text Mark up language, which means it is an extended version of HTML just to create a common environment for the essence of building up websites "HTML infrastructure" and create a common soil for all browsers by validating X HTML through the World Wide Web Consortium ValidatorThank you:)

Share this post


Link to post
Share on other sites
I know how to write HTML, by the ways I try to read W3schools' tutorial about XHTML but i do not understand. :(

Share this post


Link to post
Share on other sites

It is very easy to read the theory part and write the HTML codes too.

1 person likes this

Share this post


Link to post
Share on other sites

I have visited several W3Schools it's very helpful for web designer. Thanks for share this link.. @kaijim

Share this post


Link to post
Share on other sites

Hi everybody! Please explain if the new tags, atributes etc. introduced in HTML5 are also usable in XHTML1.0? And if not, which one currantly gives more advantages, HTML5 or XHTML1.0?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now