Breaking

Tuesday, 1 March 2016

Css lecture 1 in urdu



                                 Css(Cascading Styles Sheets)

CSS, or Cascading Styles Sheets, is a way to style and present HTML. Whereas the HTML is the meaning orcontent, the style sheet is the presentation of that document.

Css ham use karty hai style k lay k kesuy htmlko style dina hai
Agr ap chahty hai k me html ka code ek alag page py karna chahta hun and css ka alag page me to per ek new page open kary ur name koi b dy sat me .css lik dy mean k ap ne nam dy dia k ali to us ko save karna hai ali.css  and jes html k lay likna hai html k head k btwen <link rel=stylesheet  href=ali.css> ye likana hair el means relation hai ur en sab ko ek he floderme save karna hai ek new folder bana dy us me html ka page b hona chahye css ka b ur jo imagedina chahty hai wo b par html k page ko indexk name se save karna hai means k index.html
Hope k samj aye ho ge ok ab aty hai apny topic py
3 way se ap css ko aply kar sakty ho html k content py
1 inline
2 enternal
3 External

1 in-line
<p style="color: red">text</p>
In-lin me use karny k lay style attribute use karty hai

2 Internal
2sraway hai enternal
<!DOCTYPE html>
<html>
<head>
<title>CSS Example</title>
<style>
 
    p {
        color: red;
    }
 
    a {
        color: blue;
    }
 
</style>
</head>
Head k btwn style dina 
 
Es me ab body mejetny b p hung y wo red color k hung y and jetny b link hung y wo blue color khun gy 
 
External
External styles are used for the whole, multiple-page website. There is a separate CSS file, which will simply look something like:
Jo me ne pehly me way batya k ek alag page bana ho ga css k lay then html k sat link dina ho ga
<link rel=stylesheet href=ali.css>

Aj k lay kafi ta kal se work karian gy css py

Mt Ali Okz

No comments:

Post a Comment