banner
Welcome to HTML.co.uk, the number one resource for all news, information, and happenings regarding HTML.

Updates: HTML.co.uk has just been relaunched. Subscribe to our RSS Feed to stay on top of HTML news and techniques.
May
5th

Rules for Text Input and Editing HTML

Author: Editor | Files under HTML Basics, HTML Tutorials
Tags for this article: , , , ,

If you use a text editor or source text oriented HTML editor to produce HTML files, then you should know and pay attention to the following rules:

  • Pay attention to the masking regulations for HTML unique characters, special characters and the entire character set.
  • Order line breaks and blank lines in such a way as to provide an optimal overview for the source text. Also make sure that line breaks and new paragraphs aren’t displayed the same way by the web browser, as they are entered into the source text. For line breaks and paragraph breaks to appear in the internet browser, you have to use the corresponding paragraph or line break HTML elements. If for some special reason you wish for everything entered in the source code to be displayed in exactly the same way by the web browser, you may use the HTML element for pre-formatted text.
  • Remember that there are no tabs in HTML. A tab entered in the source code will be changed into an empty space by the web browser. Line break characters, tab characters and space characters in HTML make up the so-called white space characters. The browser typically interprets a tab or line break in the HTML source text as an empty space. Multiple consecutive white space characters are ignored and fused together as only one single empty space character. Instead of actually pressing the space bar, you may instead enter the   character combination into the source code to produce an empty space; and do so as many times in a row as desired.

Post a Comment