Tuesday, 6 October 2015

HTML and CSS







HTML is a markup language for describing web documents (web pages). HTML stands for Hyper Text Markup Language. A markup language is a set of markup tags. HTML documents are described by HTML tags. Each HTML tag describes different document content. the examples are, the text between <html> and </html> describes an HTML document, the text between <head> and </head> provides information about the document, the text between <title> and </title> provides a title for the document, the text between <body> and </body> describes the visible page content, the text between <h1> and </h1> describes a heading and the text between <p> and </p> describes a paragraph. The web browsers work hand in hand with the HTML, because their purpose is to read and display the HTML.
On the other hand, Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to Web documents.These pages contain information on how to learn and use on available software. They also contain news from the CSS working group.

CSS is designed primarily to enable the separation of document contents from document presentation including aspects such as the layout, color and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple HTML pages to share formatting by specifying the relevant CSS in a separate CSS file, and reduce complexity and repetition in the structural content, such as semantically insignificant tables that were widely used to format pages before consistent CSS rendering was available in all major browsers. CSS makes it possible to separate presentation instructions from the HTML content in a separate file or style section of the HTML file. For each matching HTML document, it provides a list of formatting instructions.

No comments:

Post a Comment