CSS is a programming language that is used to make web pages more attractive and can also be used to customize templates, layouts, and display variations on multiple devices, screen sizes. Therefore, with CSS, the work of web developers is also easier.
This programming language lets you control the layout of multiple websites simultaneously by storing style definitions in external .css files. In fact, a web developer can design a website using only HTML.
CSS Short function
Of course, using CSS offers a lot of functionality. Here's the explanation:
1. Speed up the design process
As explained in the previous explanation, designing a website using HTML requires a lot of time, effort and money. Simply changing the color of the HTML file is difficult.
Everything is now faster and easier when using CSS. You only need to write the CSS function once and then use it in many HTML pages. You don't need to copy a single line of function code and describe all the colors, fonts, backgrounds and so on separately over and over again.
2. Diversify the look of the web
CSS has a wider range of attributes than HTML. So that it can provide a better website layout. So you can have more than one site view.
3. Faster page loading
Using this programming language, you only need to write one CSS rule and apply it to the files that need it. So the file only contains a few lines of code that must be loaded in the site loading process. This low number of lines of code speeds up the loading process. CSS works by separating the code that controls the visual content of the website from the code that controls the content. Structure. in this programming language is quite simple. In CSS, syntax rules consist of selectors and specification blocks.
Here you can choose which elements you want and then you can define those elements. Voters
hover over the HTML element you want to visually enhance. The statement block itself contains one or more specifications separated by semicolons (;). Each declaration now has a property name and value separated by a colon (:).
Finally, the declaration block is closed with brackets ({ }).
CSS Types
1. External CSS style sheets
CSS external style sheets are lines of code that can be placed directly outside the object area. This type of CSS can be used multiple times on several objects at once. External CSS style sheets can also be used between sites, saving space.
2. Inline CSS
Inline CSS are lines of code that are usually applied directly to the object you want to style. For example, if you want to change black text to yellow. Users of this CSS type must add andlt;styleandgt; so it is very easy and saves processing time.
3. Embedded CSS style sheets
CSS Embedded style sheets are CSS rules that can be placed
Thank You
Belum ada tanggapan untuk "CSS Short Function"
Post a Comment