Skip to main content

Posts

Showing posts with the label Creating Text Elements

Creating Text Elements in HTML

   Creating Text Elements Introduction To begin a new paragraph in your Web page, you use the <p> tag. Each paragraph of text should be  enclosed in a two-sided <p>. The <p> tag sets apart a text block from other elements, including other <p>  tags. A paragraph tag can have one or more sentences. Example: <p>Some Text Here</p> When you hit the enter key in a word processor or your text editor, the application breaks the text you write  after it, into a new paragraph, but when you press enter key in an HTML document, the browser ignores it. If  you want to show your two sentences in two separate paragraphs, you have to clearly tell the browser to do it.  You do this with paragraph tags. Example: <p>First paragraph.</p> <p> Second paragraph </p> Line Break To create a line break without officially starting a new paragraph, use the line break tag: <br>. This is a onesided tag placed within...