What Is HTML? It is not a programming language, but a rather a markup language for formatting and displaying Web documents and pages. It is the most commonly used markup language for Web pages today. The more we understand both the principles and applied usage of the HyperText Markup Language (HTML) and to an extent, other markup languages such as XHTML that find their roots in HTML, the more we can use it to deliver flexible and rich functionality to your Web applications.
Fundamentals … w hen mastered, give you the base tools to expand your Web applications beyond previously conceived l imitations. HTML is simple text markup (Content type: text/html). It consists of a combination of various objects that Web browser clients commonly interpret based on a defined standard. These various objects consist of elements, data types, and character and entity references. Developers leverage these objects to render the display, facilitate the maintenance, and extend the functionality of Web applications.
HTML Structure T he basic element and standard attribute construct of HTML for Web pages are illustrated by the following example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> “ Whatever your lil’ heart desires – displayed as Page-title” </head> <body> <p>Hello world!</p> </body> </html>
Explanation … 1 The first line in the example defines the DOCTYPE for this particular Web page or document. The DOCTYPE declaration is translated by the Web browser client and defines the standard specification that the document uses. The < html> tag simply defines this Web page as an HTML document. The < head> tag is used primarily to define back-end information for the document, and is not displayed to the Web Browser client screen at run time.
Explanation … 2 This is an example of a container element, which is used to store other functional and document information such as (but not limited to) <meta> , <script> , <style> , and <link> tags and elements. The <body> tag is the container element used to display the visual contents of the HTML document. This element may not only contain visual elements such as (but not limited to) <p> , <div> , <span> , and <object> tags and elements, but can additionally contain <script> and <style> tags and elements.
Explanation … 3 The <p> tag is a visual container element that is typically used to display text paragraphs and other such content.