|
|
|
|
|
After reading my last article (if you haven't you should) you are able to write a very basic web page. Now when I say basic I mean BASIC, all you can do at this stage is put a title on your page and insert text in the body of the page. OK, then let's get on with the show!
This article covers new lines and paragraphs, discusses html's rendering of white space, teaches you about attributes and covers some basic formatting.
If you want to go on to the next line in a word processor you simply press [enter]. However, if you type the following into a html document: <html> Wrong! Here is some writing. Now it is on a new line. If you want to start more text on a new line you should write: <html> Standalone Paragraphs Blank line <html> This can also be written as: <html> Both of the above are presented the same in the browser but each uses a different approach. In the first example you are treating the <p> tag as a container tag, and enclosing each paragraph in a container. In the second example you are treating the <p> tag as a standalone tag that is inserted in the text when you want to start a new paragraph. The first example is the way that the tag is designed to be used but the second example works just the same. It's up to you which one you adopt. Indenting Go To Page: 1 2 |
|
|
|