Chosen Solution
My code must be wrong because i keep getting an error that says “Illegally formed XML syntax. (line 5, file “Code”)” Heres my code
Hi Andrew So ,i tried yout code, and it did work, but i did see some syntax issues. In most cases if you make one or two small mistakes in HTML, the browser ‘fixes’ it for you. The ‘mistakes’ i saw are:
- The button doesnt termintate. For each HTML element, it needs to terminate, ie. open, and close.
There are 2 ways to do this.
somestuff (open and close )(self closing) You seem to close the FORM element with a “” at the bottom, but you never self closed the “INPUT” element. - It might not be the cause, but it should be addressed, is that you dont have any HTML tags either. All html documents need to start and end with…And should also contain a header, and body elements. Here is your code, with my small modifications: