Web Technologies

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following HTML code snippets is the proper way to set the background color of an <h1> tag to be blue? <blue> <h1>Hello</h1> </blue> <h1 background-color="blue">Hello</h1> <h1 style="blue">Hello</h1> <h1 style="background-color:blue;">Hello</h1>

<h1 style="background-color:blue;">Hello</h1>

Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels? A) <img style="height:200px;"> B) tag="img" { height: 200px; } C) img { height: 200px; } D) <img> { height: 200px; }

C) img { height: 200px; }

Which of the following is a term that describes "a widely agreed upon set of rules that standardize communication between machines"? Router E-commerce Network Protocol

Protocol

What is the fourth step of viewing a web page as described in the video? The Response: The server sends a response to the browser with the resource attached The Request: The browser sends a message to a server requesting a resource Rendering the Page: Your browser takes the resource and renders it in the browser window The URL: You type the URL for the web page into your browser

Rendering the Page: Your browser takes the resource and renders it in the browser window

Which of the following is an example of a browser? Firefox Windows www.google.com HTML

Firefox

What is a browser? A website that allows you to search the Internet A program on your computer that allows you to visit websites A piece of hardware inside your computer that connects your computer to the Internet A computer that listens for Internet requests coming into a particular IP address and responds with web pages

A program on your computer that allows you to visit websites

Which of the following code snippets will select all HTML elements with the class "alert" and set their color to be red? A) alert { color: red; } B) .alert { color: red; } C) #alert { color: red; } D) class="alert" { color: red; }

B) .alert { color: red; }

Who creates the look and feel of a website? a) A web designer b) A web designer

a) A web designer

Which of the following is a valid HTML tag? h1 <> <h1> >h1<

<h1>

Which of the following is the proper format for an HTML tag? >h1<Content Affected by Tag >/h1< <h1>Content Affected by Tag<h1> <h1 Content Affected by Tag /> <h1>Content Affected by Tag</h1>

<h1>Content Affected by Tag</h1>

Who thinks about the best way to display information on the site? A web designer A web developer

A web designer

Who writes the HTML and CSS that brings the site to life? A web designer A web developer

A web developer

Which of the following is the correct HTML code to create a hyperlink that displays "CLICK ME" and links to google.com? A) <a href="https://google.com"> Click Me </a> B) <a href="Click Me"> https://google.com </a> C) Click Me <a>https://google.com</a> <a> D) Click Me </a href="https://google.com">

A) <a href="https://google.com"> Click Me </a>

Which of the following is a valid CSS rule? A) h1 { color: blue; } B) style="color:blue;" C) css="color:blue;" D) h1 { color { blue; } }

A) h1 { color: blue; }

In what order does the Cascade look at factors to determine which CSS rule to follow? Order, Importance, Specificity Importance, Order, Specificity Specificity, Importance, Order Importance, Specificity, Order

Importance, Specificity, Order

Which of the following is not a step required to view a web page? The user types in their login credentials. The browser sends a message to a server requesting a resource. The server sends a response to the browser with the resource attached. Your browser takes the resource and renders it in the browser window

The user types in their login credentials.

What is the path of the URL www.twitter.com/codehs? www /codehs www.twitter.com The entire URL is the path

/codehs

What is the result of the following HTML code: <ol> <li>Bread</li> <li>Milk</li> <li>Eggs</li> </ol> Bread Milk Eggs - Bread - Milk - Eggs 1.Bread 2.Milk 3.Eggs a. Bread b. Milk c. Eggs

1.Bread 2.Milk 3.Eggs

Which of the following tags defines a table header? <table> <tr> <th> <td>

<th>

What machine listens for HTTP requests to come in to a website's domain? A router A browser A server A uniform resource locator

A server

Which of the following classifies as metadata about a webpage? The tags that make up the body of the webpage A table on a webpage A list on a webpage The title of the webpage

The title of the webpage

What does URL stand for? Underlying Request Layout Underlying Response Layout Uniform Resource Locator Usable Render List

Uniform Resource Locator

What is the domain of this URL: www.example.com/home.html www home.html www.example.com HTML

www.example.com

What is the function of a router? A router connects multiple networks and directs communication between devices. A router encodes information into binary. A router connects one computer to another to send information. A router protects your computer from viruses.

A router connects multiple networks and directs communication between devices.

Which of the following HTML code snippets will generate the following table? A) <table border="1"> <tr> <th>Name</th> <th>Score</th> </tr> <tr> <td>Karel</td> <td>32</td> </tr> </table> B) <table border="1"> <tr> <td>Name</td> <td>Score</td> </tr> <tr> <td>Karel</td> <td>32</td> </tr> </table> C) <table border="1"> <tr> Name Score </tr> <tr> Karel 32 </tr> </table> D) <table border="1"> <th>Name</th> <th>Score</th> <td>Karel</td> <td>32</td> </tr> </table>

A) <table border="1"> <tr> <th>Name</th> <th>Score</th> </tr> <tr> <td>Karel</td> <td>32</td> </tr> </table>

True or False: As long as you cite your sources, you can put any image you find online on your website. True False

False

True or False: In the case that two conflicting rules have the same order and specificity, the rule that is written first will be applied. True False

False

True or False: The majority of the world has access to the Internet. True False

False

Which of the following is not a concern that has come out of the widespread adoption of the Internet? Censorship of information Increased anonymity Selecting the correct browser to use for the sites you want to visit Unauthorized sharing of copyrighted information

Selecting the correct browser to use for the sites you want to visit

What is the function of the Cascade in CSS? The Cascade is a set of guidelines to make your site look beautiful. The Cascade helps you write styling for your websites quickly by providing easy templates to use. The Cascade determines which CSS rules will be applied when multiple rules for an item are contradictory. The Cascade will make sure there are no typos in your CSS rules.

The Cascade determines which CSS rules will be applied when multiple rules for an item are contradictory.

What is the second step of viewing a web page as described in the video? The Response: The server sends a response to the browser with the resource attached The Request: The browser sends a message to a server requesting a resource Rendering the Page: Your browser takes the resource and renders it in the browser window The URL: You type the URL for the web page into your browser

The Request: The browser sends a message to a server requesting a resource

What is the third step of viewing a web page as described in the video? The Response: The server sends a response to the browser with the resource attached The Request: The browser sends a message to a server requesting a resource Rendering the Page: Your browser takes the resource and renders it in the browser window The URL: You type the URL for the web page into your browser

The Response: The server sends a response to the browser with the resource attached

What is the first step of viewing a web page as described in the video? The Response: The server sends a response to the browser with the resource attached The Request: The browser sends a message to a server requesting a resource Rendering the Page: Your browser takes the resource and renders it in the browser window The URL: You type the URL for the web page into your browser

The URL: You type the URL for the web page into your browser

All of the colors you see on a computer screen are the result of a mixture of the same three colors. What are those colors? red, yellow, blue green, orange, purple red, green, blue red, green, yellow

red, green, blue

What percentage of the world population has access to the Internet? 10% 40% 80% 100%

40%

An image is hosted at https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg Which of the following is the proper HTML code to display this image on your webpage? <a href="https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg">Image</a> <img>https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg</img> <img src="https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg"> <img src="https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg"></img>

<img src="https://upload.wikimedia.org/wikipedia/commons/6/62/Big_and_little_dog.jpg">

Which of the following is related to the issue of censorship on the Internet? People watching movies from an unauthorized streaming site Students using the anonymity of the Internet to harass somebody at school A government filtering search results to limit the access of information and suppress discussion amongst its citizens Students using the Internet to find homework answers

A government filtering search results to limit the access of information and suppress discussion amongst its citizens

What is the Internet? A network of networks A way for humans to communicate with each other A philosophy of making information and knowledge open and accessible for all All of the above

All of the above

Which of the following actions will help you avoid violation of copyright laws? Always cite the source of the image Check the copyright of the image to make sure it can be used by others without permission Limit your searches to public domain images All of the above

All of the above

Which of the following is a valid color in HTML? "blue" "rgb(255, 0, 0)" "#00FF00" All of the above

All of the above

Which of the following is an example of metadata about a webpage? The title of the webpage The body of the webpage An <h1> tag on the webpage All of the above

All of the above

Why are Internet Protocols important? Protocols ensure that all computers interpret information the same way. Protocols make sure that all types of devices can communicate. Protocols make sure that no matter how information is being sent, the information layout remains the same. All of the above

All of the above

Why do we use CSS? HTML wasn't intended to be able to style web pages, CSS allows us to add style Separate the content of a web page from the design of a web page Easily modify the look and feel of a web site even at a large scale All of the above

All of the above

Suppose you have written a web page using HTML and it is hosted at the URL yourdomain.com/home.html Which of the following statements is true about which devices can view your website? Only browsers on desktop computers can view your website because only desktop browsers can render HTML based web pages. Only browsers on mobile phones can view your website because only mobile browsers can render HTML based web pages. Only computers made after the day you publish your website can view your website. Older computers can't understand HTML. Any browser on any device will be able to view your webpage, because all browsers and devices on the Internet agree to use the same protocols for sending, receiving, and viewing webpages.

Any browser on any device will be able to view your webpage, because all browsers and devices on the Internet agree to use the same protocols for sending, receiving, and viewing webpages.

Which of the following tags defines a table row? A) <table> B) <tr> C) <th> D) <td>

B) <tr>

Which of the following CSS rules will select the HTML element with the id logo and set the font size for that element to 60 pixels? A) logo { font-size: 60px; } B) .logo { font-size: 60px; } C) #logo { font-size: 60px; } D) id="logo" { font-size: 60px; }

C) #logo { font-size: 60px; }

Which of the following lines of HTML code will insert an image into a webpage? A) <img> https://codehs.com/static/img/logo.png </img> B) <img> src="https://codehs.com/static/img/logo.png" </img> C) <img src="https://codehs.com/static/img/logo.png"> D) <img https://codehs.com/static/img/logo.png>

C) <img src="https://codehs.com/static/img/logo.png">

Which of the following HTML code snippets would produce the following web page: Apples Bananas Oranges A) <ul> Apples Bananas Oranges </ul> B) <ol> Apples Bananas Oranges </ol> C) <ul> <li>Apples</li> <li>Bananas</li> <li>Oranges</li> </ul> D) <ol> <li>Apples</li> <li>Bananas</li> <li>Oranges</li> </ol>

C) <ul> <li>Apples</li> <li>Bananas</li> <li>Oranges</li> </ul>

What is the function of the <br> tag? Create a line break on the resulting webpage Create a horizontal line on the resulting webpage Italicize text Bold text

Create a line break on the resulting webpage

What does HTML stand for? Hidden Text Meta Language Hyper Text Markup Language Hidden Theme Markdown Level Hyper Text Markdown Language

Hyper Text Markup Language

Which of the following falls under the role of a web designer? I. Creating the look and feel of a website II. Writing the HTML and CSS that bring a site to life III. Figuring out the best way to display information IV. Thinking about the user experience V. Building a website based on a given design I, II, III, IV II and V I, III, IV All of these are a part of a web designer's role.

I, III, IV

Which of the following best describes the difference between the domain and path of a URL? The domain specifies where the browser's request should be sent. The path specifies exactly what file is being requested. The domain specifies what kind of file is being requested. The path specifies the name of the file being requested. The domain specifies the name of the file being requested. The path specifies what kind of file is being requested. The domain specifies exactly what file is being requested. The path specifies where the browser's request should be sent.

The domain specifies where the browser's request should be sent. The path specifies exactly what file is being requested.

Which of the following does not demonstrate a harmful consequence of increased anonymity on the Internet? Users can avoid targeted discrimination in an online forum. People can create avatars to interact inappropriately with other users in a forum. People can post hate speech in video comments without consequences. People can easily create fake profiles to impersonate others online.

Users can avoid targeted discrimination in an online forum.


संबंधित स्टडी सेट्स

Chapter 5: Ethics, Corporate Social Responsibility, and Sustainability

View Set

Periodic Table Elements 1-56, 72-88

View Set

IL CHAPTER 2 - TYPES OF LIFE POLICIES

View Set

Journeys L1 Word Work: short vowels

View Set

Hanyu-Lesson4 What is your name ?你叫什么名字?

View Set

Contribution Format Income Statement

View Set

Psyc 100 exam 2 learning objectives

View Set

Chapter 18 - The Cardiovascular System:Heart

View Set