In: Computer Science
1. What are 5 "HTML Crimes" a web designer should not commit?
Answer)
HTML content writing is a skill for the developers, and developers
generally make several errors while writing html documents or
pages. There are "HTML Crimes" a web designer should not commit
which are:
a) Not checking the validation errors for the documentations where
there are ampersand characters which are not converted. Developers
generally forget to transform the & characters into the correct
& entity in HMTL.
b) We should not write the plain text quarter, half or
three-quarters int he shorthand format and rather use the HTML
entity counterparts of ¼ means 1/4, ½ 1/2,
& ¾ 3/4.
c) Common mathematical symbols such as multiply and divide should
be created with the HTML entities of × and
÷.
d) Single quotes should be ‘ and ’ entities.
And similarly the double curly quotes should be “ and
” entities.
e) The HTML ALT attribute is the one which is required and used to
describe the image and determine what the image is. Thus, ALT
attribute should be used to describe the image and not put up with
some random thing such as alt=”image” or alt=””.
f) Developers should use <strong> or <em> tags instead
of <b> and <i> tags.
g) Too many line breaks using break tag of <br /> should be
avoided. The break tag of <br /> should be used only once a
time to insert a single line break.