Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2013
    Thanked 0 Times in 0 Posts

    Will not validate

    Could someone please please tell me what I am doing wrong on my coding. It will not validate for me. I have tried taking out the / and I have tried moving the </script> I cannot figure it out. The error message is
    " Line 6, Column 55: Self-closing syntax (/>) used on a non-void HTML element. Ignoring the slash and treating as a start tag.
    <script type="text/javascript" src="buzzButtons.js" /></script>"

    My html code

    <!doctype html>
    //Program: BuzzButtons.js
    //Author: Sheila Younkin
    //Date: 9/25/13
    	<title>Buzz Buttons</title>
    	<meta charset="utf-8"/>
    	<script type="text/javascript" src="buzzButtons.js" /></script>
    	<form name="buttonForm" action="#">  
    			<label for="yourName">Name: </label>
    			<input type="text" name="yourName" id="yourName" /><br />
    			<label for="email">Email: </label>
    			<input type="text" name="email" id="email" /><br />
    			<label for="numButtons">Number Of Buttons: </label>
    			<input type="text" name="numButtons" id="numButtons" /><br />
    			<label for="price">Price per button: </label>
    			<input type="text" name="price" id="price" /><br />
    			<label for="salesTax">Sales Tax: </label>
    			<input type="text" name="salesTax" id="salesTax" /><br />
    			<label for="shipping">Shipping: </label>
    			<input type="text" name="shipping" id="shipping" /><br />
    			<label for="total">Total: </label>
    			<input type="text" name="total" id="total" /><br />
    			<label for="taxAmount">Tax Amount: </label>
    			<input type="text" name="taxAmount" id="taxAmount" /><br />
    			<label for="newTotal">New Total : </label>  
    			<input type="text" name="newTotal" id="newTotal" /><br />
    			<input type="button" id="calculate" value="calculate" onclick="Calculate_Click()" />

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Thanked 226 Times in 226 Posts
    <script type="text/javascript" src="buzzButtons.js" /></script>
    Should be
    <script type="text/javascript" src="buzzButtons.js"></script>
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.

    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts