Copy and paste the example and give it a try.
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta name="author" content="your name goes here" /> <title>My First Webpage</title> </head> <body> <center> <h1>My h1 Heading</h1> <h2>My h2 Heading</h2> <h3>My h3 Heading</h3> </center> This is some text. This is the next line of text. This is the another line of text. Should they be on the same line or seperate lines? </body> </html> Try the following. What happens? Why?
- Put several blank lines in the header or body
- Move
</center>
to above the<h3>
line in the body- Add several spaces (blank characters) together in the lines of text in the body
- Put a
<br/>
between the lines of text in the body- Put
<p> </p>
around one or more lines of text in the body