

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
Badminton
Lesson
•
6th - 8th Grade
10 questions
Growth vs Fixed Minset
Lesson
•
7th - 8th Grade
10 questions
Author's purpose review lesson
Lesson
•
6th - 7th Grade
8 questions
T1. Cycle 5: HTML MULTIMEDIA ELEMENTS AND HTML LIST
Lesson
•
7th Grade
8 questions
(PA) Inequalities Warmup
Lesson
•
6th - 8th Grade
8 questions
Le pluriel de l'adjectif - O πληθυντικός του επιθέτου
Lesson
•
6th - 8th Grade
3 questions
Informatika
Lesson
•
10th Grade
6 questions
PRESENTASI KELOMPOK 5
Lesson
•
7th Grade
Popular Resources on Wayground
10 questions
5.P.1.3 Distance/Time Graphs
Quiz
•
5th Grade
10 questions
Fire Drill
Quiz
•
2nd - 5th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
15 questions
Hargrett House Quiz: Community & Service
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
23 questions
Conflict Resolution
Lesson
•
6th - 8th Grade
25 questions
Early Republic 8th Grade US History
Quiz
•
8th Grade
10 questions
SMS Library Quiz
Quiz
•
6th - 8th Grade
14 questions
Volume of rectangular prisms
Quiz
•
7th Grade
17 questions
Figurative Language
Quiz
•
7th Grade
15 questions
Pythagorean Theorem Word Problems Quizizz
Quiz
•
8th Grade