World’s all websites or web applications use many technologies and many languages. But 2 is most important one is HTML another is CSS. HTML is used for the creation of the web pages. CSS is used to control the styling and layout of web pages. HTML depend on CSS and CSS depend on HTML. We can not create any website or web application without using both. so my dear friends let’s know what is the difference between HTML and CSS and how it works.

Definition

HTML Hypertext Markup Language is the standard and most basic language in use to create web pages. In 1989, Tim Berners-Lee invented the Web with HTML as its publishing language. HTML uses tags to help you add paragraphs, headers, pictures, bullets and other pieces of structure. Just like you would write something in a word document, HTML helps you write something on a website.

CSS is an acronym for Cascading Style Sheets which permits you to create rules that specify the representation of the HTML elements on a screen. It is an addition to basic HTML that enables styling to your web pages.

Example

html-example

HTML tags are keywords surrounded by angle brackets.
HTML Element an individual component of an HTML document used to describle a specific section on a web page.
HTML Content are the texts, links, images, or other information displayed on your webpage.
Strat tag is an element used to indicate the beginning of the element.
End tag closes the HTML element to differentiate individual elements.

css-example
CSS declarations rest inside curly brackets, and each is made up of two parts: property and its value, separated by a colon.You can specify several properties in one declaration, each separated by a semi-colon.
Selectors indicate which HTML element you want to style.
Declaration contains property and value separated by a colon. Additionally, curly braces enclosing all declarations is known as Declaration block.
Properties indicate the aspects of elements you want to change.
Values specify the settings you want to apply in the chosen properties.