HTML
HTML (HyperText Markup Language) is the main markup language for creating web pages and other information that can be displayed on the web browser. It is written in the form of HTML elements consisting of tags enclosed within angle brackets. They commonly come in pairs though some empty elements are unpaired.The purpose of the web browser is to read HTML documents and compose them into web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page. They are the building blocks of all websites.
CSS
CSS (Cascading Style Sheets) is a style sheet language used for the look and formatting of a document written in markup language. Its most common application is to style web pages written in HTML. CSS is designed primarily to separate the document content from the document presentation (layout, colour, fonts, etc).Difference between CSS and HTML
HTML is used to structure content. CSS is used for formatting structured content. As the Web gained popularity, designers started looking for possibilities to add layout to online documents. To meet this demand, the browser producers (at that time Netscape and Microsoft) invented new HTML tags such as for example<font> which differed from the original HTML tags by defining layout - and not structure. CSS was invented to remedy this situation by providing web designers with sophisticated layout opportunities supported by all browsers. At the same time, separation of the presentation style of documents from the content of documents, makes site maintenance a lot easier.
No comments:
Post a Comment