|
Some useful tips while working with HTML: No one can be sure about how the HTML text will be displayed in another browser which s/he wrote. It depends on the system settings of the user. Whenever the user will resize his window the text is also reformatted with it. It is also dependant on people’s preferences. Some people use large computer displays while others use smaller.
- It is recommended that you should not try to format the text in your editor by putting empty lines and spaces to it. HTML will simply trim these spaces in your text. May whatever the number of spaces is HTML will count it as one. Also, in HTML every new line is counted as one space.
- At times people use empty paragraphs <p> to insert blank lines. This is not a recommended practice. It is better to use the <br> tag.
- Always put the closing tag </p>at the end of a paragraph. It is acceptable in the current version of html however it won’t be allowed in the next version of html. Also, not putting a closing tag at the end of a paragraph is not reliable.
- Don’t use the <br> tag to create lists. In this tutorial, you will further learn how to create lists.
- HTML has been automated to add extra blank lines at times such as before and after elements like a paragraph and a heading.
|