Sololearn HTML course HTML Basics answers
Here are all the questions and answers that I hope will help you learn HTML course.
Other course answers
Sololearn HTML course Overview answers
Sololearn HTML course Challenges answers
Sololearn HTML course HTML5 answers
6.1 Lesson
Headings, Lines, Comments
Question:
HTML Headings
What tags are used to indicate headings?
Answer:
h1 - h6
Question:
Horizontal Lines
How do you create a horizontal line in HTML?
Answer:
<hr />
Question:
Comments
Make the text an HTML comment:
Answer:
<!-- This is a comment -->
7.1 Lesson
Paragraphs
Question:
The <p> Element
Drag and drop from the options below to create paragraphs:
Answer:
<p>HTML is easy!</p>
<p>HTML is fun!</p>
Question:
Single Line Break
What tag is used to create a line-break without an extra space between the text blocks?
Answer:
br
Question:
Single Line Break
Fill in the blanks:
Answer:
<html>
<body>
<p>This is a paragraph </>
<p> This is </> a line break </p>
</body>
</html>
8.1 Lesson
Text Formatting
Question:
Formatting Elements
Which two tags below make the text visually bold?
Answer:
b and strong
Question:
Formatting Elements
Fill in the correct tags:
Answer:
<strong>important text</strong>
<sub> subscripted text</sub>
9.1 Lesson
Blog Project: About Me
Question:
Formatting Text
Fill in the blanks to form a valid HTML:
Answer:
<p>
Some quote <br />
<i> - by some author</i>
</p>
10.1 Lesson
Elements
Question:
HTML Elements
General HTML elements consist of:
Answer:
opening tag, content, closing tag
Question:
HTML Elements
Fill in the blanks:
Answer:
<html>
<head>
<title>Title</title>
</head>
<body>
<p>Some text</p>
</body>undefined
</html>
11.1 Lesson
Attributes
Question:
HTML Attributes
What is the role of an attribute in HTML?
Answer:
it modifies the tag
Question:
Attribute Measurements
What measurement units can be used for the width attribute?
Answer:
pixel and %
Question:
The Align Attribute
What attribute is used to align the contents of an element to the right, center or left?
Answer:
align
Question:
Attributes
Which attribute is used to align the content of a paragraph to the right?
Answer:
<p align="right">
12.1 Lesson
Images
Question:
The <img> Tag
What tag should be used to add an image?
Answer:
<img/>
Question:
Image Location
What attribute should be used to add an image URL?
Answer:
src
Question:
Image Resizing
What two attributes can be used to resize images inside HTML code?
Answer:
height
width
Question:
Image Border
Fill in the blank:
Answer:
<img src="tree.jpg" alt="" />
13.1 Lesson
Lists
Question:
HTML Ordered Lists
Enter the tag corresponding to the list item:
Answer:
<li>
Question:
HTML Unordered List
Fill in the blanks:
Answer:
<ul>
<li>Item 1 </li>
<li>Item 2</li>
</ul>
14.1 Lesson
Blog Project: My Skills
Question:
My Skills
Fill in the blanks to create a list in which the first item links to www.sololearn.com.
Answer:
<ul>
<li>
<a href="https://www.sololearn.com">A</a>
</li>
<li>B</li>
</ul>
15.1 Lesson
Tables
Question:
Creating a Table
What tag is used to create columns in a row?
Answer:
td
Question:
The border and colspan Attributes
What attribute is used to expand a cell for two or more cells?
Answer:
colspan
Question:
Colspan Color
Fill in the blanks:
Answer:
<table>
<tr>
<td>Text 1</td>
<td>Text 2</td>
</tr>
</table>
Question:
The align and bgcolor Attributes
What attribute is used to change the color of a cell?
Answer:
bgcolor
16.1 Lesson
Links
Question:
The <a> Tag
What tag is used to create a link to a web page?
Answer:
<a href="">
Question:
Creating Your First Link
Which attribute of the link tag contains the URL location that you are trying to link to?
Answer:
href
Question:
The target Attribute
Which value of the target attribute makes the link open in a new tab or a new window?
Answer:
<a href="2.html" target="_blank">
17.1 Lesson
Blog Project: My Schedule
Question:
My Schedule
Fill in the blanks to create a valid table:
Answer:
<table>
<tr>
<td>A</td>
<td>B</td>
</tr>
</table>
18.1 Lesson
Inline and Block Elements
Question:
Types of Elements
Which of the following are block level elements?
Answer:
h1
div
Question:
Types of Elements
Can you insert a block element inside an inline element?
Answer:
No
19.1 Lesson
Forms
Question:
The <form> Element
Which attribute contains the URL address of the webpage that is loaded after a form submission?
Answer:
action
Question:
The method and name Attributes
Which value for the type attribute should be used for a password field?
Answer:
<input type="password">
Question:
Form Elements
Fill in the blanks:
Answer:
<form method="POST" action="#">
<input type="text" name="name">
<input type="submit" name="submit">
</form>
Question:
Form Elements
Which value for the type attribute turns the input tag into a submit button?
Answer:
submit
20.1 Lesson
Blog Project: Contact Form
Question:
Contact Form
To support multiple lines of input you should use the following element:
Answer:
textarea
21.1 Lesson
HTML Colors
Question:
HTML Colors!
What characters does the hexadecimal system consist of?
Answer:
0-f
Question:
HTML Color Model
Which color model does HTML use?
Answer:
RGB
Question:
Color Values
What would be the value of the color black in HTML, expressed by 6 hex characters?
Answer:
#000000
Question:
Background and Font Colors
Set the background color to white:
Answer:
<body bgcolor="#FFFFFF">
22.1 Lesson
Frames
Question:
The <frame> Tag
What attributes does the frameset tag require to indicate its size?
Answer:
rows and cols
Question:
Working with Frames
Which attribute prevents a frame from resizing?
Answer:
noresize
23.1 Lesson
Blog Project: Putting It All...
Question:
Blog Project
The sections in the blog project are created using the following tag:
Answer:
div
24.1 Lesson
Module 2 Quiz
Question:
When formatting text, can you get the same result when using different tags?
Answer:
yes
Question:
What does the href attribute contain?
Answer:
the URL of the page to be transferred
Question:
Which tag contains the cell tags besides the table tag?
Answer:
<tr>
Question:
What does HTML stand for?
Answer:
Hyper Text Markup Language
Question:
Choose the correct HTML tag for the largest heading:
Answer:
<h1>
Question:
Which of these tags are all table tags?
Answer:
<table><tr><td>
Question:
Fill in the blanks:
Answer:
<html>
<body>
<form method="POST">
<img src="image.jpg" /><br />
<input type="text" name="name">
<input type="submit" name="Submit">
</form>
</body>
</html>
Question:
Align the text of the paragraph to the right:
Answer:
<html>
<body align="center">
<div align="right">
<p>This is a line of text</p>
</div>
</body>
</html>