/Pagina huevo/Home.html

Ikmupo07@gmial.com

Web Designer

How does CSS work?

CSS works as a complement to the information that is part of a website. While the HTML code includes all the data, the CSS code takes care of formatting and presenting it visually through a browser.

When accessing a website, the browser must crawl the information contained in the HTML and translate it into a DOM (or document object model). These objects must be matched with the corresponding code blocks in CSS so that the chosen style is applied to them and they appear in the format assigned to the computer.

Details

name

CSS

Role

Programming language

Website
www.w3schools.com/css/

YEARS

38

clients

+100M

The External CSS

The external CSS exists in its own file. This file is linked to an HTML document with a <link> tag. This is the most widely used method of adding CSS to HTML, since an external style sheet can dictate the style of different HTML documents. This allows developers to make site-wide changes with a single CSS file.

The Inline CSS

Inline CSS is placed inside an HTML tag to change the style of a specific element. The inline syntax is a bit different from what we've seen: the declaration is written as the value of the style attribute.
Although possible, using this method violates the practice of separating style from content, so its use is not recommended. Inline CSS is inefficient for programming and harder to understand than the other two. Even so, it is good that you know him so that you can identify him, if the case arises. 

The Internal CSS

Internal CSS is CSS code embedded in an HTML document. It is written inside the <style> element, which is placed in the <head> section.
The internal CSS can be used for some small web projects and individual pages with their own style. In these cases it will be easier to save all your code in the same file and not in two.