![]() ![]() Here, you can see a screenshot of the web environment for developing JavaScript code. If you want to write JavaScript for a Web page somewhere else, you can always use this environment to develop, your code then copy it into your Web page later. However, for getting you started, we have a slightly more novice friendly environment, which we hope will help you write and debug your code more easily. If you use some other tool to write a Web page, you can generally write JavaScript code in your Web page easily, though the specifics will depend on the tool. In CodePen, you can write JavaScript in the right frame, which we have highlighted here. This function concatenates the words together into one string that has value1 first, followed by a blank, followed by value2, followed by a blank, and followed by value3.įor example, the call phrase3words(“smile”,”at”,”everyone”) would calculate and return the string “smile at everyone”.Ĭonsider the following code that uses the phrase3words function.Now that you're learning a bit about JavaScript, you might wonder where you would write it, or how you would run it. The function phrase3words has three parameters named value1, value2 and value3. Consider a function named phrase3words that puts three words together into a phrase that is of type string with blanks between the words. var answer = “ “ + value1 + ” ” + value2 + ” ” + value3.var answer = value1 + value2 + value3.var answer = value1 + ” ” + value2 + ” ” + value3.var answer = value1 ” ” value2 ” ” value3.Which one of the following is the correct code to replace the line containing ? In the HTML file for each of the list items in this list I write the following (with text-here replaced by the actual item for the list item).Īnswer: In your web page’s CSS, you need to add. Suppose I already have a particular list in a table and I want to center this list using CSS. Which of the following CSS choices will turn only the list items for Vegetables (both broccoli and spinach) to green as shown below? Consider the following lists created with HTML. Using CSS, which one of the following is the correct way to change the h2 header to be blue and underlined? Make it possible to click on an image and go to another website.Change the size of all the images on a web page to the same size.Insert an actual image into the web page instead of just a link to an image somewhere else on the web.What new formatting option will you gain by including CSS? You are planning to add CSS to a web page that was written with HTML and has images on the page. Change the color of all lists to a different color easily.You are planning to add CSS to a web page that was written with HTML and has lists on the page. Which one of the following is HTML that results in this phrase displayed?Īnswer: Programming Foundations with JavaScript, HTML and CSS Week 1 Quiz Answers Styling with CSS Quiz Answer Consider the following phrase that is displayed on a web page: Consider the following HTML segment for a web page. Which one of the following HTML tags is NOT a metadata element? The tag should be placed at the end of line 6. ![]() The tag should be placed at the end of line 7.The tag should be placed at the end of line 6.Which one of the following best describes how to fix the html so the web page is displayed as intended? Consider the following HTML that is showing just the body HTML code for a website with line numbers.īut the intended webpage should be displayed as Which one of the following shows how this HTML segment is displayed on a web page? Which of the following is the HTML to generate this line? The rest of the words have no bold or emphasis. Time for Back to School, SALES GALORE!, Coupons online, open earlyĪs you can see, “Back to School,” is shown in bold, “SALES GALORE!” is shown in bold and italics, and “Coupons online,” is also shown in bold. Consider the following line from a web page: Which of the following choices is the most likely for how this file would be displayed as a web page? Consider the following simple HTML file shown below. Introduction to HTML | Full-Stack Web-Development Course #5 Using HTML – Formatting Text Quiz Answers ![]()
0 Comments
Leave a Reply. |