1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Shalnov [3]
3 years ago
14

What is the purpose of a div?

Computers and Technology
1 answer:
taurus [48]3 years ago
5 0

Answer:

I'd choose A, all of the above.

Reasoning Why:

I'll be taking you on a step to step process on why I inputted the answer.

The <div>, is basically like a container that you can group tougher, why this is great is because you can edit the div using a background-color effecting that group such as the following..

EXAMPLE OF BACKGROUND-COLOR DIV (background-color)

<!DOCTYPE html>

<html>

<head>

<title>Brainly Example | HTML Div</title>

<style>

#byexample{

background-color:red;

/*Example of the Background-color attrib*/

/*You can also use the background-image attrib, however I recommend you checkout W3Schools, on that topic.*/

}

</style>

</head>

<body>

<div id="byexample">

<p>Just some random text to demonstrate.</p>

</div>

</body>

</html>

END OF EXAMPLE

You can also, in the <div> change multiple styles of an element in the div. However, if do want to change the styles of a single element you would need to nest it.

<!DOCTYPE html>

<html>

<head>

<title>Brainly Example | HTML Div</title>

<style>

#byexample #text{

background-color:red;

color:yellow;

}

</style>

</head>

<body>

<div id="byexample">

<p id="text">Just some random text to demonstrate.</p>

</div>

</body>

END OF EXAMPLE

Lastly, you can group elements using divs, as stated in openclassroom (website).

Anyways, I hope this helped!

Happy coding!

You might be interested in
Which of the following would be considered a subtopic for a mind map?
Grace [21]

Answer:

C) Plants

Explanation:

"Ecosystem" is the topic. Then "Plants" is the sub topic. Next the "Number of trees" and "Number of shrubs" branch out from there (Pun intended (; ).

4 0
3 years ago
Write a function with two parameters, prefix (a string, using the string class from ) and levels (an unsigned integer). The func
Allisa [31]

Answer:

Here is the program:

#include <iostream>  //to use input output functions

#include <string>  // to use functions to manipulate strings

using namespace std;  //to identify objects cin cout

void function(string prefix, unsigned int levels){  // function that takes two parameters, a string, using the string class and levels an unsigned integer

   if (levels == 0) {  //if number of levels is equal to 0

       cout << prefix << endl;  //displays the value of prefix

       return;    }  

  for (int i = 1; i <=9 ; i++){  //iterates 1 through 9 times

       string sections = (levels == 1 ? "" : ".");  //if the number of levels is equal to 1 then empty space in sections variable otherwise stores a dot

       string output = prefix +  std::to_string(i) + sections;   // displays the string prefix followed by the section numbers. Here to_string is used to convert integer to string

       function(output, levels - 1);   } }   //calls function by passing the resultant string and levels-1  recursively to print the string prefix followed by section numbers

int main() {  // start of main function

   int level = 2;  //determines the number of levels

   function("BOX", level);  } //calls function by passing the string prefix and level value

Explanation:

The program has a function named function() that takes two parameters, prefix (a string, using the string class from ) and levels (an unsigned integer). The function prints the string prefix followed by "section numbers" of the form 1.1., 1.2., 1.3., and so on. The levels argument determines how many levels the section numbers have. If the value of levels is 0 means there is 0 level then the value of prefix is printed. The for loop iterates '1' through '9' times for number of digits in each level. If the number of levels is 1 then space is printed otherwise a dot is printed. The function() calls itself recursively to print the prefix string followed by section numbers.

Let us suppose that prefix = "BOX" and level = 1

If level = 1 then the loop for (int i = 1; i <=9 ; i++) works as follows:

At first iteration:

i = 1

i <=9 is true because value of i is 1

string sections = (levels == 1 ? "" : "."); this statement checks if the levels is equal to 1. It is true so empty space is stored in sections variable so,

sections = ""

Next, string output = prefix +  std::to_string(i) + sections; statement has prefix i.e BOX plus value of i which is 1 and this int value is converted to string by to_string() method plus sections has an empty space. So this statement becomes

string output = BOX + 1  

So this concatenates BOX with 1 hence output becomes:

output = BOX1

At second iteration:

i = 2

i <=9 is true because value of i is 2

string sections = (levels == 1 ? "" : "."); is true so

sections = ""

Next, string output = prefix +  std::to_string(i) + sections; statement becomes

string output = BOX + 2  

So this concatenates BOX with 1 hence output becomes:

output = BOX2

At third iteration:

i = 3

i <=9 is true because value of i is 3

string sections = (levels == 1 ? "" : "."); is true so

sections = ""

Next, string output = prefix +  std::to_string(i) + sections; statement becomes

string output = BOX + 3  

So this concatenates BOX with 1 hence output becomes:

output = BOX3

Now at each iteration the prefix string BOX is concatenated and printed along with the value of i. So at last iteration:

At last iteration:

i = 9

i ==9 is true because value of i is 9

string sections = (levels == 1 ? "" : "."); is true so

sections = ""

Next, string output = prefix +  std::to_string(i) + sections; statement becomes

string output = BOX + 9  

So this concatenates BOX with 1 hence output becomes:

output = BOX9

After this the loop breaks at i = 10 because the condition i<=9 becomes false. So the output of the entire program is:

BOX1                                                                                                                                          BOX2                                                                                                                                          BOX3                                                                                                                                          BOX4                                                                                                                                          BOX5                                                                                                                                          BOX6                                                                                                                                          BOX7                                                                                                                                          BOX8                                                                                                                                          BOX9  

The program along with the output is attached.

4 0
3 years ago
I need help with this question. asap please
marissa [1.9K]

Answer:

what are you talking about

Explanation:

can you help me with my question

8 0
2 years ago
Where do you find the instructions, learning objectives, evaluation and scoring for this aba assignment?.
sp2606 [1]

The instructions, learning objectives, evaluation and scoring for Aba assignment can be found on Preamble of the Applied Behavior Analysis (ABA) assignment.

<h3>What is ABA?</h3>

Applied Behavior Analysis refers to a therapy that is based on the science of learning and behavior.

Hence, the instructions, learning objectives, evaluation and scoring for Aba assignment can be found on Preamble of the Applied Behavior Analysis (ABA) assignment.

Read more about ABA

<em>brainly.com/question/11449763</em>

6 0
2 years ago
The light you shoot in will dictate what shutter speeds to use.
Nesterboy [21]

Answer:

The three things that will determine your exposure are film speed, aperture and shutter speed. The speed of the film dictates how much light the film needs. The aperture controls how much light comes through the lens. And the shutter speed then controls how much of that light hits the film. These three things always work together to produce your image.

The shutter speed, sometimes known as exposure time, determines the amount of time your film is exposed to light when taking a photograph. So, you always need to balance your aperture and shutter speed to get a correct exposure.

The general rule is you need to shoot with at least 1/60 to get sharp images when shooting handheld. It is best to use a tripod if you want to shoot with a slower exposure time as this will help reduce any camera shake.

Fast Shutter

Fast speeds are really good for freezing fast-moving subjects. You need to make sure you are using a fast exposure time if you are trying to take a sharp image of a fast subject. Different cameras have different options but commonly you can choose something like 1/500.

Higher ISO film will also allow you to utilise the faster shutter speeds as they are more sensitive to light.

Slow Shutter

Slow shutter speeds will visibly record motion. They are often used to create the effect of motion in an image. A moving subject captured with a slow exposure time will be captured as a blur across the image. Slow exposure times are also necessary when taking photos at night. They allow you to get enough light to expose your image correctly.

Be careful when using slow exposures without a tripod. The slower the shutter the more likely that you will have visible camera shake in the image.

Reading Shutter Speeds

Shutter speed is measured in fractions of a second. So, for example, 1/60 is read as one-sixtieth of a second. The bigger the second number in the faster the speed.

Typical shutter speeds you will see are; 1, 1/2, 1/4, 1/8, 1/15, 1/30, 1/60, 1/125, 1/250 and 1/500.

You might also be interested in our Guide to Aperture and Guide to Film Speed

If you’re new to film then read our Beginners Guide To Film Photography. And if you want some help picking out your first roll then read Choose Your Film, it will give you a good idea of the options you have.

Explore

News • Guides • Community • Film Reviews • Film Developing Times • Choose Your Film

GUIDE TO APERTURE

GUIDE TO FILM SPEED

SHOP FILM

Share:

. . .

Terms and Conditions / Privacy Policy / Cookie Policy / © 2021 Parallax Photographic Coop

Explanation:

please mark me brainliest

3 0
2 years ago
Other questions:
  • ​ A wire service is also known as a ____.
    7·1 answer
  • Helen has no experience in security. She would like to earn a certification that demonstrates that she has the basic knowledge n
    15·1 answer
  • Domain of (x+8)/(x(x+10))
    12·1 answer
  • Anyone who uses Edmentum Plato homeschool can anyone please help me my biology is not loading and it says flash is not available
    7·2 answers
  • What are some ways tables can be inserted into a document? Check all that apply.
    5·2 answers
  • Each Google My Business location has a unique ID that applies changes to the right listing.
    11·1 answer
  • A label control may be added to a form by double-clicking on the Label control icon in the ________ window.
    15·1 answer
  • In which drawer can you set certain lights to light up on your micro:bit?
    12·2 answers
  • Two Windows features are “boot in safe mode” (with limited user abilities) and “boot from disk.” Windows also has a third, easy-
    13·1 answer
  • Roles of computer in business areas​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!