• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.


tag: br

Page history last edited by Kernigh 13 years ago

A "line break" is something that ends a line of text, and starts a new line of text. You typically make line breaks by pressing the 'return' or 'enter' key.


However, HTML normally ignores any line breaks in the HTML source of a document; those line breaks do not appear in the web browser. (When we write in HTML, we might be using line breaks to separate our tags without wanting those line breaks to show up in the web browser.)


WikiStyle is simpler than HTML, and line breaks in the WikiStyle source of a wiki page do show up in a web browser. PBwiki does this by converting each WikiStyle line break into HTML <br /> tag in HTML. That <br /> tag tells the web browser to display a line break. For example, if in the Classic editor you write:


Parts of a sandwich:
peanut butter

You can buy these at the grocery store.


Then PBwiki might use the following HTML:


Parts of a sandwich:<br />
bread<br />
peanut butter<br />
You can buy these at the grocery store.<br />


Because a <br /> tag only makes a line break, there is not anything there to style with CSS. If your stylesheet has a br { ... } declaration, then it will probably have no effect, though with enough work you might find a way to mess up all line breaks on your wiki.


(The </p><p> in the above HTML closes one paragraph and opens another, using the <p> tag. This creates the blank line between "jelly" and "You can buy...".)

Comments (0)

You don't have permission to comment on this page.