

Code.org- flex boxes
Presentation
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
Laura FisherJohnson
Used 2+ times
FREE Resource
5 Slides • 3 Questions
1
Flex Boxes
By Laura FisherJohnson
2
What is a "div" tag
Div stands for “division” or “section”.
When you are organizing the layout of your webpage, it is often helpful to organize the content into sections.
The div tag definesa division or a section in an HTML document
.
It is often used as a container for HTML elements - which is then styled with CSS.
3
Multiple Choice
What is a <div> tag used for?
To divide the page into sections
To style the page
You must have this tag for content to show up
These tags are just to make the page look fancy
4
What does <div> do?
The div tag does not really do anything visible; it just divides the document into sections, so it is convenient for you to work with a document by splitting it into different sections.
The div tag is easily styled by using the class or id attribute.
Any sort of content can be put inside the div tag!
Note: By default, the div element is a block element, meaning that it takes all available width, and comes with line breaks before and after the div element.
5
Multiple Choice
If you use <div> without CSS what will you notice about the page?
You will notice that bordered sections show up
It really makes the text on the page pop
Nothing
The page will look sparkly
6
Multiple Choice
What sort of content can be put in the <div> tag?
Anything in paragraph format
Images only
Tables
Literally anything!
7
<div class="London">
<h2>London</h2>
<p>London is the capital city of England.</p>
<p>London has over 13 million inhabitants.</p>
</div>
<div class="Oslo">
<h2>Oslo</h2>
<p>Oslo is the capital city of Norway.</p>
<p>Oslo has over 600.000 inhabitants.</p>
</div>
https://levelbuilder-studio.code.org/courses/csd-2022/guides/div 2/3
<div class="Rome">
<h2>Rome</h2>
<p>Rome is the capital city of Italy.</p>
<p>Rome has almost 3 million inhabitants.</p>
</div>
Example of Using Dividers
8
Result after CSS
There are different methods for aligning elements side by side, all include some CSS styling. The example above was styled using
the float: left and width: 33% CSS properties.
Result after CSS and using<div>
Flex Boxes
By Laura FisherJohnson
Show answer
Auto Play
Slide 1 / 8
SLIDE
Similar Resources on Wayground
6 questions
Permainan Bola Basket
Presentation
•
6th - 8th Grade
7 questions
Juxtaposition Review (Unit 3, lesson 1)
Presentation
•
7th Grade
10 questions
Dialogue
Presentation
•
6th - 8th Grade
6 questions
Seismic Energy Review
Presentation
•
6th - 8th Grade
6 questions
Penjumlahan
Presentation
•
7th Grade
6 questions
1st Lesson
Presentation
•
KG
6 questions
Make Predictions in Probability
Presentation
•
6th - 8th Grade
6 questions
Making Predictions with Probability
Presentation
•
6th - 8th 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