Académique Documents
Professionnel Documents
Culture Documents
What is HTML?
HTML is a computer language devised to allow website creation. These websites can
then be viewed by anyone else connected to the Internet. It is relatively easy to learn, with the
basics being accessible to most people in one sitting; and quite powerful in what it allows you to
create. It is constantly undergoing revision and evolution to meet the demands and requirements
of the growing Internet audience under the direction of the W3C, the organisation charged with
designing and maintaining the language.
2. Input suggestions
Use <datalist> to provide a list of relevant suggestions that appear while typing an input
value.
3. Highlight Text
Highlighted text usually has dark text color with a light background. You can achieve that
highlighted text effect with markup alone. Any text enclosed inside the <mark> will have that
effect.
You can customize the highlight color with the background-color CSS property of
<mark> and the text color with the color property.
4. Define Templates
Along with HTML5 came the new <template> element. The <template> element holds
markup inside it that is not rendered by the browsers, the markup enclosed by it are to be used to
generate dynamic contents in the page using JavaScript.
For example, suppose you have a <table> where rows are to be added dynamically, you
can simply put the markup of an empty row of that table inside the <template> tag and when
needed call a JavaScript function containing script to copy the markup from inside the template
tags and add it to the table markup. This is not supported by IE.
5. Fine Print
Fine print refers to the text of document that is typically printed in very small size
containing information like conditions, terms, restrictions, citations, legal rights etc. The <small>
tag in HTML can be used to show fine prints. From HTML5 onwards the <small> tag not only
shows a fine-print styled text but will also semantically define the same as legal disclaimers and
caveats.
Pros
Easy to learn compared to other languages.
Well-interpreted by browsers.
HTML Parsers are forgiving. If an element fails to parse it doesnt break the entire
document. (Does not apply to XHTML)
Light-weight. High signal to noise ratio compared to other forms of communication.
Has a vast (and expanding) array of structural and aesthetic elements that can infer
meaning and presentation.
Free. No license fees. DRM Free.
An Open Standard. Transparent.
Widely used, hugely popular.
Multiple languages supported.
Can go anywhere a browser can go: Multiple platforms supported
Cons
Requires a browser to interpret it correctly.
Open to author interpretation, therefore authors are the weakest link in the
communication chain.
Technical progress has been slow, limited by the Standards Bodies, Authors and the
tardiest browser to update. (This is improving though!)
The HTML Lexicon is set in American English. Requires extra interpretation by nonEnglish authors.
Being a Declarative Language, it has limited functional prowess compared to Functional
Languages.