HTML - Html Versus Xhtml, Inline Css Versus External Css
Hi,
I need to seek some advice from the gurus he - 1) What are the benefits of using the new XHTML 1.0 compared to HTML 4.01 specification? Currently my website is using HTML 4.01 Transitional doctype. Will it affect the current site layout if I change to XHTML 1.0? Does this new format supports the older browsers like Netscape 2 and IE 3.02? 2) As we all know, there are two ways we can implement the CSS on a website. There are Inline CSS and External CSS methods. Some people claimed the Inline CSS will process faster as the codes are embedded into the HTML codes itself. Is it true? Also, is there any impact on the page size? Your comments are very much appreciated. Thank you. Cheers, Similar TutorialsIs there a good old fashion way (simple HTML) to make the bottom of my webpage content all meet evenly at the bottom? The problem is that the bottom of my webpage looks different in FireFox versus Internet Explorer. In Firefox, the bottom contents all meet evenly at the bottom. However, in Internet Explorer, the Center content looks shorter than the Left-Side and Right-Side Content, hence making it look uneven and jacked up... I'm using .shtml and templates for the Left-Side and Right-Side of the Site. The Center content is inside the index.shtml file. Thanks so much in advance for your help. I greatly greatly appreciate your help. Hi: I wish my users to be able to press the <Enter> Key to move forward from one input field to the next (and yes, I know that the <Tab> key more properly does this also). However, my users are mostly old-school desktop app users, where the <Enter> key moves forward field-by-field, and the <tab> key was hardly ever used. In my Registration page, there are twelve textual input fields that I wish to have my users allowed to use the <Enter> key to move ahead field-by-field. How do I accomplish this please ?? Thanks for any assistance offered. -Mel Smith this issue has been solved Ok look at these two links. Here everything lines up: http://www.hfhpulm.com/schedules/staffcallnext.php however here the date does not line up in the table: http://www.hfhpulm.com/schedules/staffcallcurrent.php Now the WEIRD thing is that the two codes are EXACTLY the same except: link 1: Code: <?php $next_month= date("F", strtotime("+1 month")); $curr_month = date ('F'); $consultsq1 = "SELECT * FROM `staffsched` WHERE `which_month`='".$next_month."'"; link 2 (the one that doesn't line up): Code: $next_month= date("F", strtotime("+1 month")); $curr_month = date ('F'); $consultsq1 = "SELECT * FROM `staffsched` WHERE `which_month`='".$curr_month."'"; Why would changing to the current month (which also happens to be the value on the database) make the lines not match up? I obviously don't understand layouts as well as I thought I did. I've cut down my last problem so I can upload a page for you to see and the source code for you to play with. Can anyone tell me why I get 3 different displays between IE 6, 7 and mozilla. what I want is for each row to fill the table 100% in height even though the number of lines are different. see the page here Thanks in advance Which doctype doesn't allow for inline? Right now every line break in my code, IE creates a space in the tables. How do I get rid of this? Thanks, Alec 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 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! 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 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 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 ? 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. easy learn html or xhtml? Regards, Ashok. What is the major difference between HTML / XHTML? I am designing the home page for a website. I have a list of links that is the site index that is 300px wide. I want this on the left side of the page. I want a paragraph that will basically be a introduction to the website to be inline with the index... sitting to the right of the index rather than below it. here is a simplified version of what I have: <body> <div id="wrapper"> <div id="head1"> <h1> page title </h1> </br> </div> <div id="list" <ul> <li> <a href="perps.html"> blah</a> </li> </br> <li> <a href="Why.html"> blah </a> </li> </br> <li> <a href="surveillance.html">blah </a> </li> </br> <li> <a href="me.html"> blah </a> </li> </br> <li> <a href="network.html"> blah </a> </li> </br> <li> <a href="mystory.html">blah </a> </li> </br> </ul> </div> <div id="intro"> <p> ***paragraph text****.</p> </div> </div> </body> CSS sheet: #list { width:230px; padding: 20px 0 0 20px; border-style: solid; list-style:none; } #intro { border-style:solid; float: right; padding: 0 0 0 0px; margin: 0 0 0 300px; border: 0 0 100px 0; } I know i need to use "span" but I have no idea where to start. 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 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! |