Kumail.pk is a Free Platform of

Linking HTML to CSS

Cascading Style Sheets (CSS) is used to format the layout of a webpage.

With CSS, you can control the color, font, the size of text, the spacing between elements, how elements are positioned and laid out, what background images or background colors are to be used, different displays for different devices and screen sizes, and much more!

Linking HTML to CSS

Linking HTML to CSS

Linking CSS to HTML document

The basic purpose of CSS is to allow a web designer to define style declarations and then he can apply those styles to HTML pages applying through selectors.

html document

Linking Style Sheets to HTML

Styles can be linking to an HTML document using one of three methods:

1. Inline Style

2. Embedded Style

3. External Style

How do you connect a CSS styling sheet to an HTML page ?

1. Inline Style

Inline Style is the simplest method of adding CSS styles to your HTML pages. An inline style is applied to an HTML document via its style attribute to specific tags within the document,

For example, If you want to add styles to < p > then you can code like this:

About Us

Kumail.pk is a Free Platform of Education initiated by Syed Kumail Hassan Shah (Director GIT Education)

E-Certification