When you create a professional website using CSS you don't create tables within the CSS document to format your page like you would a HTML document right? You specify the locations of everything in the CSS document if I am thinking right?
yes you are right all the coding on css document but it is call a xhtml document not a html document html document is different and xhtml little bit different from html but html is advance from html reason is that if u use xhtml document with css document then ur web page weight is very less and u opne ur web page very early in browser because ur all coding on css pages and u just call a css document on ur web page so, in today so many developer useing xhtml document with css document
Well you can't build a site with just plain CSS. Tables were originally made to store tabular data not the content. Use divs. You customize them with CSS and then insert them into your page. Simple.
hi katy h r u well i think u can build a good website with the css in xhtml if u not use table tag only use css with div tag in xhtml document then u make a simple and beautiful site. like i will show you one example: indiancity.com u can open that site that site only with css.not table tag.
I guess you misunderstood me. I meant you cannot build a site with plain CSS, you need to use HTML/XHTML too.
You mean to say people are serving "XHTML" documents as text/html and the browser reads them as HTML unless they specify the correct MIME TYPE for XHTML, right?
yes if u want to make website with css then should use xhtml pages not html pages. and browser also read it is xhtml pages. just change in the document type in coding page and make html and xhtml pages.
STOP THE NONSENSE ALREADY You don't have to use XHTML to use CSS. In fact, XHTML is virtually USELESS because the most dominant browser on the planet doesn't understand XHTML (though it understands XML clear as day). You can use HTML 4.01 just as easily as you can XHTML. Anyone who doesn't agree should try it for themselves and see what happens. XHTML is an application of XML. Which requires you to use an XML encoding and serve it as application/xhtml+xml (failure to do so will result in the XHTML file being served as plain vanilla HTML, with some syntax errors). Before using real XHTML you should at least have an understanding of how XML works. For more information, please read the following stickied threads over at SitePoint.com Frequently Asked Questions about HTML and XHTML XHTML vs HTML FAQ XHTML 1.0 vs 1.1
Then try using HTML 4.01 with CSS the same way you use XHTML (just be sure to pay attention to HTML's syntax). What's the worst that will happen if you do? It'll work.
i am make above 250sites in xhtml and css. and i have no problem and looking good my all sites. check this one himalyan.in
Have you tried viewing those sites with images disabled while allowing the stylesheet to be applied? I'm seeing some major accessibility problems with the one you provided.
For staters... <div id="banner1"> <img src="images/himalyan.in_01.gif" width="199" height="83" border="0" alt="" /><br /> <a href="/"><img src="images/himalyan.in_03.gif" width="199" height="26" border="0" alt="" /></a><br /> <a href="/link.php"><img src="images/himalyan.in_04.gif" width="199" height="25" border="0" alt="" /></a><br /> <a href="/resources.php"><img src="images/himalyan.in_05.gif" width="199" height="28" border="0" alt="" /></a><br /> <a href="/contact.php"><img src="images/himalyan.in_06.gif" width="199" height="34" border="0" alt="" /></a><br /> <img src="images/himalyan.in_07.gif" width="199" height="71" border="0" alt="" /><br> </div> Code (markup): Should be a list. Plain text works best, but if you're going to use HTML images, you'll have to provide ALT text for each image. Just having an empty alt="" attribute to shut the HTML validator up won't work, because nobody can see the links (or the alternative text) if the attributes are empty and images are not enabled. Second, your DIV with the ID of "left" needs to have a background color applied to it. This can be covered up with the background image you're using, but those who don't see the images will have a very hard time reading the link text (yellow text on a white background). The same thing can be said about your footer. And as far as your two content images are concerned, you need real alternative text. The "SEO optimized" text you're using does nothing for someone who's viewing your site through a screen reader, the Lynx browser or who has turned off images while still letting the CSS get rendered (dialup users such as myself are often guilty of this - though I leave the images enabled). Try replacing them with actual alternative descriptions of what the images are. In your first case, you have an image of two women walking down a street carrying shopping bags. The second image shows a man and woman walking down an aisle in a supermarket. Why not describe them as such? You can still get your keywords in there, and probably IMPROVE your SEO "value" of your page's content by catering to as many people as possible instead of search engines. This is just a quick overview of course. A thorough analysis would require its own thread.
Just so you know, if you want to keep the images, try this out: http://www.pmob.co.uk/temp/navimagereplace.htm Paul O'Brien (if you ever go to SitePoint, you'll know him there as Paul O'B) recommends using <em> instead of <span> in his code so that IE 5/Mac can handle it, but with the browser being officially dead for four years now, I think you can safely switch back to using the SPAN element now.