SlideShare a Scribd company logo
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
Click to start
ARE YOU ABLE TO
CODE THIS?
WE'LL GUIDE YOU & GIVE HINTS,
DON'T WORRY!
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
We've Provided You with Part 1
Provided!
Now, you have to complete
Part 2 with us!
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
How are we doing this....
These slides will guide
you to our goal!
You'll need to toggle
between these 2 later
Type your code here.
This is the code editor.
You will see your output
here
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
HTML
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#1: Let's start with the heading
Go to code editor, find this on Part 2 onwards
How is a Website different from a Web App?
Before that, let's find out what's front-end and
back-end.
Front-end consists of the look and feel of a
website. You use HTML for the structure, CSS for
styling and JavaScript to give your website a
personality. You can create animations too.
Back-end is the server-side process which
determines how the site works, updates and
.
.
.
etc…..
We'll use a heading tag for this!
Let’s <h2> place text here </h2> for this.
Stuck? The solution is at the end.
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#2: Now for the paragraphs
Go to code editor, find this on Part 3
Before that, let's find out what's front-end and
back-end.
Front-end consists of the look and feel of a
website. You use HTML for the structure, CSS for
styling and JavaScript to give your website a
personality. You can create animations too.
Back-end is the server-side process which
determines how the site works, updates and
changes. It refers to everything you can't see, like
storing information into databases and writing
algorithms/ logic to interact with your database.
.
.
etc...
For each paragraph, you will need to wrap it
with….
<p> place text here </p>
<p> Before that, let's find out what's front-end and
back-end. </p>
Do this for the remaining paragraphs.
Stuck? The solution is at the end.
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#3: Let make important words "stronger"
Go to code editor, find this on Part 3
Before that, let's find out what's front-end and
back-end.
Front-end consists of the look and feel of a
website. You use HTML for the structure, CSS for
styling and JavaScript to give your website a
personality. You can create animations too.
Back-end is the server-side process which
determines how the site works, updates and
changes. It refers to everything you can't see, like
storing information into databases and writing
algorithms/ logic to interact with your database.
.
.
etc...
To make an important word "stronger"...
<strong> Front-end </strong>
You can wrap it with the <strong></strong>
tag.
Do that for back-end too!
Stuck? The solution is at the end.
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#4: Let’s add a horizontal line
How is a Website different from a Web
App?
Before that, let's find out what's front-end and
back-end.
Front-end consists of the look and feel of a
website. You use HTML for the structure, CSS for
styling and JavaScript to give your website a
personality. You can create animations too.
Back-end is the server-side process which
determines how the site works, updates and
changes. It refers to everything you can't see, like
storing information into databases and writing
algorithms/ logic to interact with your database.
.
.
Horizontal lines are useful to add a touch of
design to your website.
All you need to do is to add a new line and
write this in!
<hr>
Note: This is called a SINGLE TAG.
Careful, there is no <hr></hr>.
Stuck? The solution is at the end.
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#5: How about our image?
How is a Website different from a Web
App?
Before that, let's find out what's front-end and
back-end.
Front-end consists of the look and feel of a
website. You use HTML for the structure, CSS for
styling and JavaScript to give your website a
personality. You can create animations too.
Back-end is the server-side process which
determines how the site works, updates and...
To add an image, you first need to image's url
and add it into the <img> tag.
<img src="image url">
Note:
- src means "source", so put the image url
here!
- Careful, there is no <img></img>.
- Don't worry if image is too big! We'll deal
with that later.
The image link is available in Part 4: (last line)
Stuck? The solution is at the end.
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#6: Let's structure our code better
How is a Website different from a Web
App?
Before that, let's find out what's front-end and
back-end.
Front-end consists of the look and feel of a
website. You use HTML for the structure, CSS for
styling and JavaScript to give your website a
personality. You can create animations too.
Back-end is the server-side process which
determines how the site works, updates and...
Since we have created this as a new section,
let's put this under the <section> tag.
<section>
Content
</section>
Stuck? The solution is at the end.
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
Your page looks something like this now?
Oh no!! The image is just too huge!
What if I want to change the
background color, highlight some
words etc. ??
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
STYLING WITH CSS
Let's make them look nice now!
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
Styling with CSS
Toggle to this now
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#7: Let's change the text color of our paragraphs
Black is no fun. How do I make ALL paragraphs grey
but not the others!?
Well, we know that all <p> are within our <body>.
Look at the code below.
You can interpret the code above as:
● choose all <p> within <body>
● For the text, change the color (text) to
darkslategrey - Google "named colors" for other colors
Try it on CSS file Part 2 code!
Stuck? The solution is at the end.
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#8: Make our borders edge rounded
How do I make all edges rounded?
1. Look for the pre-written code for section in
CSS
2. Add border-radius: 10px; in it (you can try
changing the value and see the difference)
Stuck? The solution is at the end.
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#9: Let's make our image smaller
Let's reduce it to a better size. Since we only have
one image, select img and style it in CSS.
You can choose to set width or height or both. No
worries, it will reduce or increase the size according
to the aspect ratio.
I have decided to set height to 200px. Add this
code into your CSS.
Stuck? The solution is at the end.
200px
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Trickier Tasks
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#10: Let's set the background color
We have 2 <section> in our HTML and I only want to select the
second <section>.
I want to make this <section> unique, for this we'll need to give it an
id called info inside our HTML file.
Stuck? The solution is at the end.
HTML file
Let's select the correct
element and give it a
unique id...
CSS file
For the element with the
id called info...
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#11: Color up some words
Those words are within a <p>. We need to figure out a way to
isolate them from other words, select them and style them.
Part 1: HTML
● Isolate the words from other words by wrapping the
special words with <span> tag in your HTML
<span> front-end </span>
<span> look and feel of a website </span>
<span> back-end </span>
● Do it for all 6 of them in your HTML file.
Stuck? The solution is at the end.
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
#11: Color up some words
Part 2: HTML
● 4 of them are yellow, and another 2 are aqua.
● We'll create 2 classes: "yellow" and "aqua" so that we can
reuse it repeatedly
● For all yellow elements, do this...
<span class="yellow"> front-end </span>
● For all aqua elements, do this...
<span class="aqua"> look and feel of a website </span>
Part 3: CSS
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or
mechanical methods, without the prior written permission of Next Academy.
ENJOYED IT?
SHARE IT WITH YOUR FRIENDS!
WOOHOO!
YOU DID IT!!
By learning front-end
development, you can do more!
● Mobile responsiveness
● Animations
● Better layouts
● Interactive website
● Building games!
LEARN MORE HERE
Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by
any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy.
HTML CSS
1
2
3
4
5
6
7
8
9
10
11
10
11
(the bubble numbers are the activity numbers)
/* Part 2: Add your code here */

More Related Content

Similar to HTML CSS Coding Fundamentals Exercise

Postmodern Web Apps
Postmodern Web AppsPostmodern Web Apps
Postmodern Web Apps
malteubl
 
UpdatedMuhammadBilalResume.docx (1)
UpdatedMuhammadBilalResume.docx (1)UpdatedMuhammadBilalResume.docx (1)
UpdatedMuhammadBilalResume.docx (1)
Muhammad Bilal Ahmed
 
NEW LAUNCH! Infinitely Scalable Machine Learning Algorithms with Amazon AI - ...
NEW LAUNCH! Infinitely Scalable Machine Learning Algorithms with Amazon AI - ...NEW LAUNCH! Infinitely Scalable Machine Learning Algorithms with Amazon AI - ...
NEW LAUNCH! Infinitely Scalable Machine Learning Algorithms with Amazon AI - ...
Amazon Web Services
 

Similar to HTML CSS Coding Fundamentals Exercise (20)

What Is Power BI? | Introduction To Microsoft Power BI | Power BI Training | ...
What Is Power BI? | Introduction To Microsoft Power BI | Power BI Training | ...What Is Power BI? | Introduction To Microsoft Power BI | Power BI Training | ...
What Is Power BI? | Introduction To Microsoft Power BI | Power BI Training | ...
 
MA2017 | Eunice Sari | Design Sprint for Rapid Product Development
MA2017 | Eunice Sari | Design Sprint for Rapid Product Development MA2017 | Eunice Sari | Design Sprint for Rapid Product Development
MA2017 | Eunice Sari | Design Sprint for Rapid Product Development
 
Postmodern Web Apps
Postmodern Web AppsPostmodern Web Apps
Postmodern Web Apps
 
Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdf
 
Emotion Recognition in Images
Emotion Recognition in ImagesEmotion Recognition in Images
Emotion Recognition in Images
 
Scuti Profile 04.2022.pdf
Scuti Profile 04.2022.pdfScuti Profile 04.2022.pdf
Scuti Profile 04.2022.pdf
 
DeepuKPrasannan-new
DeepuKPrasannan-newDeepuKPrasannan-new
DeepuKPrasannan-new
 
UX, Front-end and Back-end: How front-end can help these guys?
UX, Front-end and Back-end: How front-end can help these guys?UX, Front-end and Back-end: How front-end can help these guys?
UX, Front-end and Back-end: How front-end can help these guys?
 
NEW LAUNCH! Introducing Amazon Sumerian – Build VR/AR and 3D Applications - M...
NEW LAUNCH! Introducing Amazon Sumerian – Build VR/AR and 3D Applications - M...NEW LAUNCH! Introducing Amazon Sumerian – Build VR/AR and 3D Applications - M...
NEW LAUNCH! Introducing Amazon Sumerian – Build VR/AR and 3D Applications - M...
 
MADANKUMAR Resume
MADANKUMAR ResumeMADANKUMAR Resume
MADANKUMAR Resume
 
[Resume CV] Sepehr Soltanieh
[Resume CV] Sepehr Soltanieh[Resume CV] Sepehr Soltanieh
[Resume CV] Sepehr Soltanieh
 
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
 
A place web.
A place web.A place web.
A place web.
 
Microsoft Azure Tutorial For Beginners | Microsoft Azure Training | Edureka
Microsoft Azure Tutorial For Beginners | Microsoft Azure Training | EdurekaMicrosoft Azure Tutorial For Beginners | Microsoft Azure Training | Edureka
Microsoft Azure Tutorial For Beginners | Microsoft Azure Training | Edureka
 
Azure Training | Microsoft Azure Tutorial | Microsoft Azure Certification | E...
Azure Training | Microsoft Azure Tutorial | Microsoft Azure Certification | E...Azure Training | Microsoft Azure Tutorial | Microsoft Azure Certification | E...
Azure Training | Microsoft Azure Tutorial | Microsoft Azure Certification | E...
 
UpdatedMuhammadBilalResume.docx (1)
UpdatedMuhammadBilalResume.docx (1)UpdatedMuhammadBilalResume.docx (1)
UpdatedMuhammadBilalResume.docx (1)
 
What is deep learning (and why you should care) - Talk at SJSU Oct 2018
What is deep learning (and why you should care) - Talk at SJSU Oct 2018What is deep learning (and why you should care) - Talk at SJSU Oct 2018
What is deep learning (and why you should care) - Talk at SJSU Oct 2018
 
NEW LAUNCH! Infinitely Scalable Machine Learning Algorithms with Amazon AI - ...
NEW LAUNCH! Infinitely Scalable Machine Learning Algorithms with Amazon AI - ...NEW LAUNCH! Infinitely Scalable Machine Learning Algorithms with Amazon AI - ...
NEW LAUNCH! Infinitely Scalable Machine Learning Algorithms with Amazon AI - ...
 
Scuti profile 2022
Scuti profile 2022Scuti profile 2022
Scuti profile 2022
 
How to Learn Web Designing Step by Step From Basics in 2018
How to Learn Web Designing Step by Step From Basics in 2018How to Learn Web Designing Step by Step From Basics in 2018
How to Learn Web Designing Step by Step From Basics in 2018
 

Recently uploaded

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
YibeltalNibretu
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 

HTML CSS Coding Fundamentals Exercise

  • 1. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Click to start ARE YOU ABLE TO CODE THIS? WE'LL GUIDE YOU & GIVE HINTS, DON'T WORRY!
  • 2. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. We've Provided You with Part 1 Provided! Now, you have to complete Part 2 with us!
  • 3. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. How are we doing this.... These slides will guide you to our goal! You'll need to toggle between these 2 later Type your code here. This is the code editor. You will see your output here
  • 4. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. HTML
  • 5. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #1: Let's start with the heading Go to code editor, find this on Part 2 onwards How is a Website different from a Web App? Before that, let's find out what's front-end and back-end. Front-end consists of the look and feel of a website. You use HTML for the structure, CSS for styling and JavaScript to give your website a personality. You can create animations too. Back-end is the server-side process which determines how the site works, updates and . . . etc….. We'll use a heading tag for this! Let’s <h2> place text here </h2> for this. Stuck? The solution is at the end.
  • 6. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #2: Now for the paragraphs Go to code editor, find this on Part 3 Before that, let's find out what's front-end and back-end. Front-end consists of the look and feel of a website. You use HTML for the structure, CSS for styling and JavaScript to give your website a personality. You can create animations too. Back-end is the server-side process which determines how the site works, updates and changes. It refers to everything you can't see, like storing information into databases and writing algorithms/ logic to interact with your database. . . etc... For each paragraph, you will need to wrap it with…. <p> place text here </p> <p> Before that, let's find out what's front-end and back-end. </p> Do this for the remaining paragraphs. Stuck? The solution is at the end.
  • 7. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #3: Let make important words "stronger" Go to code editor, find this on Part 3 Before that, let's find out what's front-end and back-end. Front-end consists of the look and feel of a website. You use HTML for the structure, CSS for styling and JavaScript to give your website a personality. You can create animations too. Back-end is the server-side process which determines how the site works, updates and changes. It refers to everything you can't see, like storing information into databases and writing algorithms/ logic to interact with your database. . . etc... To make an important word "stronger"... <strong> Front-end </strong> You can wrap it with the <strong></strong> tag. Do that for back-end too! Stuck? The solution is at the end.
  • 8. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #4: Let’s add a horizontal line How is a Website different from a Web App? Before that, let's find out what's front-end and back-end. Front-end consists of the look and feel of a website. You use HTML for the structure, CSS for styling and JavaScript to give your website a personality. You can create animations too. Back-end is the server-side process which determines how the site works, updates and changes. It refers to everything you can't see, like storing information into databases and writing algorithms/ logic to interact with your database. . . Horizontal lines are useful to add a touch of design to your website. All you need to do is to add a new line and write this in! <hr> Note: This is called a SINGLE TAG. Careful, there is no <hr></hr>. Stuck? The solution is at the end.
  • 9. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #5: How about our image? How is a Website different from a Web App? Before that, let's find out what's front-end and back-end. Front-end consists of the look and feel of a website. You use HTML for the structure, CSS for styling and JavaScript to give your website a personality. You can create animations too. Back-end is the server-side process which determines how the site works, updates and... To add an image, you first need to image's url and add it into the <img> tag. <img src="image url"> Note: - src means "source", so put the image url here! - Careful, there is no <img></img>. - Don't worry if image is too big! We'll deal with that later. The image link is available in Part 4: (last line) Stuck? The solution is at the end.
  • 10. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #6: Let's structure our code better How is a Website different from a Web App? Before that, let's find out what's front-end and back-end. Front-end consists of the look and feel of a website. You use HTML for the structure, CSS for styling and JavaScript to give your website a personality. You can create animations too. Back-end is the server-side process which determines how the site works, updates and... Since we have created this as a new section, let's put this under the <section> tag. <section> Content </section> Stuck? The solution is at the end.
  • 11. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Your page looks something like this now? Oh no!! The image is just too huge! What if I want to change the background color, highlight some words etc. ??
  • 12. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. STYLING WITH CSS Let's make them look nice now!
  • 13. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Styling with CSS Toggle to this now
  • 14. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #7: Let's change the text color of our paragraphs Black is no fun. How do I make ALL paragraphs grey but not the others!? Well, we know that all <p> are within our <body>. Look at the code below. You can interpret the code above as: ● choose all <p> within <body> ● For the text, change the color (text) to darkslategrey - Google "named colors" for other colors Try it on CSS file Part 2 code! Stuck? The solution is at the end.
  • 15. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #8: Make our borders edge rounded How do I make all edges rounded? 1. Look for the pre-written code for section in CSS 2. Add border-radius: 10px; in it (you can try changing the value and see the difference) Stuck? The solution is at the end.
  • 16. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #9: Let's make our image smaller Let's reduce it to a better size. Since we only have one image, select img and style it in CSS. You can choose to set width or height or both. No worries, it will reduce or increase the size according to the aspect ratio. I have decided to set height to 200px. Add this code into your CSS. Stuck? The solution is at the end. 200px
  • 17. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Trickier Tasks
  • 18. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #10: Let's set the background color We have 2 <section> in our HTML and I only want to select the second <section>. I want to make this <section> unique, for this we'll need to give it an id called info inside our HTML file. Stuck? The solution is at the end. HTML file Let's select the correct element and give it a unique id... CSS file For the element with the id called info...
  • 19. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #11: Color up some words Those words are within a <p>. We need to figure out a way to isolate them from other words, select them and style them. Part 1: HTML ● Isolate the words from other words by wrapping the special words with <span> tag in your HTML <span> front-end </span> <span> look and feel of a website </span> <span> back-end </span> ● Do it for all 6 of them in your HTML file. Stuck? The solution is at the end.
  • 20. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. #11: Color up some words Part 2: HTML ● 4 of them are yellow, and another 2 are aqua. ● We'll create 2 classes: "yellow" and "aqua" so that we can reuse it repeatedly ● For all yellow elements, do this... <span class="yellow"> front-end </span> ● For all aqua elements, do this... <span class="aqua"> look and feel of a website </span> Part 3: CSS
  • 21. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. Copyright © NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. ENJOYED IT? SHARE IT WITH YOUR FRIENDS! WOOHOO! YOU DID IT!! By learning front-end development, you can do more! ● Mobile responsiveness ● Animations ● Better layouts ● Interactive website ● Building games! LEARN MORE HERE
  • 22. Copyright © 2017 NEXT Academy (operated by Eleventh Division Sdn Bhd). All rights reserved. No part of this learning material may be reproduced, distributed, or transmitted in any form or by any means, including copying, recording, or other electronic or mechanical methods, without the prior written permission of Next Academy. HTML CSS 1 2 3 4 5 6 7 8 9 10 11 10 11 (the bubble numbers are the activity numbers) /* Part 2: Add your code here */