

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
6 questions
LCV/LLIM Jan 12
Presentation
•
1st - 5th Grade
7 questions
Untitled Lesson
Presentation
•
KG
7 questions
Borrowing / Regrouping
Presentation
•
KG
7 questions
Do you eat your classmates?
Presentation
•
KG
3 questions
name class
Presentation
•
KG
6 questions
Fraction area models
Presentation
•
KG
6 questions
Name the Shapes
Presentation
•
KG
1 questions
TELPAS Tuesday 10/22
Presentation
•
1st - 5th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade