Styling HTML with CSS

Styling HTML with CSS

HTML And CSS :


CSS is Cascading Style Sheets.

CSS shows how HTML elements are to be displayed on screen, paper, or in other media.

The CSS can control the layout of multiple web pages all at once.

There are 3 types of CSS.


1) Inline - by using the style attribute in HTML elements
2) Internal - by using a <style> element in the <head> section
3) External - by using an external CSS file

Inline CSS


The inline CSS is use for  apply a unique style to a single HTML element.

An inline CSS use the style attribute of an HTML element.


Internal CSS


The internal CSS is use for define a style for a single HTML page.

The internal CSS is defined in the <head> section of an HTML page, within a <style> element.

External CSS


The external style sheet is use for define the style for many HTML pages.

By using external style sheet, you can change the look of an entire web site, by changing one file.

For use to an external style sheet, add a link to it in the <head> section of the HTML page:

Comments

Popular posts from this blog

What Is Inheritance In C++? Types Of Inheritance?

CONCEPT OF DBMS!!

Basic Concepts Of OOPC!!