How to write in HTML

How to write in HTML
 
How to write in HTML
  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 5/5 (5 votes cast)

Thank you for rating!

You have already rated this page, you can only rate it once!

Your rating has been changed, thanks for rating!

Log in or create a user account to rate this page.


Any work, especially writing, should be done carefully, because to redo it in the future will be much harder, especially if it is created for some high traffic official site. What does it mean to write in HTML and CSS? And what to do to become a professional website coder?

Browsing through various websites on the Internet, we don't pay attention to the HTML code. Well, let's not take into account the coders who are interested to look at someone else's work. This is utterly useless to an average user. But quite often only by looking at the HTML code is enough to have an impression of the creators of the site. The code of HTML pages - it's like a mirror of the skills of the webmaster, the one responsible for the creation of the site.

Browsing through various websites on the Internet, we don't pay attention to the HTML code. Well, let's not take into account the coders who are interested to look at someone else's work. This is utterly useless to an average user. But quite often only by looking at the HTML code is enough to have an impression of the creators of the site. The code of HTML pages - it's like a mirror of the skills of the webmaster, the one responsible for the creation of the site.

To create a small (the less code in the page, the better for the further promotion in search engines), clean and working in all browsers code - is an art. This is especially noticeable when you create a site not for yourself but for the employer, who understands HTML.

There are sites with a very complex structure, in which the  most time-consuming work is done by the coder. For example, a complex nesting of layers, absolute positioning with JavaScript code makes HTML coding one of the most difficult tasks, and with no experience its hard to work and earn money.

In order for your page code to look decent, neat and "non-automatic", and it would be easily to navigate, carefully review the points listed below and stick to them when writing HTML:

  • It is incorrect to write HTML tags in large capital letters (TABLE, BODY, IMG) - it's the first sign of automatic creator program. It's hard to navigate in this code, since most of the codes on the Internet are lowercased (table, body, img). This is the standard and all the HTML codes, written in capital letters are recognized by HTML-validator as invalid!
  • Attributes are always written in quotation marks (eg, align = "right"), which will give your code neatness and compatibility with XML language.
  • Assigning a value (width, height) in pixels, do not forget to point this out, that is, width = "17px". For example, height = 56 would be a mistake. The correct way is height = "56%".
  • There are tags that have no closing tag (img, hr, br), but according to W3C standards - these are the people who dictate the rules of writing HTML code (and other things) in such cases it is necessary to close a single tag with a slash <br />.
  • Extra comments that clog the program code, will not benefit your site, but your own comments may help you in the future to understand everything much faster. Especially, if the site will be managed by another webmaster.
  • Try not to leave styles and JavaScript code in the page. Put them in a separate file - it'll be easier to make changes and the code page will be reduced (sometimes significantly).
  • Every character has it's substitution. Each HTML directory has a list of these substitutions. It is advisable to use them, in order to avoid any problems when viewing with different browsers.

In conclusion I would like to say that the programs for fast ready to go sites are not worth it, because they clog up the code and nothing good ever comes from them. I advise you to use special editors for programmers, in which you write the code yourself, but the speed of work increases due to the special features such as syntax highlighting or validity checking - validity in terms of HTML and CSS standards (as an example, Notepad++).

Often, when a site is being written most time and efforts are given to the visual design of the site, and from the designer's perspective, that's the way it's supposed to be - because that's what ordinary visitors see. And often, by saving on the code can play a trick on you: higher costs for promotion of the site (including time), cross-browser compatibility issues (layout of the site may differ from browser to browser) and as a result, the site must be re-coded.

As you can see, miserly pays twice or even three times! Because of this kind of attitude in Internet, many sites with excellent exterior design are hideously coded, whipped up in ready to go programs. Do not repeat the same mistakes of these "writers", write neatly and beautifully, make up the structure of the code, and always remember that the HTML language - is the foundation of any site.


 

Read also

Post comment

basicuse.net
html5_css
106160485398655174790

Quick navigation

General navigation