HTML - Converting Html 4.01 Transitional To Strict
Similar TutorialsWhich document type is easy and most used either Transitional or Strict? As I have validated my page using w3c validator it asks to define class for each and every thing like <table class="xx"> .xx {width:40%;} This makes maintainablility easy but if I have to define 20 different widths I cant use class names just for these widths.. Will Transitional doc type support this?? I have a Web site whose pages are XHTML 1.0 Strict, and the vast majority of them are valid pages, according to the W3C validation page. Some of the pages are not valid, however, as I use some items such as target="_blank" and ol start="26" and items like that. Would any problems develop with indexing (or with anything else) if I decided to make the invalid pages transitional and keep the rest strict? Is it ok to have a mix of XHTML 1.0 Strict and XHTML 1.0 Transitional on a single site? Hello everyone! I've scoured around for a bit looking for an answer to a stupid question without success, so I'll pose it here. Currently I am working on a bit of Java code that prints out a document in XHTML 1.0 Strict Transitional. The document displays a formatted list of stock information. What I want is an <option> drop down list with the days of the week, and upon clicking on one of those days, the page automatically refreshes to show the stocks for that day. So very simple, I need for the page to change to a different .html file in the same directory onmouseup, I believe the action is. Here is my .java code, for those interested: Code: import java.util.*; import java.lang.*; import java.io.*; import java.text.DecimalFormat; public class Portfolio { public static ArrayList<String> stocks = new ArrayList<String>(); public static DecimalFormat fmt = new DecimalFormat("0.##"); public static int tot = 0; public Portfolio(){} public static void main(String[]args) throws IOException { stocks.add("APPL 5.67 3"); stocks.add("DFG 54.87 78"); stocks.add("DGSF 93.62 5"); printPortfolio(stocks); } public static void printPortfolio(ArrayList<String> strar) throws IOException { String stockName = new String(); double stockVal = 0.0; int numShares = 0; StringTokenizer st; stocks = strar; PrintWriter out = new PrintWriter("Portfolio.html"); out.println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN"); out.println("http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"); out.println("<html xmlns=\"http://www.w3.org/1999/xhtml\">"); out.println("<head>"); out.println("<title>User's JSMS Stock Portfolio</title>"); out.println("</head>"); out.println("<body>"); out.println("<img border=\"0\" src=\"ball16.gif\" width=\"29\" height=\"28\" alt=\"Ball\">"); out.println("<pre>"); out.println("STOCK NAME PRICE SHARES OWNED TOTAL"); out.println("---------- ----- ------------ -----</br>"); for(String str : stocks) { st = new StringTokenizer(str); stockName = st.nextToken(); stockVal = Double.parseDouble(st.nextToken()); numShares = Integer.parseInt(st.nextToken()); if(numShares > 0) { String SN = new String(); int nShares = 0; double price = 0; st = new StringTokenizer(str); SN = st.nextToken(); int numS = 25 - SN.length(); out.print(SN); //inserts # of spaces after data based upon data string length while(numS > 0) { out.print(" "); numS--; } price = Double.parseDouble(st.nextToken()); out.print("$" + price); double tumS = 18.0 - (Double.toString(price).length()); //inserts # of spaces after data based upon data string length while(tumS > 0) { out.print(" "); tumS--; } nShares = Integer.parseInt(st.nextToken()); out.print(nShares); numS = 19 - (Integer.toString(nShares).length()); //inserts # of spaces after data based upon data string length while(numS > 0) { out.print(" "); numS--; } out.println("$" + fmt.format(nShares*price) + "</br>"); tot += Double.parseDouble(fmt.format(nShares*price)); } } out.println("--------------------------------------------------------------------"); out.println("Stock Portfolio Net Worth : " + "$" + fmt.format(tot) + "</br>"); out.println("</pre>"); out.println("<p>"); out.println("Please Choose a Day:"); out.println("<br /><br />"); out.println("<select name=\"day\">"); out.println("<option selected=\"selected\">Monday</option>"); out.println("<option>Tuesday</option>"); out.println("<option>Wednesday</option>"); out.println("</select>"); out.println("</p>"); out.println("</body>"); out.println("</html>"); out.close(); } } At the bottom you can see a simple option list. This is the one that I want to be the day-chooser. In many of the places I've looked it talks about passing the value of the choice to a server. This is not my intention. I am thinking, possibly stupidly, that I can store the value of the choice in a variable and then in javascript have the page refreshed to the corresponding .html file in the directory. If this is the case, example code would be very much appreciated haha. Thank you! I am combining 2 sets of code for my new website. I am combining my nold stuff with a piece of my new website. One piece is written in xhtml doctype traditional and the other is in xhtml strict. naturally I either lose the old part or the new parts. Is there a way to easily convert the traditional to strict, so the whole darn thing works right? UBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Navigate Network BigResources.com BoxedArt.com StockedPhotos.com Built2go.com 123Webmaster.com A1Javascripts.com 1-Click-Clipart.com FresherImage.com FontFiles.com HTMLforums.com httpCITY.com PerlAccess.com HostRaiders.com Website Templates All access to thousands of web templates, logos, icons, more... Turnkey Websites Instant websites, turnkey PHP templates! Stock Photography All access to thousands of professional stock photos CMS Templates 100's of templates for joomla, drupal, wordpress, and more! HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > HTML / XHTML Webpage won't work when I upload to server! User Name: Password: Remember Me? View Poll Results: 0% Voters: 0. You may not vote on this poll View First Unread « Previous Thread | Next Thread » KEEP TABS Latest Posts Twitter Network Blog Main RSS Feed SPONSORS Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) Hi all, My document all seems to measure up, but I don't know how to impliment my flash animation correctly so that it complies with HTML 4 strict. Any help would be greatly appreciated as always. This is the document: http://www.warwickshireonline.com/pat Here's the validation. http://validator.w3.org/check?uri=ww...line.com%2Fpat Thanks in advance for your help. Can anyone tell me the best way to embed a Flash Movie that will comply with HTML Strict? http://www.kasedesign.co.uk/woodside.../panoramic.htm There seem to be quite a few options out there and they all seem very long winded! Thanks in advance! I am new to HTML and am currently working on my second website. At the moment I have started to validate all of the various pages using HTML 1.0 Strict but I have run into a problem on one page that I cannot figure out. The page involved an image map with the onmouseover feature on the major links which changes the image map to give the illusion of changing the text color of the link. I was able to validate using Transitional, but if possible I would like to validate the entire site using HTML 1.0 Strict. Here is a link to the Strict page with the error: http://www.crystalhatchlings.com/MainPageV.htm There is a link to the W3C Markup Validation Site at the bottom of the page. The error deals with the the "name" attribute. If I remove or change the "name" attribute the onmouseover function does not work and when you hover your mouse over the red links they stay red. They do not change to blue. Please bear in mind that the link is to a test page and while it links to the rest of my site none of the site links back to this test page. The Transitional validated page can be found he http://www.crystalhatchlings.com/MainPage.htm If I am missing something in my post or if it is not detailed enough please forgive me. As I said I am very new to web design. Take care and have a great day.... ciao, john. Hi. I'm having some problems making a table to put the sliced Photoshop images into HTML 4.01 strict doctype website. I really have no idea what the problem might be and the HTML validator validates it. The website is he http://ekstaze.net. What could be the problem? Thanks. Ive been challenged with coming up with 50 tags and fifty attributes. Tags Im ok with but cant for the life of me find the attributes now most of them are in css. Yelp, help? Hi there, I m using dom with css in my web page. Using the document type <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> My dom effect is not visible in mozilla 2.0. In stead if I am using the document type <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> the dom effect is visible. Is this vaild using w3c standards? Any help in this issue would be appreciable. Thanks in advance Hi there, I m using dom with css in my web page. Using the document type <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> My dom effect is not visible in mozilla 2.0. In stead if I am using the document type <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> Is this vaild using w3c standards? Any help in this issue would be appreciable. Thanks in advance Hello, wondering if someone can help me on the following: I am trying to convert a list of links over 350 collected over the years into html. The data is in text in the following format, <link title> "/" <actual http link> "/" <description> I could type each link into html but there is got to be a way to do it automatically.. since it is already formated in a text file with a clearly defined delimiter. Any ideas?? Thanks in advance for any ideas. I'm converting my webpages from a .html file to a .shtml file because I'm using SSI in the page. Now, can I just change the file type or do I have to do other stuff to the file? 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? Hi there, I have a form where people submit information to a site through a form; some people reference outside websites, but the links for them aren't clickable (no <a href... tag), just text so people would have to copy and paste it to use it. Is it possible to somehow check a submission for links and then add in the <a> tags if there are any? (without having to manually do it each time). Thanks for any help in advance! Gentlemen: I am new to both Html & Xhtml. Can anyone recommend a freeware editor for Xhtml & a conversion tool for Html to Xhtml? I'm in charge of doing the coding for a site that's been designed by a graphic designer with no knowledge of code. I like his designs, and the client wants me to make the site look exactly like them. They're .psd files representing each page. He sent me almost all of the images, but not the background and not certain key decorations (the guitar pics). I told him I needed the background, but his hard drive died (without being backed up) before he could send it to me. He doesn't seem to remember what font he used either. In light of all that, and the fact that the client wanted to get a basic version of the site up asap, I just converted the PSD's to JPEG's, uploaded them as whole pages, and used div's and image maps to add links and additional content. But that is obviously not a long-term solution. In fact, it's causing browser compatibility issues right now. And it's not accessible . . . etc. So I need to replicate these page design images using HTML or XHTML, and CSS. I can probably find a similar background and font to work with, but I just don't know where to begin. I haven't worked with CSS in years, but it looks like I'd probably need to use it. I'm not asking anyone to do my job for me. I'm just wondering how you would approach this task. Does anyone have time to look at the images and point me in the right direction? Here's the embarrassingly incomplete site: http://www.musicisrevolution.com The navigation works with Safari and Firefox. I'm also attaching one of the images so that it'll be clear what I'm talking about. I just got my code to validate under the strict doctype ... but once I changed the doctype, Firefox started rendering something different, so that now there's a black gap below the header bar. i checked by putting the transitional doctype back in, and with that it looks perfect. ... but IE doesn't render it differently when i put in the strict doctype. so what's going on here?!?! Hi, I'm new to webdesign - the website pages im working on looks strange when viewed in the "cached page" of search engine results for a search on "EcBiz". Here's an example page featuring wii games consoles if you want to go directly to the source. http://www.ecbiz.co.uk/wii-console.htm All comments welcome! A |