October 5th, 2013, 06:18 AM
Java line paragraph & line breaks
I am new to Java and was wondering if someone might be able to guide me in the right direction. I am using the following on an XHTML doc type and get the following errors on validation, what alternative is correct?
document type does not allow element "br" here
document.write ("Display text goes here<br/>Second line here <br/><br/>Third line here or new paragraph");
Also how would I show a word in bold or italics, for example HTML equivilent of <i>word</i> or <b>word</b>
Thank you for you support...
October 5th, 2013, 06:58 AM
I'll ask a moderator to move the topic.
The next problem is that XHTML is very different from "normal" HTML (which is something most people don't realize). Don't use XHTML unless you know exactly what you're doing. It's not "the new and better HTML" or something.
What you want is plain HTML:
Then your validation issues will go away.