SlideShare a Scribd company logo
1 of 10
CREU GWEFANNAU 
MR JENKINS
AMCANION DYSGU 
Dysgu'r gwahaniaeth rhwng HTML a CSS 
Dysgu sut i greu dalen steil CSS
GWAHANIAETH RHWNG HTML A CSS 
Strwythur y tudalen: 
Ble i gael llinellau newydd <br> 
Ble i gael penawdau <h1> 
Steil y tudalen: 
Pa liw dylai’r testun a chefndir 
bod 
Pa ffont i ddefnyddio am 
benawdau
BLE YDYM YN YSGRIFENNU 
CSS? 
<!DOCTYPE html> 
<title> Tudalen Enghreifftiol </title> 
<style> 
</style> 
<h1> Pennawd 1 <h1>
BETH YW CSS? 
Ysgrifennu cyfres o reolau i reoli sut mae’r 
tudalen gwe yn edrych (steil y tudalen). 
Enghreifftiau: 
• Yn yr holl dudalen, rwyf eisiau i’r cefndir fod yn 
ddu 
• Yn y pennawd h1, rwyf eisiau i faint y testun fod 
yn 20px
SUT I YSGRIFENNU RHEOLAU 
Detholydd { 
Enghraifft : Yn benawdau h1, rwyf eisiau i’r cefndir bod yn 
felyn 
h1 { 
background-color: Yellow; 
} 
Enw’r briodwedd: Gwerth y briodwedd; 
}
CREU MWY O REOLAU CSS 
<!DOCTYPE html> 
<title> Tudalen Enghreifftiol </title> 
<style> 
html { 
background-color: blue; 
color: white; 
} 
h1 { 
background-color: Yellow; 
font-size: 20px; 
color: red; 
} 
p { 
font-size: 10px; 
font-family: arial,sans-serif; 
color: darkRed; 
</style> 
<h1> Pennawd 1 <h1> 
<p> cynnwys y tudalen… 
Rheolau’r holl ddogfen 
Rheolau am bennawd 
h1 
Rheolau am 
paragraffau
TAFLEN WAITH – CSS
DIWEDDARU: DOGFEN DIFFINIADAU 
Tag HTML Egluro pwrpas y tag 
<title> Er mwyn gosod teitl addas sy’n arddangos ar y ffenestr porwr 
(browser window). 
<br> Er mwyn cychwyn llinell newydd o destun wrth ysgrifennu cynnwys 
gwefan. 
<p> … 
… … 
… … 
… …
AMCANION DYSGU 
Dysgu y gwahaniaeth rhwng HTML a CSS 
Dysgu sut i creu dalen steil CSS

More Related Content

Viewers also liked

Oracle Cloud 2015 Elsevier Presentation (20150403)
Oracle Cloud 2015 Elsevier Presentation (20150403)Oracle Cloud 2015 Elsevier Presentation (20150403)
Oracle Cloud 2015 Elsevier Presentation (20150403)Yasushi Adachi
 
Fearless investing and ml - Bangalore MeetUp May 9th
Fearless investing and ml - Bangalore MeetUp May 9thFearless investing and ml - Bangalore MeetUp May 9th
Fearless investing and ml - Bangalore MeetUp May 9thGaurav Chakravorty
 
右肩上がりと成熟化
右肩上がりと成熟化右肩上がりと成熟化
右肩上がりと成熟化Koichi Fukunaga
 
Google App Engine for PHPとそのローカル開発環境について
Google App Engine for PHPとそのローカル開発環境についてGoogle App Engine for PHPとそのローカル開発環境について
Google App Engine for PHPとそのローカル開発環境についてTerui Masashi
 
49. salmo 50 salmo contra la hipocresía
49.  salmo 50 salmo contra la hipocresía49.  salmo 50 salmo contra la hipocresía
49. salmo 50 salmo contra la hipocresíaYosef Sanchez
 
Objecttreeプラグイン&ObjectRelationプラグインのご紹介
Objecttreeプラグイン&ObjectRelationプラグインのご紹介Objecttreeプラグイン&ObjectRelationプラグインのご紹介
Objecttreeプラグイン&ObjectRelationプラグインのご紹介Hajime Fujimoto
 
20160429 JAWS-UG沖縄 Cloud on the BEACH 2016 AWS全サービス紹介
20160429 JAWS-UG沖縄 Cloud on the BEACH 2016 AWS全サービス紹介20160429 JAWS-UG沖縄 Cloud on the BEACH 2016 AWS全サービス紹介
20160429 JAWS-UG沖縄 Cloud on the BEACH 2016 AWS全サービス紹介Midori Ikegami
 
Γλώσσα Δ΄ 6 . 3 . ΄΄Ο αδελφός της Ασπασίας΄΄
Γλώσσα Δ΄ 6 . 3 . ΄΄Ο αδελφός της Ασπασίας΄΄Γλώσσα Δ΄ 6 . 3 . ΄΄Ο αδελφός της Ασπασίας΄΄
Γλώσσα Δ΄ 6 . 3 . ΄΄Ο αδελφός της Ασπασίας΄΄Χρήστος Χαρμπής
 
Procedimiento para producir un video (1)
Procedimiento para producir un video (1)Procedimiento para producir un video (1)
Procedimiento para producir un video (1)Maria Paula Pacheco
 
kintone Café 札幌 Vol.7 「kintoneエコシステム真時代の幕開け! -kintoneエコシステムとAWSサーバレスアーキテクチャ-」
kintone Café 札幌 Vol.7 「kintoneエコシステム真時代の幕開け! -kintoneエコシステムとAWSサーバレスアーキテクチャ-」kintone Café 札幌 Vol.7 「kintoneエコシステム真時代の幕開け! -kintoneエコシステムとAWSサーバレスアーキテクチャ-」
kintone Café 札幌 Vol.7 「kintoneエコシステム真時代の幕開け! -kintoneエコシステムとAWSサーバレスアーキテクチャ-」JOYZO
 

Viewers also liked (16)

Oracle Cloud 2015 Elsevier Presentation (20150403)
Oracle Cloud 2015 Elsevier Presentation (20150403)Oracle Cloud 2015 Elsevier Presentation (20150403)
Oracle Cloud 2015 Elsevier Presentation (20150403)
 
Sin diezmos si hay paraiso
Sin diezmos si hay paraisoSin diezmos si hay paraiso
Sin diezmos si hay paraiso
 
Applying to Graduate Engineering Programs at USC
Applying to Graduate Engineering Programs at USCApplying to Graduate Engineering Programs at USC
Applying to Graduate Engineering Programs at USC
 
Pratik Aggarwal
Pratik AggarwalPratik Aggarwal
Pratik Aggarwal
 
顧客価値の定義
顧客価値の定義顧客価値の定義
顧客価値の定義
 
Fearless investing and ml - Bangalore MeetUp May 9th
Fearless investing and ml - Bangalore MeetUp May 9thFearless investing and ml - Bangalore MeetUp May 9th
Fearless investing and ml - Bangalore MeetUp May 9th
 
右肩上がりと成熟化
右肩上がりと成熟化右肩上がりと成熟化
右肩上がりと成熟化
 
Google App Engine for PHPとそのローカル開発環境について
Google App Engine for PHPとそのローカル開発環境についてGoogle App Engine for PHPとそのローカル開発環境について
Google App Engine for PHPとそのローカル開発環境について
 
49. salmo 50 salmo contra la hipocresía
49.  salmo 50 salmo contra la hipocresía49.  salmo 50 salmo contra la hipocresía
49. salmo 50 salmo contra la hipocresía
 
Objecttreeプラグイン&ObjectRelationプラグインのご紹介
Objecttreeプラグイン&ObjectRelationプラグインのご紹介Objecttreeプラグイン&ObjectRelationプラグインのご紹介
Objecttreeプラグイン&ObjectRelationプラグインのご紹介
 
ELISABETTA I
ELISABETTA IELISABETTA I
ELISABETTA I
 
UX in eCom projects
UX in eCom projectsUX in eCom projects
UX in eCom projects
 
20160429 JAWS-UG沖縄 Cloud on the BEACH 2016 AWS全サービス紹介
20160429 JAWS-UG沖縄 Cloud on the BEACH 2016 AWS全サービス紹介20160429 JAWS-UG沖縄 Cloud on the BEACH 2016 AWS全サービス紹介
20160429 JAWS-UG沖縄 Cloud on the BEACH 2016 AWS全サービス紹介
 
Γλώσσα Δ΄ 6 . 3 . ΄΄Ο αδελφός της Ασπασίας΄΄
Γλώσσα Δ΄ 6 . 3 . ΄΄Ο αδελφός της Ασπασίας΄΄Γλώσσα Δ΄ 6 . 3 . ΄΄Ο αδελφός της Ασπασίας΄΄
Γλώσσα Δ΄ 6 . 3 . ΄΄Ο αδελφός της Ασπασίας΄΄
 
Procedimiento para producir un video (1)
Procedimiento para producir un video (1)Procedimiento para producir un video (1)
Procedimiento para producir un video (1)
 
kintone Café 札幌 Vol.7 「kintoneエコシステム真時代の幕開け! -kintoneエコシステムとAWSサーバレスアーキテクチャ-」
kintone Café 札幌 Vol.7 「kintoneエコシステム真時代の幕開け! -kintoneエコシステムとAWSサーバレスアーキテクチャ-」kintone Café 札幌 Vol.7 「kintoneエコシステム真時代の幕開け! -kintoneエコシステムとAWSサーバレスアーキテクチャ-」
kintone Café 札幌 Vol.7 「kintoneエコシステム真時代の幕開け! -kintoneエコシステムとAWSサーバレスアーキテクチャ-」
 

HTML - Gwers 4 - CSS

  • 2. AMCANION DYSGU Dysgu'r gwahaniaeth rhwng HTML a CSS Dysgu sut i greu dalen steil CSS
  • 3. GWAHANIAETH RHWNG HTML A CSS Strwythur y tudalen: Ble i gael llinellau newydd <br> Ble i gael penawdau <h1> Steil y tudalen: Pa liw dylai’r testun a chefndir bod Pa ffont i ddefnyddio am benawdau
  • 4. BLE YDYM YN YSGRIFENNU CSS? <!DOCTYPE html> <title> Tudalen Enghreifftiol </title> <style> </style> <h1> Pennawd 1 <h1>
  • 5. BETH YW CSS? Ysgrifennu cyfres o reolau i reoli sut mae’r tudalen gwe yn edrych (steil y tudalen). Enghreifftiau: • Yn yr holl dudalen, rwyf eisiau i’r cefndir fod yn ddu • Yn y pennawd h1, rwyf eisiau i faint y testun fod yn 20px
  • 6. SUT I YSGRIFENNU RHEOLAU Detholydd { Enghraifft : Yn benawdau h1, rwyf eisiau i’r cefndir bod yn felyn h1 { background-color: Yellow; } Enw’r briodwedd: Gwerth y briodwedd; }
  • 7. CREU MWY O REOLAU CSS <!DOCTYPE html> <title> Tudalen Enghreifftiol </title> <style> html { background-color: blue; color: white; } h1 { background-color: Yellow; font-size: 20px; color: red; } p { font-size: 10px; font-family: arial,sans-serif; color: darkRed; </style> <h1> Pennawd 1 <h1> <p> cynnwys y tudalen… Rheolau’r holl ddogfen Rheolau am bennawd h1 Rheolau am paragraffau
  • 9. DIWEDDARU: DOGFEN DIFFINIADAU Tag HTML Egluro pwrpas y tag <title> Er mwyn gosod teitl addas sy’n arddangos ar y ffenestr porwr (browser window). <br> Er mwyn cychwyn llinell newydd o destun wrth ysgrifennu cynnwys gwefan. <p> … … … … … … …
  • 10. AMCANION DYSGU Dysgu y gwahaniaeth rhwng HTML a CSS Dysgu sut i creu dalen steil CSS