Jul 20, 2008

What Is Xhtml - What Is It And Why Use It?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..
Pages: 1, 2, 3

free web hosting

What Is Xhtml - What Is It And Why Use It?

wariorpk
I was wondering what XHTML is because I have seen alot of sites that claim to be XHTML validated rather than HTML validated. How does this compare to HTML? Why is it better? How hard is it to master? How similar is it to HTML? Thank you for answering my questions!

Notice from BuffaloHELP:
You should know by now that What Is...? section is not to post question. Moving. Warning issued.

Reply

jlhaslip
Xhtml is very similar to html. The biggest differences in terms of using it are :

1) requires a different Document Tpe Declaration at the start of the file.
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/tr/xhtml1/DTD/xhtml-strict.dtd">


2) all tags need to be closed. Even single tags use a "/" to close the tag.
CODE
<br />


3) all tags must be lower case.
CODE
<TITLE> is not acceptable, but <title> is.


4) less forgiving. It assumes nothing. In html, you can forget an end tag. Not in Xhtml.

There are other differences, but these are the main issues you will run into as you adapt to the differences...

For a more complete description, look
here at the w3schools web site.

Good luck with it.... it is easier than it looks if you already have an Html background.

 

 

 


Reply

ZeroHawk
If it's pretty much the same as html, but "less forgiving", than why would you use over html? What are it's extra capabilitis?

Reply

guangdian
xhtml is a development of html

now html version is : html 4.01 traditional
xhtml version is : xhtml 1.0 strict ( traditional)
xhtml 1.1 strict
and you will say why use xhtml instead of html?
by the developing of web design and internet browser.there be more and more code writing style by every browser.the web designer also got so freedomly to write the codes.so html 4.01 won't fit the process of browser update.
if internet explorer publised the new version support this code expression like
CODE
<marquee>some</marquee>

but netscape browser don't support the "marquee",they support
CODE
<blink>
but no other browser supported.
then there would got many problems of display.your web displayed this type in IE,displayed another type in Mozilla.it's really bad.
so the [url=http://webstands.org]webstands[/code] organization was built.the organization do the effort to perswade the microsoft and opera ,netscape browsers to support webstands,so the web designed based on web standards will displaed the same on any brosers.
----
xhtml is between xml and html. xml is a extensioned language that can be used on more programme.xhtml fits both html and xml.
xhtml is a webstandard language.the sites whose web page use xhtml and css layouts got more and more .the codes of them bacame short and simple than html.
----
i just searched for a manuall book about xhtml and css layouts.wish anyone know that would help me.
thank you very much.
best regards,
guangdian

Reply

Tyssen
QUOTE(ZeroHawk @ Nov 2 2005, 10:19 AM)
If it's pretty much the same as html, but  "less forgiving", than why would you use over html? What are it's extra capabilitis?

Taken from here:

QUOTE
XHTML is the W3C standard for developing cross browser compatible websites. It fuses all of the display elements of HTML with some of the functionality of XML. By forcing a web designer to program more carefully and adhere to strict code standards, XHTML successfully allows a vastly larger percentage of browsers or code parsers to properly parse your documents. In less geeky terms, it means more people can see your site the way you meant for them to see it, and less people see your site with elements strewn all over their page.

For your site to reach the widest potential audience, it is important that it is developed in the most cross browser compatible method possible. XHTML is that method.


Reply

FLaKes
Xhtml is like the evolution of html, its the next step for html. It stands for eXtensible Hypertext Markup Language. It is more strict than html, by this it means that certain elements were removed or changed. For instance, you can have to close every tag you make, even the br! < /br>, and you have to separate presentation from content (put presentation on a style sheet). In Xhtml you arent supposed to have a font property, color etc in each text, instead you define a tag and use it in all your text. This is supposed to be a standard that will be, or is, a cross browser solution for many navigators, and it comes in three flavors: strict, transitional and frameset.

Reply

uaktags
I still dont get it...can you show me sum code and what it does that HTML can NOT do. like how much more effect and better is XHTML to HTML?

Reply

Tyssen
QUOTE(uaktags @ Nov 9 2005, 02:32 AM)
like how much more effect and better is XHTML to HTML?

I hate when people don't read threads properly. mad.gif
This was just two posts above yours and, in a nutshell, describes exactly why XHTML is better than HTML:

QUOTE
XHTML is the W3C standard for developing cross browser compatible websites. It fuses all of the display elements of HTML with some of the functionality of XML. By forcing a web designer to program more carefully and adhere to strict code standards, XHTML successfully allows a vastly larger percentage of browsers or code parsers to properly parse your documents. In less geeky terms, it means more people can see your site the way you meant for them to see it, and less people see your site with elements strewn all over their page.

For your site to reach the widest potential audience, it is important that it is developed in the most cross browser compatible method possible. XHTML is that method.


Reply

michaelper22
XHTML is a combination of HTML tags and XML strictness. If you forget to close a tag, the page isn't valid. Empty tags must have a "/" bafore the ">". Atrributes must have a value; <p nowrap /> won't work, instead use <p nowrap="nowrap" />.

Reply

Plenoptic
Well obviously you know what XHTML is now. If you want to learn how to use it or any coding languages go to http://w3schools.org It is a great site for learning to code. You can also learn here at the forums in this section or the tutorials. Many people here are experienced and can help you.

Reply

Latest Entries

mystmag
XHTML is something that I hate using, however it's growing to become more popular than HTML...all tags must be lowercase, you must end all tags, even breaks. In short, learn HTML before you learn XHTML.

QUOTE(jlhaslip @ Nov 1 2005, 07:10 PM)
Xhtml is very similar to html. The biggest differences in terms of using it are :

1) requires a different Document Tpe Declaration at the start of the file.
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/tr/xhtml1/DTD/xhtml-strict.dtd">


2) all tags need to be closed. Even single tags use a "/" to close the tag.
CODE
<br />


3) all tags must be lower case.
CODE
<TITLE> is not acceptable, but <title> is.


4) less forgiving. It assumes nothing. In html, you can forget an end tag. Not in Xhtml.

There are other differences, but these are the main issues you will run into as you adapt to the differences...

For a more complete description, look
here at the w3schools web site.

Good luck with it.... it is easier than it looks if you already have an Html background.
*



Reply

Tyssen
QUOTE(Lozbo @ Dec 28 2005, 04:56 PM)
I don't really understand what you are trying to say.

I can't make it any clearer than I already have.

Reply

Lozbo
If an attribute depends on the property, and there are special properties for different browsers, then obviously you will have special attributes right?

I don't really understand what you are trying to say... the fact is that you can not use the scrollbar-face-color propertie to change the color of the scrollbar in firefox, so I think that the point is whether or not CSS will become totally cross browser standard, which I believe it already ALMOST is...

So the main issue will be with the browsers, so that they show up things as they were intended to be based on w3c standards...

Reply

Tyssen
QUOTE(Lozbo @ Dec 28 2005, 12:29 PM)
There are special css for IE and for Mozilla, try google for changing the color of the scroll bar (only for IE).

That's CSS properties. The attributes are the things that relate to the properties. I meant that if you have a property common to all browsers, it has the same attributes - it doesn't have different attributes depending on what browser you're using.

Reply

Lozbo
QUOTE(Tyssen @ Dec 21 2005, 05:51 PM)
No, CSS has the same attributes for all browsers.
*


There are special css for IE and for Mozilla, try google for changing the color of the scroll bar (only for IE).

For example:

moz-border-radius is a CSS property only for Mozilla.
scrollbar-face-color is a CSS property only for IE.

I believe there must be more, for other browsers yet i ignore it.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3
Similar Topics

Keywords : xhtml

  1. Opening Hyperlink In New Window Using Xhtml 1.0 Strict
    (5)
  2. Xhtml Strict Links Tip
    A problem might accure (5)
    If you try to put a link that has an & in your xHTML strict page, you need to change & to & in
    order for the page to be xHTML Strict.. eg.. BAD LINK: CODE
    http://jasamza.korisnik.com/forums/viewtopic.php?f=19&t=7&sid=6c2e9120dcff6e0b83698c4aa7be929a
    GOOD LINK: CODE
    http://jasamza.korisnik.com/forums/viewtopic.php?f=19&t=7&sid=6c2e9120dcff6e0b83698c4aa7
    be929a copy pasted &....
  3. Questions About Xml, Xhtml
    (3)
    Hi, I like to know briefly about XML , XHTML and can be they be in replacement of MYSQL/MYSQL for
    data storage?....
  4. Create A Xhtml, Css3 Valid Gallery With Javascript ;part 1
    (0)
    What were making In this tutorial, we will be creating a web page that can be used for a gallery, an
    easy way of showing your portfolio of works or photography, etc. The page will be coded in XHTML
    1.0 Strict and CSS3 valid, our CSS won't even have any warnings on them apart from one. So the
    first thing we need to do is set up a base structure for the XHTML. Below is the code for this.
    HTML html xmlns =" http://www.w3.org/1999/xhtml "> head > meta http-equiv ="
    Content-Type " content=" text/html; charset=iso-8859-1 " /> title >XHTML & CSS Galler....
  5. Wml / Xhtml ?
    for wap (6)
    wml/xhtml who gvs more facilities to make a wap-community site?....
  6. Need Free Help With Upgrading Websites For Church
    Must be versed in XHTML and CSS (4)
    I recently helped a Father Andreas of the Ukrainian Orthodox Church in Denver revamp his
    websites. He was happy enough that he passed on the information about my help to a friend. I have
    received this e-mail, but I am unable to do much since I am not educated in XHTML and only know
    basic CSS (still learning). QUOTE I want to update my websites from HTML with tables to XHTML
    with Style Sheets. All of my websites are for my Church, the Hellenic Orthodox Traditional Church.
    Would you be able to assist me with this project? In Christ! Symeon of Denver If....
  7. Embed Tag Valid In Xhtml 1.0 Strict?
    (2)
    Is it? If not, could anyone reccommend how to get round it?....
  8. Xhtml Strict Method For Submit/reset Buttons As An
    (1)
    What's the proper way to handle submit and reset buttons? Using type submit and reset don't
    allow you to replace the default button with an image, using the type image doesn't allow a
    button to automatically act like a submit or reset....so far as I know. So How should I do this
    when I want to use a custom image as the button? Code will be best way to explain, thanks! ....
  9. Encoding And Xhtml Requirements
    (2)
    OK, so after reading a lot of contradicting information I decided to ask. How should document
    encoding be announced? The W3C validator (or at least links from the same upon a missing encoding)
    suggests the server should send the encoding in the content-type header. The problem with this that
    I see is that you can't always make a blanket judgment about what encoding pages will be in. Is
    it simply suggested to use .htaccess files (or equivalent) for this, then? I am led to believe that
    most (all?) browsers will ignore a content-type meta tag. Is there another in-file o....
  10. Modify The Invision Skin Standards
    about the xhtml (1)
    and hi, i just used the ipb1.3final.yeah.my skin is caliskinV6,got that from here ,since the cali3D
    won't realease the new skin for IPB1.3 i just wanna to know if this is impossible,--modified the
    skin to xhtml 1.0 or 1.1 standards. and you know the default skin of ipb is a comptnet,and the
    Adding skin like CaliskinV6 is another comptnent,they are the different system,so i think there
    would be the way to make the templates to xhtml stict. thank you,guangdian.....
  11. Strict Xhtml
    target atribute (4)
    I have ran into this issue; Strict XHTML 1.0 does not support target atribute... so what should i
    do? How will i use _blank pages with my stuff?....
  12. Xhtml 1.1 Vs Xhtml 1.0
    Whats the difference? (13)
    Is it only one type of xhtml 1.1 versus the three different types of xhtml 1.0 (strict,
    transitional-loose, and frameset)? Is it 1.1 only strict? What are the differences or whats this
    all about? I have heard something about xhtml 1.1 but have not actually seen one (not that i know at
    least)... Thanks!....
  13. Xhtml Forms Layout
    all within the standars (8)
    We all remember the good old tables right? When we used them to design or beloved websites. But
    nowadays things have change a little bit, strict code format, css, xhtml and no tables. And so
    when it comes finally to the design of a form, instead of having two rows (left row with the label
    and right row with the input tag) and those rows aligned to look nice (left row= right aligned and
    right row=left aligned), how can we keep order with our fancy style sheet? Thanks in advance.....
  14. Xhtml Dtd
    can you set it up? (5)
    Can you set up the document type definition in order to create your own tags in XHTML? (Just as it
    happens with XML). I have been learning XML and DTD, and as i actually DO find it useful, i think
    its even more useful the fact that a language (like HTML) already strongly accepted, has its own
    structures defined. Its just sometimes you need to add a little adjustment here and there. So i
    ask if theres a way to define this in XHTML, your structures of tags and attributes and all that. I
    already know a coupple of sites which teach xhtml, but just have not found what i wa....
  15. Order With Xhtml And Css
    how do i improve (10)
    hi!, actually i'm working on one site for my grandma's vivarium, i have been researching
    all kinds of features about xhtml and css and it rocks, but i have got a lot of problems with the
    arrangement, alignement and possitioning, specially when the content of tables differs and i have to
    create a new class, and then i have to reorder all the padding, marging, width and heights commands
    or even worse, nesting!. I lose the control of the layout. ok the question here is if there is
    any way of doing standard tables(with divs) of content or layouts structures,....
  16. What Is The Xhtml 1.1 Code To Embed An Applet?
    (2)
    I've been doing a lot of java stuff recently and some is pretty neat, so I'd like to put it
    on the internet. I'm using XHTML 1.1 for all my pages, though, and according to W3Schools
    doesn't exist anymore and to use object. It's not working, though. There are a bunch of
    attributes ( http://www.w3schools.com/tags/tag_object.asp ) and I have no idea which things I need
    to use. Which do I put for an applet?....
  17. Xhtml Concerns
    just wondering (6)
    i been reading about it i got somewhat an understanding of it but how can you clearly define as
    xhtml when all it really is a html redefined to the point that its just trimmed down and little bit
    added here and there or its just the lack of understanding of it that confuses me. well of course
    im wondering if anyone is using xhtml or still using html or a combo of both? of course i need some
    more info w3c don't help out much.....
  18. Html And Xhtml
    serving the right kind (11)
    Right now I have a site, which I've made XHTML 1.0 Strict. I am sending it as
    application/xhtml+xml to browsers that say they can handle it, and as text/html to all other
    browsers. Anyway, I started thinking that I'd much rather send proper HTML 4.01 to browsers that
    don't understand XHTML instead of XHTML pretending to be HTML 4.01. It's not really a
    problem with IE, because it is made to handle badly written sites, but who knows, some browser that
    can handle HTML, but not XHTML, may be (correctly) parsing CODE <p> Hello <br />
    World....
  19. Wha's The Difference Between Xhtml 1.0 And 1.1?
    (2)
    i learned xhtml 1.0 from w3 schools, but that was 1.0. what's new in 1.1? thanks in advance....

    1. Looking for xhtml

Searching Video's for xhtml
advertisement



What Is Xhtml - What Is It And Why Use It?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE