Paragraphs, Line Breaks
Paragraphs
You can create a new paragraph by using the tag
where you want
the new paragraph to start as shown in the HTML code below.
< HTML >
< HEAD >
< TITLE > Butch is the Greatest Dog < /TITLE >
< /HEAD >
< BODY background="babybutch.jpg" >
Butch is the name of my dog.
< p />
Vital Statistics: breed-Jack Russel, color-white, brown, little black, age-2 years old
< /BODY >
< /HTML >
Try IT
Line Break
If you wish to break a line and start a new one, you can
do so with the tag < br > as shown below.
< HTML >
< HEAD >
< TITLE > Butch is the Greatest Dog < /TITLE >
< /HEAD >
< BODY background="babybutch.jpg" >
Butch is the name of my dog.
< p />
Vital Statistics: < br /> breed-Jack Russel, < br />
color-white, brown, little black, < br /> age-2 years old
< /BODY >
< /HTML >
Try IT
A Word about XML Compliance for HTML5When you say your HTML5 is XML compliant it means that you have followed all the exact regulations of the XML language and you can search online to learn more about what this means. However, here are some examples for pargaphs and line breaks:
Paragaphs Typically you can surround a paragraph by <p> and the ending tag </p> or if stand along </p>
Line Break --<br / > is as discussed above the compliant version but, did you know <br> is also |
HTML XML compliance checker --one of many available online: https://validator.w3.org/ |