Show
In this session, we will be showing you CodeHS web design answers for free since this is a vast topic: CodeHS Web Design Answers – Getting StartedBefore solving Web Design related problems let us answer a few basic definitions you must know: Q. Who creates the look and feel of a website? Q. Who thinks about the best way to display information on the site? Q. Which of the following falls under the role of a web designer? Q. What is the Internet? Q. Routing Q. Packets Q. True or False: The majority of the world has access to the Internet. Q. Which of the following is related to the issue of censorship on the Internet? Q. What is a browser? Q. Which of the following are examples of browsers: Q. Which of the following is not a concern that has come out of the widespread adoption of the Internet? Q. Which of the following does not demonstrate a harmful consequence of increased anonymity on the Internet? Q. What percentage of the world population has access to the Internet? Q. Which of the following is a term that describes “a widely agreed-upon set of rules that standardize communication between machines”? Q. Which of the following is an example of a browser? Q. What machine listens for HTTP requests to come into a website’s domain? Q. What is the path of the URL www.twitter.com/codehs? Q. Which of the following is not a step required to view a web page? Q. True or False: As long as you cite your sources, you can put any image you find online on your website. Q. Which of the following actions will help you avoid violation of copyright laws? Q. What does URL stand for? Q. 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? Q. Which of the following best describes the difference between the domain and path of a URL? Q. What is the domain of this URL: www.example.com/home.html Q. 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. Q. True or False: If a selector’s display property is set to none, selected elements will still take up space on the page. Q. Which of the following is not a property that can hide the visibility of an element? Q. True or False: You will learn everything there is to know about HTML and CSS from CodeHS. Q. Who might need to look something up in HTML/CSS documentation? Q. The Inspector would be a useful tool for which of the following tasks? Q. Open https://start.duckduckgo.com in a new window. You will need to refer to it to answer the following questions. Did you open https://start.duckduckgo.com in a new window or tab? Ans: Yes Q. Open the website for the Nelson Mandela Metropolitan Art Museum in a new tab (link below). http://www.artmuseum.co.za/ Did you open the website in a new window? Ans: Yes Q. True or False: You can only transition one property at a time. Q. Which of the following would you use an IFrame for? Q. Why is it important to avoid repetitive code while creating a website? Q. Which of the following settings will not make an element invisible? Q. True or False: Only CSS has online documentation because it is a more complex language than HTML. Q. True or False: None of the changes you make in the Inspector will be saved. Q. Which of the following defines border thickness so that the top and bottom borders are 10px thick and left and right borders are 5px thick? Q. True or False: If you are adding your own CSS sheet, make sure your CSS file comes before the Bootstrap CSS file. Q. Fill in the blank: All site content needs to be inside a ________ div to make the content responsive. Q. True or False: The number of columns in a row depends on the device that the website is being viewed on. Q. Which of the following is not part of the Design Cycle? Q. What is the first step of the Design Cycle? Q. Which of the following is not a strategy to help build empathy for your users? Q. Why is it important to maintain a beginner’s mindset while building empathy for your user? Q. What is the goal of the “define” step of the design cycle? Q. Which of the following does not need to be included in a POV statement? Q. Which of the following is NOT a good method for group brainstorm? Q. What is a prototype? Q. Which of the following is NOT a good testing method? Q. What is the second step of the design cycle after you develop empathy for your users? CodeHS HTML AnswersBefore solving HTML related problems let us answer a few basics that you must know: Q. Who writes the HTML that brings the site to life? Q. What does HTML stand for? Which of the following is a valid HTML tag? Q. Which of the following is an example of metadata about a webpage? Q. What is the function of the <br> tag? Q. Inspect the picture of the duck in the middle of the page. You should see that it is actually a link (<a>). What is this a tag’s class? Ans: logo_homepage Q. What kind of element has the ID search_form_input_homepage ? Q. What is the ID of the body tag? Q. Which of the following is the correct HTML code to create a hyperlink that displays and links to google.com? Q. Which of the following lines of HTML code will insert an image into a webpage? Q. Which of the following HTML code snippets would produce the following web page: Apples Bananas Oranges Q. Which of the following tags defines a table row? Q. Which of the following tags defines a table header? Q. Which of the following is the proper format for an HTML tag? Q. What is generated from the following HTML code <h1>Hello</h1> <h3>Hello</h3> <h6>Hello</h6> Q. Inspect the menu item that says “The Museum” at the top of the page. What did this web developer use to create the navigation bar? Q. Use the inspector to inspect one of the exhibit tiles at the bottom of the page. What did this web developer use to create these tiles? Q. Inspect the large picture in the middle of the page. What class does this element have? Q. Open Calvin’s homepage in a new tab or window: http://calvin.codehs.me/ Have you opened http://calvin.codehs.me/ in a new tab or window? Q. Inspect the body. What is the background color? Q. What is the value for the attribute display for the <h1> tag that says “Welcome to Calvin’s Homepage”? Q. Inspect the picture of Karel, which is the first picture on the page. When you look at its style, you should see it has the width:250px Click on 250px. Change it to 800px. What happens? Ans: The picture gets bigger. Q. Which of the following is not a part of the box model? Q. Which of the following HTML code snippets will generate the following table? Q. Which of the following HTML code snippets is the proper way to set the background color of a <h1> tag to be blue? Q. Which of the following is a valid color in HTML? Q. Assume you have two files for your website, and these files exist in the same folder: index.html about.html Which of the following is the proper way to link to the about.html page from the index.html page? Ans: <a href=”about.html”>About This Site</a> Q. What are IFrames? Q. True or False: It is possible to embed any website inside IFrames. Q. You are trying to apply the same style to several different elements in a block, with line breaks before and after. Which tag should you use? Q. What is the function of the div tag? Q. Which of the following selects all elements with the class footer that are inside of divs? Q. Which of the following selects all tags that are immediate children of div tags? Q. Which of the following correctly uses div to style multiple elements the same way? Q. What is the difference between <span> and <div>? Which of the following selects all p tags with the class alert and makes them red? Q. How can I select all h1 tags that are immediate children of div tags? Q. What is the reasoning behind the Don’t Repeat Yourself principle? Q. What are some ways to cut down on repetitive code in your website? Q. Which of the following will turn the h1 tag blue as the mouse hovers over it? Q. Which of the following will insert an exclamation point after every h2 element? Q. Which of the following will result in this button grouping? (left, middle, right) Q. Which of the following classifies as metadata about a webpage? Q. 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? Q. What is the result of the following HTML code: <ol><li>Bread</li> <li>Milk</li> <li>Eggs</li> </ol> Q. 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? CodeHS CSS AnswersBefore solving CSS related problems let us answer a few basics that you must know: Q. Who writes the CSS that brings the site to life? Q. Why do we use CSS? Q. What is the function of the Cascade in CSS? Q. In what order does the Cascade look at factors to determine which CSS rule to follow? Q. What is the font style of the span with the ID CSS? It can be found in the second paragraph, around the word “CSS”. Q. True or False: An image can have more than one CSS filter. Q. Which of the following is a valid CSS rule? Q. CSS Combinators Q. Which of the following is a valid CSS rule? Q. Options for Selecting Elements with CSS Q. The Box Model Q. EXAMPLE Box Model code Q. Filter Property Q. CSS Filter Property Examples Q. CSS Pseudo-Classes Q. Example Pseudo-Class Q. Pseudo-Class Format Q. CSS Pseudo-Element Q. Example CSS Pseudo-Element Q. CSS Pseudo-Element Format Q. CSS Visibility Property Q. CSS Opacity Property Q. Opacity Property- 0 Q. Opacity Property- 1 Q. CSS Display Property Q. Example Display Property Values Q. Display Property-None Q. Display Property-Inline Q. Display Property-Block Q. CSS Animation Properties Q. EXAMPLE CSS Animation code Q. CSS Interactions Q. Examples CSS interactions(hover) Q. EXAMPLE CSS Interactions(click) Q. img { width: 100px; height: 100px; transition: width 2s, height 2s; } img:hover { width: 200px; height: 200px; } What would be the resulting difference if the line transition: width 2s, height 2s; was removed from the first CSS rule? Ans: There would no longer be a smooth transition for the image:hover rule. CodeHS Advanced HTML & CSS AnswersLet us now solve very advanced HTML & CSS related problems that you must know: Q. Define index.html Q. Example code to Link HTML file to another HTML file Q. IFrame Q. Examples of IFrames Q. Explain <div> tag Q. <div> Example Q. Explain <span> tag Q. The difference between <span> and <div> Q. <span> Example Q. Descendant Selector (space) Q. Child Selector (>) Q. Parent Q. Sibling Selector (+) Q. The Don’t Repeat Yourself Principle Q. Ways to Reduce Repeated Code Q. Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels? Q. Which of the following code snippets will select all HTML elements with the class “alert” and set their color to be red? Q. 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? Q. CSS rules have a selector that defines which HTML elements the rule applies to. We’ve learned about the following CSS Selectors: Select by tag name Select by class name Select by id name Which of the following ranks the selectors from highest precedence to lowest precedence? Q. Which of the following statements are true about styling your web pages with CSS: I. Styling with CSS is more scalable than using style= on each HTML tag that you want to style II. You can create styles with CSS that are not possible using style= on an HTML tag Q. Suppose you have written a web page using HTML and CSS 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? Q. Assume you have two files for your website, and these files exist in the same folder: about.html style.css Which of the following is the proper way to apply the CSS code inside style.css to the about.html file? Ans: Inside about.html: <head> <link rel=”stylesheet” type=”text/css” href=”style.css”> </head> CodeHS HTML & CSS Solved ProblemsFinally, let us discuss few answers for the unsolved problems which you can find below: Q. Which of the following will turn the first letter of all p elements blue? Q. Which of the following selects images as the mouse hovers over them and sets their size to 350px by 350px? Q. For the given div, what is the size of the right padding? div { width: 10px; height: 10px; padding: 15px 10px 5px 20px; } Ans: 10px Q. Which of the following applies a grayscale filter to all images? Q. Which of the following defines an animation increase-font that increases the font size from 5px to 20px? Q. Which of the following applies an animation named grayscaleFilter over 10 seconds to every img tag? Q. Which of the following applies the invert filter to all images with the class “inverted”? Q. Which of the following defines an animation change color that changes the font color from green to red? Q. Which of the following will result in a smooth transition from green to red as the mouse clicks on h1 tags? Q. Suppose you are making a music streaming website and you want to make a page that displays a user’s music library. Which of the following is the proper HTML code to create the following table: Q. Suppose you have the following CSS rules: p { color: green; } .fire { color: red; } #title { color: blue; } What font color will the following HTML element have after being styled by the given CSS: <h1 class=”fire”>Welcome!</h1> Ans: Red Q. Suppose you have the following CSS rules: p { color: green; } .fire { color: red; } #title { color: blue; } What font color will the following HTML element have after being styled by the given CSS: <p class=”title”>My First Paragraph</p> Ans: Green Q. Suppose you have the following CSS rules: p { color: green; } .fire { color: red; } #title { color: blue; } What font color will the following HTML element have after being styled by the given CSS: <p class=”fire” id=”title”>Hello World!</p> Ans: Blue Q. Assume you have two files for your website, and these files exist in the same folder: home.html style.css Which of the following is the proper way to apply the CSS code inside style.css to the home.html file? Ans: Inside home.html: <head> <link rel=”stylesheet” type=”text/css” href=”style.css”> </head> CodeHS Bootstrap AnswersBefore solving Bootstrap related problems let us answer a few basic definitions & information you must know: Q. Define Bootstrap Q. What is the difference between .container and .container-fluid? Q. True or False: If you use Bootstrap’s framework for your site, you can’t add your own CSS rules. Q. Yes or No. It is impossible to have more than one jumbotron on a given page. Q. Which of the following creates a responsive jumbotron on your website? Q. How many columns fit in a single row in the Bootstrap grid system? Q. <div class=”row”> <div class=”col-sm-6″>1</div> <div class=”col-sm-6″>2</div> </div> What is the smallest device that will display these columns side by side? Ans: Tablet Q. What is the correct way to add a default-styled button to a <a> tag? Q. Which of the following will correctly display a page header with subtext? Q. Which of the following correctly creates a thumbnail of the CodeHS logo that links to https://codehs.com? Q. Which of the following creates a table that is responsive to screens of different sizes? Q. Which page should the following nav-tabs be added to? <ul class=”nav nav-tabs”> <li><a href=”home.html”>Home</a></li> <li class=”active”><a href=”profile.html”>Profile</a></li> <li><a href=”messages.html”>Messages</a></li> </ul> Ans: profile.html Q. Fill in the Blank: Contents of a navbar need to go inside a _______ div. Q. Why might you decide to use a dropdown menu on your website? *To group options together in a way that makes sense *To have a simple interface without too many buttons *To save space and keep a clean website layout Ans: All of the above Q. True or False: It is not plagiarism to copy code from Bootstrap examples to your own website. Q. If you are adding your own CSS sheet, make sure your CSS file comes _____________ the Bootstrap CSS file. Q. All site content needs to be inside a ________ ____ to make the content responsive. Q. <div class=”row”> <div class=”col-sm-6″>1</div> <div class=”col-sm-6″>2</div> </div> What is the largest device that will display this row in stacked columns? Ans: Smart Phone Q. Which of the following is not a Bootstrap component covered in this unit? Q. Which of the following does not correctly create a navigation bar? Q. Fill in the blank: ________ are a great way to pack more options into a navigation bar while keeping the interface clean and simple. Q. Yes or No. Bootstrap example websites can be used as a starter template for your own projects. Q. True or False: Only people who are new to Bootstrap need to look at the documentation. Q. True or False: Bootstrap example websites can be used as a starter template for your own projects. About CodeHS Web DesignCodeHS Web design is an online course conducted by its educators that includes 70+ lessons, 55+ videos, 145+ exercises, 55+ offline Handouts & about 17+ challenges to participate. >> Check CodeHS Answers For Other Hot Topics Here << That’s it… We hope you are able to find CodeHS Web Design answers key by browsing with us. If it helps please share it with your friends. Thank you! |