Introduction to HTML:Quiz
Quiz
What is the function of the tag below?
<title> Jane's Website </title>
Answer: It stores the webpage title for browser and search engine results
This HTML anchor tag will not work. Why?
<a href=https://www.codecademy.com/>click here</a>
Answer: The URL is missing quotation marks
Below is a paragraph element, what is a benefit of inputting text into one?
Answer: It allows the text to be styled
What will happen if you click on this image on a webpage?
<a href="http://www.pgtips.co.uk/">
<img src="http://upload.wikimedia.org/wikipedia/commons/c/c4/Lleyn_sheep.jpg" />
</a>
Answer:You will be redirected to http:\/\/www.pgtips.co.uk
What is the difference between HTML and CSS?
Answer: HTML gives a webpage structure. CSS provides styling.
For this tag to display an image, what must you replace "#" with?
<img src="#">
Answer: An image URL
HTML is a "markup language." What does that mean?
Answer: It turns text into images, links, tables, lists more
What element(s) will you find inside a body tag?
Answer: Headings, paragraphs, links and images
What is the purpose of this code?
<!DOCTYPE html>
Answer: Tells the web browser what language to expect (in this case, HTML)
Where in your HTML document should you include this code?
<!DOCTYPE html>
Answer: The very first line
Which of these lines of HTML, by default, will display the text with the largest font size?
<p>Welcome to New York</p>
<h4>Welcome to New York</h4>
<h1>Welcome to New York</h1>
<span>Welcome to New York</span>
Answer: Line 3