

time to code! (html) lesson 2: your first sentence
Presentation
•
Computers
•
2nd - 5th Grade
•
Easy
Amy Yan
Used 3+ times
FREE Resource
4 Slides • 2 Questions
1
time to code! (html)
lesson 2: your first sentence

2
let's begin!
https://www.khanacademy.org/computer-programming/this-is-your-title-it-is-usually-the-url-your-visitors-type-in-the-address-bar-to-find-your-webpager/5352601749897216
Go to the very bottom and type:
<script>
document.body.innerHTML="webpage be gone"
</script>
You can change webpage be gone to any sentence of your choice but notice that the whole webpage turns into your sentence! CONGRATS! YOU HAVE MADE YOUR FIRST SENTENCE WITH HTML!
3
Open Ended
What was your sentence? We want to know
4
This is what my screen looks like. So what exactly is going on? NEXT ~~~~>
5
Okay, here's what's going on
The <script> and </script> were javascript tags. Inside the javascript, document.body.innerHTML="" is telling it to find the webage and replace it.
6
Open Ended
practice for lesson 3: begin your webpage:
Do you think the <script>document.body.innerHTML</script> tag is a good way to type a sentence?
time to code! (html)
lesson 2: your first sentence

Show answer
Auto Play
Slide 1 / 6
SLIDE
Similar Resources on Wayground
9 questions
theme
Presentation
•
3rd - 5th Grade
4 questions
ETIQUETAS HTML
Presentation
•
6th Grade
6 questions
Lenguaje visual
Presentation
•
KG
4 questions
quiz annif Greg
Presentation
•
KG
1 questions
Untitled Lesson
Presentation
•
1st - 5th Grade
4 questions
อก 22101/3/1
Presentation
•
KG
2 questions
ssscv
Presentation
•
1st - 5th Grade
2 questions
plantas
Presentation
•
1st - 5th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade