Welcome To My Online earning Tutarial And Artical Based Web Portal

Wellcome to My Online Earning Tutorial and Article Based Web Portal

Web design Tutorials Lesson 2.( Part 3)

Paragraph and BR breaks
 f you have ever used a applications program like Microsoft Word then you recognize that to start out a replacement paragraph all you wish to try to to is to hit the Enter key on your keyboard. The indicator can then move down, prepared for you to start out writing. In HTML, however you cannot try this. If you wish to start out a replacement paragraph, you've got to use the P tags.To try it out, add the subsequent slightly below your Heading (You will use your own text, though, instead of sort out the Hamlet soliloquy):



To be, or to not be: that's the question: whether or not it's nobler within the mind to suffer the slings and arrows of outrageous fortune, or to require arms against a ocean of troubles, and by opposing finish them?

To die: to sleep; no more; and by a sleep to mention we tend to finish the heart-ache and also the thousand natural shocks that flesh is heir to, it's a consummation piously to be wished.

When you have finished, your hypertext mark-up language code ought to seem like this: (Don't worry regarding the indenting, though. we tend to did ours with great care it might look nice during this book. just one press of the spearhead is recognize in hypertext mark-up language, everything else is unnoticed, as well as indents and carriage returns.)


note the P tags:You have to use the P tags whenever you wish to start out a replacement paragraph.Strictly speaking, though, you do not would like the closing P tag. you'll simply try this to start out a replacement paragraph:


To be, or to not be: that's the question: whether or not it's nobler within the mind to suffer the slings and arrows of outrageous fortune, or to require arms against a ocean of troubles and by opposing finish them?To die: to sleep; no more; and by a sleep to mention we tend to finish the heart-ache and also the thousand natural shocks that flesh is heir to, it's a consummation piously to be wished.

The result's a similar. however in fashionable net secret writing, it is best to use the closing tag for paragraphs in order that you'll add Styling rules. (You'll learn the way to try to to this a little later.)Save your work and look at the leads to your browser. you ought to see this:




Notice the paragraphs breaks within the text Notice too  though that our code was indented, this does not show up within the browser.The browser can ignore all those indents we tend to had, and any further white house. If you wish white house you've got 'tell' the browser. you are doing this with the break tags, like P and BR (which you will see soon).

As associate exercise, strive deleting the P tags in your code Save and refresh your browser. happens:

 Without the P tags the text simply runs on.
There is still, however, a paragraph break once the heading, despite the fact that we tend to deleted all the P tags. this can be as a result of the H heading tags insert their own paragraph breaks.

No comments:

Post a Comment