After you have structured your web page into the key articles places, you can further arrange the textual content in those articles places. As mentioned temporarily in Part 2, HTML is different from conventional concept processor chips because you cannot basically click the RETURN or ENTER key to end a passage, and then the TAB key to indent a new one. Instead, you have to use labels to tell the technique where to begin and end sentences, as well as any other kinds of smashes.
The p tag features particularly as a package for sentences. Which indicates you use an starting p tag at the starting of your passage, and a ending p tag at the end. If each range in this baby's room rhyme were a passage, it might look like this:
<p>Jack and Jill went up a hill</p>
<p>To fetch a pail of water</p>
<p>Jack fell down and broke his crown</p>
<p>And Jill came tumbling after</p>
Figure shows how the browser would render this code.
Observe how the p tag makes a empty line between each of the sentences or areas by standard.
Even though the p tag is most often used to contain sentences of textual content, it does not instantly indent them. There is no frequent HTML tag to indent and, as mentioned in Part 2, the technique disregards any an eye and several areas you get into using the laptop key pad.
Instead, you could use the nonbreaking place personality company ( ) several periods to indent your sentences. In the following example, I used four periods at the starting of each passage to obtain a brief indent.
<p> Mary had a little lamb, its fleece was
white as snow. Everywhere that Mary went, the lamb was sure to go.</p>
<p> Twinkle, twinkle, little star, how I wonder
what you are. Up above the world so high, like a diamond in the sky...
Twinkle, twinkle, little star, how I wonder what you are.</p>



0 comments:
Post a Comment