For some reason its still is not showing on one line, maybe it is has to do with my wordpress theme? Here is the HTML Code (thats in the WP Page Editor)
The <label> element has very important meaning in HTML, and is crucial for the form to be meaningful—if not visually, then to anyone useing a screen reader, for example. Associating the <label> with the input also makes the input easier to click etc etc. Bad HTML syntax is like bad grammar, punctuation or spelling; or like poor structural engineering. It’s really basic stuff in web design. Just sayin’.
OK, works in FF but not Safari. In Safari, there are empty <p> elements appearing between the <inputs>. First thing I’d try is marking up those labels properly. That might be throwing Safari. Otherwise it’s a CMS issue.
EDIT: indeed, the CMS is closing off each line as if it’s a <p>. I suspect that’s because it’s confused about the text with no markup.
Steer clear of w3schools. It’s a muchly discredited site now, out of date and full of misinformation.
So is there anything I can do? Will I not be able to use my current theme? There might be a WordPress Plugin to solve the problem…
I’m confused. Can’t you just update the code as we’ve discussed it? Your earlier comments suggest that you are able to alter the code, or that you’ve written it (based on what you’ve read etc.)
I’m confused. Can’t you just update the code as we’ve discussed it? Your earlier comments suggest that you are able to alter the code, or that you’ve written it (based on what you’ve read etc.)
Yes I wrote the code so I have access to it. When you say ‘update’, are you talking about adding the closing paragraph tags?
Both. Those lines just replace the two you posted in the previous post. Do you have an online example so we can see it in action? It works for me locally, so perhaps, again, there are other styles in the way.
O, I see the test2 version is updated. OK, well there’s still a </p> at the end of each line. Is that something you’ve put in there, or is the CMS doing that? Those should not be there. Firefox ignores them, but Safari places a whole paragraph between each intput/label pair, creating havoc.
We posted across each other. See my second post. There are still straggling </p> tags in there. Did you write them, or are they being entered by the CMS?