HTML - Html Beginner Needs Help!
Hi guys. I'm hoping someone can help me edit the following code to include TWO required checkboxes (ex. I agree to terms of service, I agree to terms of use) and ONE submit button. So really not changing anything from how the code acts now, just adding an additional required checkbox. Thanks in advance!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> .highlight{ outline: #f00 dotted 2px; } </style> <!--[if IE]> <style type="text/css"> .highlight{ border:2px dotted #f00; } </style> <![endif]--> <script type="text/javascript"> window.onload=function(){ document.forms[0].onsubmit=function(){ return checkIt(); } } function checkIt() { if(document.getElementById('tos').checked==false) { alert('you need to check the "I accept terms of service" box'); document.getElementById('tos').className='highlight' return false; } else { document.getElementById('tos').className=''; return true; } } </script> </head> <body> <form action="#"> <div> <input id="tos" type="checkbox"><label for="tos"> I accept terms of service</label> <input type="submit"> </div> </form> </body> </html> Similar Tutorialshello everyone, can u possibly help me with the following? I have a very basic knowledge of how html works. I have basically used officelive.com to build a website via point and click. It allows you to add certain bits via html, but that is it. Now here what i am trying to do... I am trying to build a tool (?) that aids in diagnosis of medical problems. And I want it to look a little like this: Page 1 Does the patient have a fever? Yes No ( yes and no appear as buttons) Page 2 (if u click on yes) Does the patient have associated syptoms? Yes No Page 3 (if you click on Yes) Which of the following symptoms does the patient have? a. rigors b. chills c. neck rigidity d. other (text box to enter your free text) Now what I need help with is, that if the user chooses D and enters their free text, I want it to show up on the next page as part of the next question.... 1. So e.g Used enters "hypotension" in the free text box, I want the next question on the next page to be able to say "What is the duration of the hypotension?" I would also like it so that at the end of the process the user can end up with a list of all the symptoms, both picked and free text as a summary. I dont even know that this function is called, as if I know what its called I can always find html codes on the internet. Please help. This must be so simple for you IT lot! I, as u can tell trained in a completely unrelated field and am struggling. Hello Everyone Thank god for this website! I have a couple of problems I will start with my ebay storefront page I want to put in a Scolling Text Button in between to words and it's not working. I know it is probley some thing simple but for some reason I cant catch on to this HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><TITLE></TITLE> <META content="Evrsoft First Page" name=GENERATOR> <STYLE type=text/css>.shtc_niceTopHeader { FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #990066 } .shtc_niceDesc { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #990066 } .shtc_featured_text { FONT-SIZE: 10px; COLOR: #000033; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #990033 } .shtc_featured_head { FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #990033 } .shtc_niceBorder { BACKGROUND-COLOR: #cccccc } .shtc_nicePromo { FONT-WEIGHT: bold; FONT-SIZE: 18px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; LETTER-SPACING: -0.05em } </STYLE> </HEAD> <BODY onload=Change();Place();Time()> <TABLE class=shtc_niceBorder cellSpacing=0 cellPadding=2 width="100%" border=0><TBODY> <TR> <TD class=shtc_niceBorder> <TABLE cellSpacing=0 cellPadding=2 width="100%" bgColor=#ffffff border=0><TBODY> <TR> <TD class=shtc_featured_head vAlign=top width=310> <TABLE class=shtc_niceBorder cellSpacing=0 cellPadding=3 width=310 border=0> <TBODY> <TR> <TD class=shtc_featured_text vAlign=top rowSpan=2><A href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=260041564092"><IMG height=72 src="http://thumbs.ebaystatic.com/pict/260041564092.jpg" width=96 border=0></A></TD> <TD class=shtc_featured_head vAlign=top height=10>Thimbleberries 10 Yards</TD></TR> <TR> <TD class=shtc_featured_text vAlign=top width="100%" height=80>Up For Bid This Week 10 yards Of Thimbleberrie Fabic (RJR) Dont Miss out on this Bunddle!!<BR><A href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=260048164832">Click Here</A></TD></TR></TBODY></TABLE></TD> <TD class=shtc_niceTopHeader vAlign=top width="33%"> <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0> <TBODY> <TR> <TD class=shtc_niceTopHeader align=left colSpan=2>Fleece Blanket SALE!</TD></TR> <TR> <TD class=shtc_niceDesc vAlign=top> <TABLE class=shtc_niceBorder cellSpacing=0 cellPadding=1 border=0> <TBODY> <TR> <TD vAlign=top><HTTP: border="0" width="60" src="http://thumbs.ebaystatic.com/pict/260043272222.jpg" height="45" Rags-to-Stitches_Fleece-Blankets-Sale-19-99_W0QQcolZ4QQdirZ1QQfsubZ6878021QQftidZ2QQtZkm<img stores.ebay.com></A></TD></TR></TBODY></TABLE></TD> <TD class=shtc_niceDesc vAlign=top width="100%"> <P align=center><FONT size=4><FONT face="Curlz MT"><STRONG>You Choose any Fleece Blanket For 19.95 </STRONG></FONT><BR></FONT></A> <FORM><INPUT onclick="window.location.href='http://stores.ebay.com/Rags-to-Stitches_Fleece-Blankets-Sale-19-99_W0QQcolZ4QQdirZ1QQfsubZ6878021QQftidZ2QQtZkm'" type=button value="Click Here"><A href="Click Here"></A></A></FORM></P></TD></TR></TBODY></TABLE></TD> <TD class=shtc_niceTopHeader vAlign=top width="33%"> <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0> <TBODY> <TR> <TD class=shtc_niceTopHeader align=left colSpan=2>Fat Quarter Book With Bonus Fat Quarters</TD></TR> <TR> <TD class=shtc_niceDesc vAlign=top> <TABLE class=shtc_niceBorder cellSpacing=0 cellPadding=1 border=0> <TBODY> <TR> <TD vAlign=top><A href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=260043276477"><IMG height=45 src="http://thumbs.ebaystatic.com/pict/260043276477.jpg" This is just a draft see I have Evrsoft 2006 and when I get the scripts some work and some dont my next problem is I would like to make a fabric calcuator and I dont know where to start because it will need to be in inches and % I would like to know how or were to start to make this calculator http://batstoquilters.netfirms.com/fabriccalc.html In Advace I would like to Thank any one who is will to help me Jodie Hello, I am only new to html and as practice i was told to create the table as shown using the code and have failed on multible occasions. I feel now the best help I can receive is to see where I am going wrong through comparison. Please have a look at the attached image and help if you can, thanks. (It is fairly simple). In order to make online web-based games, I have started learning HTML as a first step. I tried to make an identical front page as the one I play the game at to put a challenge on how can I find solutions to make an identical page using my own ideas. I did it but I still have some problems: 1. my page only works on firefox if I try it on IE ...It's totally a mess. 2. whenever I try to enlarge the font ...everything gets mixed up & the page loses its shape. here's the original page: http://www.soccermanager.com/ & this is my page: http://www.freewebs.com/gasper000/frontpage.htm feel free to comment or to tell me how can I solve those problems. An HTML guide for the beginner's: Ok i am trying to make a website that accepts paypal as a payment. When preview the page and click the buy now button it goes to a paypal url and just displays this on the top of the screen - The request for this page was badly formed: it contained more than one "cmd" parameter, as follows: '_s-xclick' '_xclick' please tell me how to fix this and what i can do to get it working thanks for your help Hello everyone, I am newbie here. Can someone please tell me what is the HTML code for changing a color when my pointer point to the specific area? For example, when I point my pointer to the "Go back back one page" of Mozilla Firefox web browser, the color is changing from dark green into bright green. Thank you very much in advance Ahyoo Yo guys I need some help with some html code. Its lookin like I need two pictures and two paragraphs but I haven't got the book yet and don't know how to put these things together the right way. If someone can throw it together for me or give me some important information that I would need to get it done I would appreciate it man. I'm a student with not much cash so I'm hiring volunteers tho lol sorry guys hopefully it's easy to do for you here's what the page looks like http://academics.rmu.edu/faculty/wu/infs2150b/a/a1.pdf and the pictures needed for the page http://academics.rmu.edu/faculty/wu/...a1/Hiking1.jpg http://academics.rmu.edu/faculty/wu/...a1/Hiking2.jpg seriously though I can offer some free original music for someone's site background or webpage , some catchy music that would get those people coming back to your page! Hey, I built an email newsletter for a friend of mine using GoLive! It was fairly simple he wanted a header graphic and a green box on the left where he could put information about classes he was teaching/things relating to the articles in the email newsletter. Problem is... is that none of the ways I found to build it would come through safely in any email client, be it gmail, thunderbird, or otherwise. I was hoping to find one of two things: a good template we could paste his stuff into, or a free program that we could build his newsletter that would be generally readable in most mail clients. What advice would you offer to me, I'm not extensively familiar with HTML again, i just recently got back into it after a break (too long, cuz i know little to nothing now except how to pick apart and analyze code, just not how to build from scratch!) Hence why I was using Adobe GoLive. If you could recommend a template or a program that would be free, that'd be fine... otherwise any comments or info would be great. thanks. I just have three quick questions about HTML coding: 1. Whenever I apply an image as a background, it shows up on the sides next to the center column thing, but it also shows up in the content area in the middle. How do I make it show only on the sides? 2. I made a horizontal navigation bar with buttons that show a different background and text color when you hover over them. However, it goes like a pixel or so whenever I hover over it, like the image below. How do I prevent this and make it stay the same height as the actual navigation bar? 3. If I have a thing in my HTML code (not my CSS part) that I want to change on all pages, is there a way to apply this change to all pages? Thanks! And hello everyone, first post. Hello, I am very new to HTML. I am trying to develop a website with an image in the background. Suppose the image is simply ALL black. My text is also all black. I am trying to create one of those mini squares in between the background and the text of the website, and this 'mini square' will be white or some other color so the text will appear normally. Then, I can possibly have several different 'mini squares' in different colors and I will be able to add text to them, and it wont be hard to read the text even if the text and the background are the same color... So can anyone guide me and tell me what this is called and how I would add the most basic of these 'mini squares'? I apologize for my lack of terminology, I just started getting into HTML 3 days ago. Thanks in advance. Hello! I would like to learn HTML for work and was wondering if anyone could recommend a DVD Tutorial Program (preferably) or a book for someone who knows nothing about HTML. Thank you! Jeff Hi i dont know if these 3 things are possible but if they are can someone help me with the coding for them 1. basically im setting out a client feedback form and i will be asking them to fill in there name position and the job that refers to them here is my current coding for it <p align=center> <form method="post" action=""> <textarea name="comments" cols="75" rows="2"> there name is entered here </textarea><br> </form> <form method="post" action=""> <textarea name="comments" cols="75" rows="2"> There position is entered here </textarea><br> </form> <textarea name="comments" cols="75" READONLY> The job relating to them is entered here </textarea><br> now the name and position bit is ok but is it possible to make the job relating to them a textbox which automatically submits there email address when clicked submit 2. i need help setting up the submit button so that when clicked it will record all answers on the form so when it comes back to us depending on what radio button they clicked we would see it like this Question 1: Excellent Question 2: Poor Question 3: good 3. also im not sure how i would do the submit button itself so it would open there email client and have the form as an attachment or in text space with there email address i was told about formmail script but as im a novice html user i dont have a clue about that as for whether it is PHP or ASP i got this from the 1&1 official website maybe it will make more sense to you ______________________________________________________________________________________________ "Is Perl or PHP Available on Microsoft Servers? No, Microsoft Hosting Plaftform does not support PHP or Perl currently. You have to use .asp for scripting." "Can I run PHP3 and PHP4 Concurrently? No, after the upgrade to PHP4 on 22 November 2007, PHP3 will no longer be available and the .php3 extension will no longer be recognised by 1&1 web servers. Currently, the default is PHP4 on 1&1 servers, but you can set your scripts to be parsed by PHP4 or PHP5. These are the PHP versions currently supported." ______________________________________________________________________________________________ PLEASE HELP!!! Thanks alot Robert Jones I apologize in advance if I am putting this in the wrong place. I have a website for my webcomic. The site was constructed from a template provided by the host site. Ive messed with it and tried to organize it how I want it but I have pretty much reached the end of my beginner capabilities. My main concern right now is that under the comic page I want two have two spaces, on on the left for comments on the posted page, and another to the right that is overall news, that will show the same for each page. I have the comments section aligned to the left, but I am at a total lose for where to begin as far as the news/blog section. Could anyone please point me in the right direction? Also if anyone has any other suggestions concerning the site I would love to hear them. - suspicious link removed - Thank you. I am new to HTML and I am getting an error and do not know why. Please be simple in your solution as I do not have much HTML knowledge. Here is the Error: 1. Error Line 50, Column 111: document type does not allow element "img" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "address", "fieldset", "ins", "del" start-tag. …57" height="70" alt="HTML Dog logo" /> ✉ The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). Here is the code: HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Brendan Madigan's Official Webpage</title> </head> <body> <h1>Brendan Madigan is the coolest person in the world</h1> <hr /> <p>If anyone thinks that Brendan Madigan is not cool...</p> <p>They should be examined by a doctor immediatly.</p> <p>Why is Brendan Madigan so cool???</p> <p>Here's why:</p> <ul> <li>Brendan is awesome</li> <li>Brendan is really smart</li> </ul> <hr /> <p>You might be wondering if Brendan is cool enough to do a definition list...<br /><br />He is!<br /><br /></p> <p>Here is a<sup>definition</sup>list made <sub>by</sub> Brendan, himself (you can say the list is holy if you want)<br /></p> <dl> <dt><strong>Brendan</strong>(noun)</dt> <dd><br />A cool person</dd> </dl> <h2>Brendan does nested lists too!<br /></h2> <h4>Brendan's <em>Nested List</em><br /></h4> <ol> <li> <dl> <dt>Brendan(Verb)</dt> <dd><br />To make something cool</dd> </dl> </li> <li><br /> <ul> <li>He Brendaned the movie</li> </ul> </li> </ol> <p>How did Brendan become so good at HTML?</p> <ol> <li>He is really smart</li> <li>He took a class on HTML</li> </ol> <h3>If you want info on Brendan go to this website</h3> <p><a href= "http://www.madigangames.com">Brendan's Company</a></p> <p>Brendan looks like this</p> [b]<img src="testudo.jpg" width="30" height="40" alt="Testudos' image'" />[/b] </body> </html> Thanks for your help! Hi all. I am new to the forums and to HTML/XHTML coding. I am looking for some help with an assignment for a class I am taking. The problem I am running into is that I have the website looking like it is supposed to but it will not pass the W3C validator. Here is the code: <!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Make it Right</title> </head> <body> <h1> <center>Healthy Living Plan</center></h1> <p>Many people today are trying to stay healthy. What sorts of things do you need to do in order to maintain a healty body? Here are some ideas for you. Of course, you should always consult with your doctor before undertaking any new diet or exercise plan.</p> <hr /> <h2> <center>Eat right</center></h2> <p>Refer to the United States Department of Agriculture food pyramid to find out how many grains, vegetables, fruits, meats, dairy, and oils that you should eat daily. Also consult the other resources available on the Internet to determine a plan that will work for you.</p> <h2> <center>Keep a food, mood, and exercise journal</center></h2> <ul> <li>Track what you eat each day</li> <li>Track your mood throughout the day</li> <li>Track the exercise that you do each day</li> </ul> <hr /> </body> </html> And here is the error I get: Error Line 14, Column 8: document type does not allow element "center" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <center>Healthy Living Plan</center></h1> ✉ The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). Error Line 20, Column 8: document type does not allow element "center" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <center>Eat right</center></h2> ✉ The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). Error Line 26, Column 8: document type does not allow element "center" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <center>Keep a food, mood, and exercise journal</center></h2> ✉ The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). Any help or explanation to why this is occurring will be greatly appreciated. Thank you. This page is HTLM written by myself. Please help me to see this page and what to change? - link removed - Yello, new here on the forum hope i have come to the right place. I am making this website with a fixed header with buttons, using ajQery script to get a nice fade effekt on the buttons on mouseover. Looks great in firefox but in ie i get this bugs where a the picture is missplaced. Cant realy get it to work (havnt done html very long) Would anyone care to take a look and help me out a bit? if so i can upload the page as a .rar /plomp Hey im a beginner at all of this... But i am trying to add a simple image to my web.. here is my code... <html> <head> <title>Pillz Webby</title> </head> <body> Socom Confrontation <img src="sig.jpg" width="400" height="300"/> </body> </html> i have no idea what i am doing wrong... and when i view my properties for my .html file it says it is TYPE OF FILE: FIREFOX DOCUMENT..... shouldnt it say .html??? cuz i saved it as html.. http://www.freewebs.com/ovatime/favlinkz.htm there is a link of a screenshot, this is what comes up whenever i load this code to my browser... any help is appreciated Greetings and good cheer... I have what I imagine to be an extremely basic question. My href codes doesn't work in firefox. They work fine in IE. Sample code: <a target="_blank" href="http://www.skateboardingbulldog.com/tyson_skating.WMV" ><font color="red" face="Trebuchet MS" size="2">5.20.04 Tyson</i> </font></a><br /> Is the problem in the "_blank" ? The "<br />" Is it somewhere else? All assistance greatly appreciated, and duly thanked in advance! ~p.l. |