HTML - Difference Between Html And Xhtml
What is the Difference between HTML and XHTML?I guess the code used in both of the languages is the same.
Similar TutorialsCan any one tell me that what is the basic difference between html and xhtml? Hi. What officially is supposed to be the difference between th "id" and "name" attribute according to HTML?? I know Javascript and CSS make a distinction between the two but as far as I can see the 4.01 spec makes no attempt to explain the difference, explanations of both seem like they do the same thing: both are supposed to be global unique, the spec even says they "share the same name-space" implying collisions implying they do the same thing. But I know name is not a valid attribute to alot of elements. Is it historical? Hi, I just changed some content in the middle of a oscommerce php page that I have been working with for a couple of years. I frequently add or change content in a table in this page. http://www.leavemeb.com/index.php Today, I added new stuff, pics, etc and used percentages in the tables to space things out well and so that when someone expands or condenses the browser window, the content adjusts accordingly. Now, in IE it shows up perfectly, yet in firefox on my mac it is very spaced out and can't even fit the whole page across without me having to scroll to the right to see the right collumn. Can anyone help me see what is not working here? I would be very grateful. I can't seem to see it. Nichole What is the major difference between HTML / XHTML? Everybody knows that HTML is very useful language for a site development and i have a knowledge about HTML language but i don't have no knowledge about XHTML. So what is the different between HTML and XHTML? If you know than please reply me. I read somewhere that HTML 4.00/1 has been "replaced" by XHTML (which I assume is XHTML 1.0). Is this true? Should we be switching to XHTML 1.0 ? easy learn html or xhtml? Regards, Ashok. Hey, So its another on of them questions So i want to know what would be best for me? ive never built a website and i havent learnt HMTL or XHTML or the many languages that there are. i know its going to be a long process and i am happy to learn it as i want my company to have a really good site. Thats the thing i run a production company and when someone checks out my site i want them to see how professional it is and also that they want my company to work for them!!! So what would be better to start off with? HTML or XHTML? ive read a little about both and have a little understanding. so as a novice would i need to learn HTML before i could even start to use XHTML? i read this thread and the last post says use whatever? so the question that i have is which one would be better for me and better for my site? considering i dont know any languages! http://www.htmlforums.com/html-xhtml...-10-93928.html Thanks! Hi there i would like to create a 3D list of website links, like whats in the middle of this page: http://www.tamberlow.com/ Is this possible using HTML/XHTML/JavaScript If yes, please could some1 point me in the right direction on how to go about this Thanks, jackie xxx I am a relative novice, so I'd appreciate help please - I have searched the web and other forums, but most answers are too complicated for me. When I started coding a year ago, I used a template file and just worked things out as I went. It happened to have a XHTML 1.1 DTD, but since I didn't even know what a DTD was, I didn't care. It is only recently that I discovered that (1) when I tried to validate I had numerous errors, and (2) virtually non-one uses XHTML 1.1. So now I am considering what Doctype I should use. There seem to be two opinions "out there". I checked out the source code for about 20-30 popular sites and found XHTML 1.0 was used more than twice as often as HTML 4. Many people say XHTML is the way of the future, and requires tighter code, so why not use it? The free WYSIWYG editor I use (NVU) codes in XHTML as default. However others say that some browsers don't handle XHTML well, and unless you need the extra features (and if you don't know what they are then you don't need them - my situation), then HTML 4 is still best - this seems to be the view taken in the excellent "Doctype and validation" topic on this forum. Some people go on to suggest taking a strict line on some of the optional coding rules (e.g. closing all tags) is a good practice, helps prepare you for XHTML, but is still good in HTML. So, what is the common opinion here - HTML4 for "dummies" like me? Thanks. Hi Guys, I have been creating sites for about a year and a half and was wondering what is the best doc type to use and reasons why? Which is best HTML or XHTML and also version numbers? Most sites i have done i have used XHTML 1.0 Transitional. Any feedback or comments on this is not important but thought i'd ask as i've never really thought about it before. CC_DESIGN This tutorial from http://library-cafe.com If someone just says that this is the high time when you should convert your site from HTML to XHTML - you can halt or not. But if he can say this with proper logic then you must be going through his decision - adaptibility is another thing. So at first you must know basically what XHTML is. XHTML is really more similar to HTML than it is different. The "changes" aren't really changes, but just a set of stricter standards to obey. XHTML stands for Extensible HyperText Markup Language. XHTML is a cross between HTML and XML. Any XHTML document will be valid HTML and valid XML, which means it can be opened in any XML editor. Why the need for XHTML? * XML allows the developer to add new tags whenever they want, allowing for more flexibility and creativity. * XHTML can be mixed with XML to provide easy updatable websites. * New ways of accessing the Internet are being created every day. XML/XHTML is a common standard for all these browsers/clients, which stops different standards being created for each of these methods. * XHTML is going to replace HTML in the near future so it will be useful if you already use it, as you will have one over on everyone who has stuck to using HTML. New Doctype Declaration <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/"> And the tag becomes: <html xmlns="http://www.w3.org/1999/" xml:lang="en" lang="en"> Just Some Rules 1. In the <head> tag the <title>Title here</title> tag must be first, nothing else 2. All tags must be lowercase, so no <TITLE> it must be <title>. 3. Any tag that doesn't have an ending tag, like <br>, must have a space and forward slash before the end like this: <br />. 4. All tag attributes must be surrounded by quotes, so replace <p align=center> with <p align="center">. 5. No attribute can have no value, so, for example, when using the <input> tag with checked at the end, you must change it to checked="checked". 6. All XHTML documents have to be well formed, so each file must have a html, head, title and body set of tags. 7. All documents must have a doctype, see above to find out the best one to use when you are new to XHTML. Hello everyone, Nice to join a forum for the first time and hopefully this will add extra help when I'm working on my development projects. I have a web site of my own using HTML transitional, but am planning to go from HTML to XHTML strict in the near future. Since the site holds over 3500 pages, it would not be feasible to upgrade every single page. Is there a free program or a web service that can do that job? This stuff in red seems to be sorted now, but I still have the problem with my php page [I've been developing a portfolio which is viewable at timdonaldson.com . I started making in with a HTML page, but to get the thumbnails to pop up like they do I had to transfer it into an xHTML page. I did this but blue aspects that I had styled went pear shaped and I'm not sure where I went wrong. There are horizontal lines made from 1px high div tags that don't show at all and small italic text that should be blue shows up black. Can anyone lend me some ideas on how to fix this? A standard HTML version of the page can be seen at timdonaldson.com/index2.html. I have a couple of other problems to... In the thumbnail gallery, some images don't link in OSX firefox, they don't have a problem in safari though. the 4th image from the left on the top row is like this.] And when you write in the contact form and send me an email, the php sends you to a thank you page, the text on this page doesn't want to be styled no matter what, I can manage to put it into a div container and centre it but that is about it. changing fonts or sizes with css doesn't do anything. I cant get my head around these couple of problems. Any help would be greatly appreciated! I am doing an intoductory Internet publishing subject at uni. The overall picture of Web authoring languages has me totally lost. Element tags and attributes are described in our text and then the last sentence in the chapter will say "by the way, what you have just learned is deprecated". Why I am learning it then? Should I use these elements? It seems there are 2 or 3 ways of doing just about everything when creating a Web page. There is HTML, XHTML (the difference between these two eludes me still) and CSS. I feel like I am programming in some sort or mutant language, a bit of HTML, a sprinkle of XHTML and a dab of CSS. I don't know where I am. Generally it seems the following is the "old way", to be avoided; <element property01="value" property02="value" property03="value"></element> And this is the "new way", that we should aim for; <element style="property01: value; property02: value; property03: value"></element> Sometimes we use a combination of the "old way" and the "new way"; <element style="property01: value; property02: value" property03="value"></element> OR <element property01="value" style="property02: value; property03: value"></element> I am very confused and was wondering if anyone could put the whole HTML vs XHTML vs CSS issue into perspective. Do I program in all 3 languages at once? What about deprecated elements? Do I avoid using them at all costs? Hello forum please help me out on this one I want to learn html and xhtml I have found a website that teaches html http://www.goodellgroup.com/tutorial/ but I want a more detailed tutorial and I didn't find xhtml please send me some links to learning websites for html and xhtml. Thank you much thanks Hi there, I am currently working on a XHTML and HTML computer assignment. The problem I have is I ve written the codes on notepad saved it, and when I refresh on Browser view there is no change. I am sure that the codes are right and im sure i am refreshing it from the right view. Any suggestions?! Thank you! hi im a newbie in this forum and i would like to know 2 things can someone explain what is the different between this 2 code: this code normally appear on the top or the first line on html code ( before <html> tag ) THIS: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > AND: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> what is the advantage or disadvantage between both. will it make any different for users or search engine? thanks Gentlemen: I am new to both Html & Xhtml. Can anyone recommend a freeware editor for Xhtml & a conversion tool for Html to Xhtml? Hello, I am learning HTML coding from a lynda.com video class and I am a little confused. The instructor keeps saying that different browsers don't support all the tags in the same way. This makes no sense to me. The whole reason that we had the desktop publishing revolution with standardized page layout and fonts (Postscript) was so that anything printed anywhere would look the same. Now, I'm learning that this is not the case with browsers. Isn't this like 2 steps forward and 1 back? I'm befuddled... Any insight into this lack of compatibility would be welcome. I mean even OpenOffice will read Word documents. Why can't we all just agree on the same standards for our browsers? Thanks for your input! ~Antonio |