HTML - Html-xhtml
easy learn html or xhtml?
Regards, Ashok. Similar TutorialsHi 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. 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. 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! 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 ? 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. 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 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! What is the Difference between HTML and XHTML?I guess the code used in both of the languages is the same. 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! 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? Howdy everyone! I'm a noob here and I'm at my wits end. The real problem here is that I know just enough to get myself into trouble, but no concept on how to dig myself out of it. The website I'm working on is he http://www.psychological-warfare.com My problem is that it looks OK in Explorer, but looks like a trainwreck in Firefox. It was designed by retrofitting a template I bought years ago, so it's like trying to decipher the amatuer translation of a Russian mad scientist's codex. I apologize in advance. I've been moving DIV's back and forth for days and Explorer doesn't seem to care. Things just keep getting worse and worse in Firefox. I think the main issue is that I have a left column and then the header that spans the middle and right columns. I can see how Firefox might hate that... The next problem (and I'm hoping someone might have an idea on this): I used a modern header calling this whole mess XHTML. I know exactly squat about the differences between HTML and XHTML except that XHTML loves to have everything "/>"ed. Would all of this work if the header called it transitional HTML and give myself a little leeway? What code should be at the top of my page? Thanks everyone for the help. I wish I could buy everyone a beer! Can any one tell me that what is the basic difference between html and xhtml? So I posted this before on a different website, but it wasn't exclusive to HTML, so I decided to post this here where I can get more opinions and input from a larger group of web savvy people: So currently I've been using XHTML 1 Transitional for about half a year now (I've only been developing websites for that long), but there are so many other different types, such as XHTML 1 Strict, HTML 4 Transititional, HTML 4 Strict, that I'm now confused and don't know which to stick with in order to be best prepared for the future. I did a lot of research on the web and I've hard arguments for both sides... stick with XHTML... switch to HTML.... So which is the better choice and why? Apparently XHTML was supposed to be the future, but then there is now HTML5 in development and a lot of the browsers seem to be leaning towards that.... Than there is also XHTML 2 in the works.... *sigh*... I'm so confused... So what should I do? Should I stick with my current knowledge of XHTML 1, or switch to writing in HTML 4? And then somebody responded and told me to go read up on HTML5 in Wikipedia, and I did, then I responded: So I read the Wiki link; basically the conclusion I got is that HTML5 will be both HTML and XHTML ("XHTML5") compliant? Well... then I guess I have nothing to worry about? Then somebody else (who visits htmlforums.com) responded and told me it best to stick with XHTML. And told me to use Strict instead of Transitional. He then refered me to htmlforums.com. And now I'm here posting this post And FYI, my websites uses much dynamic content and also iframe... so it best I stick with XHTML Transitional? Hi people, I just built a web site with a design made in photoshop, so when I saved it as gift and html everything fine, but when I made the code over the <head> for Xhtml all my images and stuff were distorted. Thanks for your help Regards Paul Weinstock 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 |