SlideShare une entreprise Scribd logo
1  sur  52
HTML & CSS
Kids’ Coding Club
March 15, 2018
Pasadena Public Library
https://code.org/educate/weblab
We’re gonna turn this…
…into a cool
interactive
birthday card
for a friend!
Use the <h1> tag to create a
heading inside the
<body></body> tags
Use a <p> tag to add a paragraph
below the heading
Add another heading type (use
the <h3> tag) and enter the
recipient’s age
Find an image on Google
Right-click with your mouse
Highlight the Address (URL) and
press CTRL and C together to
copy it to your clipboard
Use the <img> tag to insert the
picture into your page. Press
CTRL and V together to paste the
URL as the image’s “source” (src)
Add some Alt text, so people will
know what’s there
Find a Happy Birthday video
While viewing the video, click the
address bar and with the URL
highlighted, press CTRL and C
Under your image, add another
paragraph and put text in it. This
will be linked to your video.
Use the <a> tag to make the
words a hyperlink to the video
Now open your CSS Stylesheet…
White background
and black text are
usually the default
stylesheet settings
for webpages. But
we want the
opposite for ours.
A stylesheet is a set of rules.
Each rule is made of a selector
and a declaration. The
declaration has a property and a
value.
body { background: white; }
selector declaration
https://www.w3schools.com/css/css_syntax.asp
Let’s change the body
background to black, to match
our dark photo.
We will change the
background for the
“body” selector.
That will give the
whole page a black
background.
Now we have to change text
colors. Let’s make all paragraphs
(p) show white text.
Let’s give our headings different
colors.
In CSS, you can type
the name of the
color you want, but
it might not display
the exact shade you
want. For a more
specific shade, you
can use a hex code
or an rgb code.
Move the circles to get the color
you want, then copy the rgb code
on the left.
Set the text color for your h1 text
with rgb numbers
Let’s pick a red color for our h3
heading
We put CSS code
inside curly
brackets like this { }
We use a colon (:) in
CSS the way we
would use an equal
sign (=) in HTML
to set the value of
something
We end each rule
with a semicolon (;)
Punctuation matters!
If we want all our text to be
centered, we could put “text-
align: center;” for each selector…
…or we could just save time by
making the text centered for the
entire “body”
Our image is too many pixels
wide. Let’s set it to 700px wide,
and let the browser determine
the height automatically.
To see how your webpage looks
now, click the expand button in
the upper corner of your preview
window.
Let’s give our text a larger,
fancier font!
When you start
typing a new
property, suggested
words appear. You’ll
also see suggested
values, such as
“normal,” “bold” and
“light” for the
property “font-
weight.” Try
different ones and
see what you like!
Let’s increase the size and style
of our paragraph text with “font-
size” and “font-family”
Here is my finished
CSS stylesheet.
Can you think of a
way that I can make
it more concise?
When your project is finished,
give it a name
Click Share to get a URL people
can use to see your finished
webpage! Use CTRL and C to
copy it
Paste the link into a new browser
window
Send the link to your friends. This
is what they will see!

Contenu connexe

Tendances (20)

Html
HtmlHtml
Html
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
 
Web Design 101
Web Design 101Web Design 101
Web Design 101
 
HTML5 - Insert images and Apply page backgrounds
HTML5 - Insert images and Apply page backgroundsHTML5 - Insert images and Apply page backgrounds
HTML5 - Insert images and Apply page backgrounds
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
css.ppt
css.pptcss.ppt
css.ppt
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
CSS
CSSCSS
CSS
 

Similaire à Web Design Basics for Kids: HTML & CSS

Basic HTML & CSS
Basic HTML & CSSBasic HTML & CSS
Basic HTML & CSSJohn Nelson
 
Pzv Using Graphics In Power Point Presentations
Pzv Using Graphics In Power Point PresentationsPzv Using Graphics In Power Point Presentations
Pzv Using Graphics In Power Point Presentationsprashantdubey
 
HTML Advanced
HTML AdvancedHTML Advanced
HTML Advancedc525600
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptxDaniyalSardar
 
CSS For Online Journalism
CSS For Online JournalismCSS For Online Journalism
CSS For Online Journalismamherstwire
 
Web Design Assignment 1
Web Design Assignment 1 Web Design Assignment 1
Web Design Assignment 1 beretta21
 
HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)Daniel Friedman
 
HTML & CSS Basics
HTML & CSS BasicsHTML & CSS Basics
HTML & CSS BasicsJohn Nelson
 
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)Tom Hapgood
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptxSamay16
 
Le Wagon Tokyo - 2 hours landing page
Le Wagon Tokyo - 2 hours  landing pageLe Wagon Tokyo - 2 hours  landing page
Le Wagon Tokyo - 2 hours landing pageHidehiro Nagaoka
 

Similaire à Web Design Basics for Kids: HTML & CSS (20)

CSS
CSSCSS
CSS
 
Basic HTML & CSS
Basic HTML & CSSBasic HTML & CSS
Basic HTML & CSS
 
Html 3
Html   3Html   3
Html 3
 
Css
CssCss
Css
 
CSS
CSSCSS
CSS
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
Pzv Using Graphics In Power Point Presentations
Pzv Using Graphics In Power Point PresentationsPzv Using Graphics In Power Point Presentations
Pzv Using Graphics In Power Point Presentations
 
HTML Advanced
HTML AdvancedHTML Advanced
HTML Advanced
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
 
CSS For Online Journalism
CSS For Online JournalismCSS For Online Journalism
CSS For Online Journalism
 
Web Design Assignment 1
Web Design Assignment 1 Web Design Assignment 1
Web Design Assignment 1
 
David Weliver
David WeliverDavid Weliver
David Weliver
 
HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)
 
Html 2
Html   2Html   2
Html 2
 
HTML & CSS Basics
HTML & CSS BasicsHTML & CSS Basics
HTML & CSS Basics
 
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
 
Le Wagon - 2h Landing
Le Wagon - 2h LandingLe Wagon - 2h Landing
Le Wagon - 2h Landing
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptx
 
Le Wagon Tokyo - 2 hours landing page
Le Wagon Tokyo - 2 hours  landing pageLe Wagon Tokyo - 2 hours  landing page
Le Wagon Tokyo - 2 hours landing page
 
Sacramento web design
Sacramento web designSacramento web design
Sacramento web design
 

Plus de AnnMarie Ppl

Manu discussion.pptx
Manu discussion.pptxManu discussion.pptx
Manu discussion.pptxAnnMarie Ppl
 
Coding & Art, ArtNight Presentation
Coding & Art, ArtNight PresentationCoding & Art, ArtNight Presentation
Coding & Art, ArtNight PresentationAnnMarie Ppl
 
A Good Kind of Trouble discussion questions
A Good Kind of Trouble discussion questionsA Good Kind of Trouble discussion questions
A Good Kind of Trouble discussion questionsAnnMarie Ppl
 
The Turtle of Oman Discussion for Read Around the World Book Club
The Turtle of Oman Discussion for Read Around the World Book ClubThe Turtle of Oman Discussion for Read Around the World Book Club
The Turtle of Oman Discussion for Read Around the World Book ClubAnnMarie Ppl
 
Week four of NaNoWriMo Young Writers Program
Week four of NaNoWriMo Young Writers ProgramWeek four of NaNoWriMo Young Writers Program
Week four of NaNoWriMo Young Writers ProgramAnnMarie Ppl
 
Week three of NaNoWriMo Young Writers Program
Week three of NaNoWriMo Young Writers ProgramWeek three of NaNoWriMo Young Writers Program
Week three of NaNoWriMo Young Writers ProgramAnnMarie Ppl
 
Week two of NaNoWriMo Young Writers Program
Week two of NaNoWriMo Young Writers ProgramWeek two of NaNoWriMo Young Writers Program
Week two of NaNoWriMo Young Writers ProgramAnnMarie Ppl
 
Week one of NaNoWriMo Young Writers Program
Week one of NaNoWriMo Young Writers ProgramWeek one of NaNoWriMo Young Writers Program
Week one of NaNoWriMo Young Writers ProgramAnnMarie Ppl
 
Lucha Libros Basic Information
Lucha Libros Basic InformationLucha Libros Basic Information
Lucha Libros Basic InformationAnnMarie Ppl
 
Tua and the Elephant discussion questions
Tua and the Elephant discussion questionsTua and the Elephant discussion questions
Tua and the Elephant discussion questionsAnnMarie Ppl
 
Emil and the detectives
Emil and the detectivesEmil and the detectives
Emil and the detectivesAnnMarie Ppl
 
Kids' Writing Workshop: Summer Reading Inspirations
Kids' Writing Workshop: Summer Reading InspirationsKids' Writing Workshop: Summer Reading Inspirations
Kids' Writing Workshop: Summer Reading InspirationsAnnMarie Ppl
 
Hour (and a half) of Code: Flappy Bird Games in Scratch
Hour (and a half) of Code: Flappy Bird Games in ScratchHour (and a half) of Code: Flappy Bird Games in Scratch
Hour (and a half) of Code: Flappy Bird Games in ScratchAnnMarie Ppl
 
Citizen Science Kids Can Do at Home
Citizen Science Kids Can Do at HomeCitizen Science Kids Can Do at Home
Citizen Science Kids Can Do at HomeAnnMarie Ppl
 
Measuring Light in the Night
Measuring Light in the NightMeasuring Light in the Night
Measuring Light in the NightAnnMarie Ppl
 
Educator Night 2020 presentation
Educator Night 2020 presentationEducator Night 2020 presentation
Educator Night 2020 presentationAnnMarie Ppl
 
Make Believe Science Presentation
Make Believe Science PresentationMake Believe Science Presentation
Make Believe Science PresentationAnnMarie Ppl
 
Writing a Choose Your Own Adventure Story in Twine
Writing a Choose Your Own Adventure Story in TwineWriting a Choose Your Own Adventure Story in Twine
Writing a Choose Your Own Adventure Story in TwineAnnMarie Ppl
 
Roller coaster ski jumps
Roller coaster ski jumpsRoller coaster ski jumps
Roller coaster ski jumpsAnnMarie Ppl
 

Plus de AnnMarie Ppl (20)

Manu discussion.pptx
Manu discussion.pptxManu discussion.pptx
Manu discussion.pptx
 
Coding & Art, ArtNight Presentation
Coding & Art, ArtNight PresentationCoding & Art, ArtNight Presentation
Coding & Art, ArtNight Presentation
 
A Good Kind of Trouble discussion questions
A Good Kind of Trouble discussion questionsA Good Kind of Trouble discussion questions
A Good Kind of Trouble discussion questions
 
The Turtle of Oman Discussion for Read Around the World Book Club
The Turtle of Oman Discussion for Read Around the World Book ClubThe Turtle of Oman Discussion for Read Around the World Book Club
The Turtle of Oman Discussion for Read Around the World Book Club
 
Week four of NaNoWriMo Young Writers Program
Week four of NaNoWriMo Young Writers ProgramWeek four of NaNoWriMo Young Writers Program
Week four of NaNoWriMo Young Writers Program
 
Week three of NaNoWriMo Young Writers Program
Week three of NaNoWriMo Young Writers ProgramWeek three of NaNoWriMo Young Writers Program
Week three of NaNoWriMo Young Writers Program
 
Week two of NaNoWriMo Young Writers Program
Week two of NaNoWriMo Young Writers ProgramWeek two of NaNoWriMo Young Writers Program
Week two of NaNoWriMo Young Writers Program
 
Week one of NaNoWriMo Young Writers Program
Week one of NaNoWriMo Young Writers ProgramWeek one of NaNoWriMo Young Writers Program
Week one of NaNoWriMo Young Writers Program
 
Lucha Libros Basic Information
Lucha Libros Basic InformationLucha Libros Basic Information
Lucha Libros Basic Information
 
Tua and the Elephant discussion questions
Tua and the Elephant discussion questionsTua and the Elephant discussion questions
Tua and the Elephant discussion questions
 
Emil and the detectives
Emil and the detectivesEmil and the detectives
Emil and the detectives
 
Kids' Writing Workshop: Summer Reading Inspirations
Kids' Writing Workshop: Summer Reading InspirationsKids' Writing Workshop: Summer Reading Inspirations
Kids' Writing Workshop: Summer Reading Inspirations
 
Hour (and a half) of Code: Flappy Bird Games in Scratch
Hour (and a half) of Code: Flappy Bird Games in ScratchHour (and a half) of Code: Flappy Bird Games in Scratch
Hour (and a half) of Code: Flappy Bird Games in Scratch
 
Citizen Science Kids Can Do at Home
Citizen Science Kids Can Do at HomeCitizen Science Kids Can Do at Home
Citizen Science Kids Can Do at Home
 
Measuring Light in the Night
Measuring Light in the NightMeasuring Light in the Night
Measuring Light in the Night
 
Educator Night 2020 presentation
Educator Night 2020 presentationEducator Night 2020 presentation
Educator Night 2020 presentation
 
Make a Lego Movie
Make a Lego MovieMake a Lego Movie
Make a Lego Movie
 
Make Believe Science Presentation
Make Believe Science PresentationMake Believe Science Presentation
Make Believe Science Presentation
 
Writing a Choose Your Own Adventure Story in Twine
Writing a Choose Your Own Adventure Story in TwineWriting a Choose Your Own Adventure Story in Twine
Writing a Choose Your Own Adventure Story in Twine
 
Roller coaster ski jumps
Roller coaster ski jumpsRoller coaster ski jumps
Roller coaster ski jumps
 

Dernier

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 

Dernier (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Web Design Basics for Kids: HTML & CSS

  • 1. HTML & CSS Kids’ Coding Club March 15, 2018 Pasadena Public Library
  • 5. Use the <h1> tag to create a heading inside the <body></body> tags
  • 6.
  • 7. Use a <p> tag to add a paragraph below the heading
  • 8.
  • 9. Add another heading type (use the <h3> tag) and enter the recipient’s age
  • 10.
  • 11. Find an image on Google
  • 13. Highlight the Address (URL) and press CTRL and C together to copy it to your clipboard
  • 14. Use the <img> tag to insert the picture into your page. Press CTRL and V together to paste the URL as the image’s “source” (src)
  • 15. Add some Alt text, so people will know what’s there
  • 16.
  • 17. Find a Happy Birthday video
  • 18. While viewing the video, click the address bar and with the URL highlighted, press CTRL and C
  • 19. Under your image, add another paragraph and put text in it. This will be linked to your video.
  • 20. Use the <a> tag to make the words a hyperlink to the video
  • 21.
  • 22. Now open your CSS Stylesheet… White background and black text are usually the default stylesheet settings for webpages. But we want the opposite for ours.
  • 23. A stylesheet is a set of rules. Each rule is made of a selector and a declaration. The declaration has a property and a value. body { background: white; } selector declaration
  • 25. Let’s change the body background to black, to match our dark photo. We will change the background for the “body” selector. That will give the whole page a black background.
  • 26.
  • 27. Now we have to change text colors. Let’s make all paragraphs (p) show white text.
  • 28.
  • 29. Let’s give our headings different colors. In CSS, you can type the name of the color you want, but it might not display the exact shade you want. For a more specific shade, you can use a hex code or an rgb code.
  • 30. Move the circles to get the color you want, then copy the rgb code on the left.
  • 31. Set the text color for your h1 text with rgb numbers
  • 32.
  • 33. Let’s pick a red color for our h3 heading
  • 34. We put CSS code inside curly brackets like this { } We use a colon (:) in CSS the way we would use an equal sign (=) in HTML to set the value of something We end each rule with a semicolon (;) Punctuation matters!
  • 35.
  • 36. If we want all our text to be centered, we could put “text- align: center;” for each selector…
  • 37. …or we could just save time by making the text centered for the entire “body”
  • 38.
  • 39. Our image is too many pixels wide. Let’s set it to 700px wide, and let the browser determine the height automatically.
  • 40.
  • 41. To see how your webpage looks now, click the expand button in the upper corner of your preview window.
  • 42.
  • 43. Let’s give our text a larger, fancier font! When you start typing a new property, suggested words appear. You’ll also see suggested values, such as “normal,” “bold” and “light” for the property “font- weight.” Try different ones and see what you like!
  • 44. Let’s increase the size and style of our paragraph text with “font- size” and “font-family”
  • 45.
  • 46. Here is my finished CSS stylesheet. Can you think of a way that I can make it more concise?
  • 47.
  • 48.
  • 49. When your project is finished, give it a name
  • 50. Click Share to get a URL people can use to see your finished webpage! Use CTRL and C to copy it
  • 51. Paste the link into a new browser window
  • 52. Send the link to your friends. This is what they will see!