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

PDF
RPA Automation Tutorial | RPA Training | RPA Tutorial For Beginners | Edureka
PPT
Eversun Careers
PDF
Become a Professional Web Designer
PPTX
2021's Hot Tech Tools and Services for Financial Professionals
PPTX
Generative Adversarial Networks (GANs) using Apache MXNet
PDF
Ehab-ELkady-CV
PDF
What Is Power BI? | Introduction To Microsoft Power BI | Power BI Training | ...
PDF
MA2017 | Eunice Sari | Design Sprint for Rapid Product Development
RPA Automation Tutorial | RPA Training | RPA Tutorial For Beginners | Edureka
Eversun Careers
Become a Professional Web Designer
2021's Hot Tech Tools and Services for Financial Professionals
Generative Adversarial Networks (GANs) using Apache MXNet
Ehab-ELkady-CV
What Is Power BI? | Introduction To Microsoft Power BI | Power BI Training | ...
MA2017 | Eunice Sari | Design Sprint for Rapid Product Development

Similar to HTML CSS Coding Fundamentals Exercise (20)

PDF
Postmodern Web Apps
PDF
Asp.net Web Development.pdf
PDF
Emotion Recognition in Images
PDF
Scuti Profile 04.2022.pdf
DOCX
DeepuKPrasannan-new
PDF
UX, Front-end and Back-end: How front-end can help these guys?
DOCX
MADANKUMAR Resume
PDF
[Resume CV] Sepehr Soltanieh
PDF
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
DOCX
A place web.
PDF
Microsoft Azure Tutorial For Beginners | Microsoft Azure Training | Edureka
PDF
Azure Training | Microsoft Azure Tutorial | Microsoft Azure Certification | E...
PDF
UpdatedMuhammadBilalResume.docx (1)
PPTX
What is deep learning (and why you should care) - Talk at SJSU Oct 2018
PDF
Scuti profile 2022
PDF
How to Learn Web Designing Step by Step From Basics in 2018
PDF
30 Java Developers - DN
PPTX
Difference between web design and web development
PPT
Nissi On Job Training
PPTX
Web Designing Course in Panchkula
Postmodern Web Apps
Asp.net Web Development.pdf
Emotion Recognition in Images
Scuti Profile 04.2022.pdf
DeepuKPrasannan-new
UX, Front-end and Back-end: How front-end can help these guys?
MADANKUMAR Resume
[Resume CV] Sepehr Soltanieh
What Is Selenium | Selenium Tutorial For Beginner | Selenium Training | Selen...
A place web.
Microsoft Azure Tutorial For Beginners | Microsoft Azure Training | Edureka
Azure Training | Microsoft Azure Tutorial | Microsoft Azure Certification | E...
UpdatedMuhammadBilalResume.docx (1)
What is deep learning (and why you should care) - Talk at SJSU Oct 2018
Scuti profile 2022
How to Learn Web Designing Step by Step From Basics in 2018
30 Java Developers - DN
Difference between web design and web development
Nissi On Job Training
Web Designing Course in Panchkula
Ad

Recently uploaded (20)

PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PDF
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
Computer Architecture Input Output Memory.pptx
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
semiconductor packaging in vlsi design fab
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
Module on health assessment of CHN. pptx
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Empowerment Technology for Senior High School Guide
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
advance database management system book.pdf
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
Computer Architecture Input Output Memory.pptx
Uderstanding digital marketing and marketing stratergie for engaging the digi...
semiconductor packaging in vlsi design fab
Environmental Education MCQ BD2EE - Share Source.pdf
Cambridge-Practice-Tests-for-IELTS-12.docx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Module on health assessment of CHN. pptx
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Introduction to pro and eukaryotes and differences.pptx
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Hazard Identification & Risk Assessment .pdf
Empowerment Technology for Senior High School Guide
B.Sc. DS Unit 2 Software Engineering.pptx
advance database management system book.pdf
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
Ad

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 */