In this course you will learn three key website programming and design languages: HTML, CSS and JavaScript. You will create a web page using basic elements to control layout and style. Additionally, your web page will support interactivity.
At the end of the course, you will be able to: 1. Define the purpose of HTML, CSS and JavaScript 2. Make a simple web page using HTML 3. Use CSS to control text styles and layout 4. Use CSS libraries such as Bootstrap to create responsive layouts 5. Use JavaScript variables and functions 6. Manipulate web page content using JavaScript 7. Respond to user input using JavaScript.
In this course, you will complete: 2 assignments writing HTML, CSS and JavaScript, each taking ~1 hour to complete 4 quizzes, each taking ~20 minutes to complete 1 programming exercise~30 minutes to complete multiple practice quizzes, each taking ~5 minutes to complete Participation in or completion of this online course will not confer academic credit for University of London programmes.
Enroll now on Coursera
Q1. A web browser is:
Q2. The world wide web is the same as the internet
Q3. HTML is used to define:
Q1. HTML files end with: (choose ALL that are correct)
Q2. The first web page went live in:
Q3. Word processors are ideal for editing HTML
Q1. In HTML, HT stands for:
Q2. In HTML, ML stands for:
Q3. True or False: The browser parses the HTML and decides how to display the page?
Q1. What is the purpose of a navigation bar?
Q2. Why is whitespace important?
Q3. What is the most important difference between HTML and most other document formats?
Q1. Images are typically stored as separate files, not embedded in the HTML document.
Q2. What are HTML attributes for?
Q3. True or False: HTML elements are hierarchical?
Q1. True or False: h1 tags contain meta data?
Q2. In good practice, which tags should all HTML documents have? Please select all that apply.
Q3. What happens to a web browser if the HTML is not correctly structured?
Q1. True or False: The HTML language changes over time?
Q2. True or False: It is best to use capital letters for tags
Q3. 20 year old HTML documents can be read by modern web browsers
Q1. What is the head section of an HTML document used for? Select all that apply
Q2. Which are examples of badly formed HTML?
1
1
1
Link
1
Q3. Inspect the code of a website you use regularly. Which tags can you find?
1
1
1
1
Q4. Which tag should you use for a numbered list?
1
1
1
1
Q5. Which is the correct attribute to use to tell the browser where to find an image?
1
href
1
src
1
&src;
1
Q6. Which are true about HTML documents?
1
tags to link from one document to another1
tags to link from one document to anotherQ8. Select the code which creates a list of links:
1
1
1
home
1
Q9. Select the most correct structure for an HTML document:
1
1
1
1
Q10. Which of the following tags are only associated with meta data? Select all that apply.
Q1. What does CSS stand for?
Q2. What is the tag we use to add an external CSS file?
Q3. What CSS property do I set to change the background colour of the page?
Q1. Which is not a font family?
Q2. Which font is normally used to display code?
Q1. Why should we customise links?
Q2. What is the purpose of a CSS selector?
Q3. a:hover is a CSS selector to select links that the user is hovering over
Q1. CSS classes only apply to one type of tag
Q2. HTML tags can have multiple classes
Q3. Which of the following is a definition of a new CSS class?
Q1. Why do we use bootstrap?
Q2. Bootstrap can be used along with my own CSS stylesheets
Q1. How many columns are in a standard boostrap grid?
Q2. How many col-md-3 columns fit in a standard boostrap grid?
Q3. How many parameters does the border property shorthand normally have?
Q4. Responsive web pages respond to user input
Q1. Select the correct way to link to an external CSS file
Q2. Which of the following puts blue text on a red background? (select all that apply)
1
color: #blue;
2 background: #red;
1
color: blue;
2 background: red;
1
color: #0000FF;
2 background: #FF0000;
1
font-color: blue;
2 background-color: red;
Q3. Which of the following is a serif font?
Q4. Which font would be used in the body region with the following CSS code?
1
2
3
4
5
6
7
.body { font-family: serif, sans-serif;
}
body {
font-family: sans-serif, serif;
}
Q5. What colour would the link text be with the following code:
In your HTML:
1
what colour am I?</a class="changeme">
In your CSS:
1
2
3
4
5
6
7
a {
color: blue;
}
.changeme {
color: red;
}
Q6. What colour would the text ‘what colour am I’ be with the following code fragment in the CSS file:
1
2
3
4
5
6
7
8
9
10
11
a {
color: green;
}
.changemeagain {
color: yellow;
}
.changeme {
color: red;
}
and the following code fragment in the HTML file:
1
what colour am I?</a class="changemeagain changeme">
Q7. How many columns are being used from the bootstrap grid here?
1
2
3
4
Q8. How many rows will you see on a very narrow screen such as a phone?
Q9. In this extract of a CSS file, what are the selectors? (select all that apply)
1
2
3
4
5
6
7
8
9
10
11
.test {
color:red;
}
.body {
color:#ff00ff;
}
#curveball {
color:green;
}
Q10. What are advantages of using bootstrap? (select all that apply)
Q1. When you interact with a web page it has to reload from the server every time you make a small change
Q2. What is the relationship between Java and JavaScript
Q3. JavaScript is a language only used for handling mouse events.
Q1. What does the onclick attribute do?
Q2. What is wrong with this call to alert? alert(Hello World);
Q3. What is the purpose of semi-colons (;) in JavaScript
Q1. What is the console used for?
Q2. What does this code do?
1 a.b();
Q3. What are objects?
Q1. What is jQuery useful for?
Q2. What is $?
Q3. What does this code do?
1 $(“.button”).html(“hello”);
Q1. Why would you create your own function?
Q2. What is a script tag used for?
Q3. What is wrong with the following code:
123 function setHTML(text){ $(“#myelement”).html(mytext); }
Q1. With JavaScript you can change the behaviour of an element when it is clicked on at any time as the web page is running
Q2. What do you call a function that you pass directly into another function without giving it a name?
Q3. What does this code do? a(function (){console.log(“c”)});
Q1. Which language is used to add real time interaction to web pages?
Q2. Which of these aspects of a web page would use JavaScript functions?
Q3. How would you write a function that takes an argument, and you can call like this: “say(‘hello’);”?
1
2
3
function say(word){
alert(word);
}
1
2
3
function say{hello}(
alert(hello);
)
say hello(){ alert(hello); }
1
2
3
say hello(){
alert(hello);
}
Q4. To implement a hover event you need to do something when the mouse enters and then change it back when it exits. The jQuery hover function takes 2 functions as arguments, how would you change the color as you hover over it?
1
2
3
4
5
$("#title").hover(enter(){
$("#title").css("color", "red");},
exit(){
$("#title").css("color", "black");
})
1
2
3
4
5
$("#title").hover(function(){$("#enter").css("color", "red");
},
function(){
$("#exit").css("color", "black");
})
1
2
3
4
$("#title").hover(function(){
$("#title").css("color", "red");
$("#title").css("color", "black");
})
1
2
3
4
5
6
$("#title").hover(function(){
$("#title").css("color", "red");
},
function(){
$("#title").css("color", "black");
})
Q5. The HTML document object has a function “getElementById”. How would you get the element with id “title”?
1
getElementById(document, "title");
1
title.getElementById("document");
1
document.getElementById("title");
1
document(“getElementById”, "title");
Q6. What is wrong with this jquery code?
1
$("h1.title").html($("#chapterTitle"+3));
Q7. How would you make the element react when the mouse moves into it?
1
1
1
Hello</mouseenter id="title" >
1
Q8. What does this code do?
1
2
3
4
5
function no(){ $(this).html("I'm offended");
}
$("#myfavouritebit").mouseleave(no());
Q9. How do you show the content of an html element in popup dialog?
1
$("#title").alert(html());
1
$("#title").alert();
1
$("#title").html(alert());
1
alert($("#title").html());
Q10. The jQuery function “css” sets css parameters of an element. How would you change the background color of all list items with class “emphasised”?
1
$(“css”).li.emphasised("color", "red");
1
li.emphasised.css("color", "red");
1
$('li, .emphasised').css('background', 'red')
1
$('li.emphasised').css('background', 'red')
Q1. What is a variable?
Q2. What is the correct way to create a new variable called “a”?
Q3. Once you set the value of a variable you cannot change it.
Q1. What does this code do?
1
counter = counter + 1;
Q2. What does this code print out?
1
var myVar = 1;console.log(myVar + 1);
Q3. What does this code print out?
1
2
3
var myVar = 1;
myVar + 1;
console.log(myVar);
Q1. What does this code produce? “one” + 2
Q2. How would you implement a backwards button?
Q1. What does an if statement let you do?
Q2. What does this code mean? (myVariable < 3)
Q3. What does this code do? var myVar = 4;if (myVar > 4){ console.log(“yes”);}
Q1. What does setInterval do?
Q2. What values can a boolean variable have?
Q3. What does this code do?
1 excited = !excited;
Q1. What does this code do? $(this).width()*0.3
Q2. What is “this” in JavaScript
Q3. What does this code do? $(“.scene”).
Q1. What does this code do?
1 var a = 3;
Q2. If you had a variable called “a” How would you set a new variable “b” to one more than a?
Q3. Which of these is a correct if statement?
Q4. To create a condition where two things are equal we use two equals signs == (to distinguish it from one = which sets the value of a variable). How would you write a condition to check if variable a is one less than variable b?
Q5. If you are going backwards through 4 images with a counter, how do you loop back to the end when the counter goes below 1?
Q6. How would you set an interval so function “f” gets called every half second?
Q7. What is content of the element with id “number” at the end of this code?
123 var myVar = 1;
$(“#number”).html(myVar+1);
myVar = myVar + 1;
Q8. How do you save the content of an html element to a variable?
Q9. After this code, what is the content of element “title”?
12345678
var number = 1;
if(number == 1){
$(“#title”).html(“chapter” + number + 1);
}
if(number == 2){
number = number + 2;
}
$(“#title”).html(“chapter” + number);
Q10. What gets printed out by this code? (select all that are printed)
12345678910111213141516
var a = 1;
if (a == 1){
console.log(“one”);
a = a + 1;
}
if (a == 1){
console.log(“two”);
}
a = a + 1;
if (a == 2){
I hope this Responsive Website Basics: Code with HTML, CSS, and JavaScript Coursera Quiz Answers would be useful for you to learn something new from the Course. If it helped you, don’t forget to bookmark our site for more Quiz Answers.
This course is intended for audiences of all experiences who are interested in learning about new skills in a business context; there are no prerequisite courses.
Keep Learning!
Former Vice President Phelekezela Mphoko has died aged 84, presidency spokesman George Charamba has confirmed.…
The Zimbabwe School Examinations Council (ZIMSEC) opened its online portal for Grade 7 results…
2024 ZIMSEC Grade 7 Results Now Out The Zimbabwe School Examinations Council (ZIMSEC) has officially…
We’re bringing free WiFi to different parts of Zimbabwe to help you access eduzim.co.zw for…
Sadza is a simple, hearty dish that forms the backbone of many Zimbabwean meals. It's…
Caesar Salad A classic Caesar salad is a simple yet flavorful dish with crisp romaine…