There are several HTML tags that control the look and format of your webpage. One example is the bold tag that you read about in an earlier article. Remember that you used the bold <b> tag to make text appear boldface or dark? But maybe you need even more control over the format of your webpages. Thats what we will talk about in this tutorial. As with all HTML tags, in the format tags the element name of each tag is surrounded by angle brackets.Paragraph and Break Tags<p>The Paragraph Tag</p>You will need a way to put a space between your paragraphs. You guessed it; you would use the paragraph tag. Place the opening paragraph tag <p> at the start of the paragraph and the closing paragraph tag </p> at the end. This will cause a white space to appear between paragraphs. Actually, the closing </p> tag is optional but it is still good practice to use it. You can align to the left, center or right of the webpage with the align attribute (<p align="left">).
<p>Mary had a little lamb. . .</p> <p>Three blind mice. . .</p> <br> The Break TagWhat happens when a short sentence does not go all the way to the end of the line on the webpage and you want to start a new sentence on the next line? A good example of this is the poem below. You can use the Enter key on your keyboard to move down to the next line to type a new line of text and it will look OK in your text editor. But when you look at your webpage in a browser, the first and second lines will run together.
His fleece was white as snow.<br><br><br> And everywhere that Mary went<br> The lamb was sure to go. ← Back | Next → | ||



Save to Del.icio.us




