Html Paragraph

HTML Code:

<body>
<h1>Headings</h1>

<h2>are</h2>
<h3>great</h3>
<h4>for</h4>
<h5>titles</h5>
<h6>and subtitles</h6>

</body>

Place these lines into your HTML file and you should get what is displayed below.

Headings 1-6:

Headings

are

great

for


titles
and subtitles

Notice that each heading has a line break before and after each heading display. This is a built in attribute so to speak associated with the heading tag. Each time you place a heading tag, your web browser automatically places a line break in front of your beginning tag and after your ending tag exactly the same as with <p> tags.


Essay Walkthrough

Let's tie together headings and paragraphs to form an essay. Copy(Highlight, then Ctrl C) or code the following in the body of your page or a new page. Or make your own essay paragraphs.


HTML Code:

<h1 align="center">Essay Example</h1>
<p>Avoid losing floppy disks with important school/work projects...</p>
<p>For instance, let's say you had a 
HUGE school or work project to complete.  Off ...</p>

Comments

Popular Posts