Which tag inserts a line break in HTML?
MCQs — Programming Fundamentals
Practice questions for Computer Science.
Which tag is used to create a paragraph?
The
tag is used for paragraphs.
What is special about the
tag?
is an empty tag, so it does not need a closing tag.
Which code displays the word Hello in bold?
The tag makes text bold and must be closed with .
Which pair of tags makes text bold and italic respectively?
makes text bold and makes text italic.
Which tag is used to display an image on a web page?
The tag places an image on the page.
Which attribute of the tag gives the file name of the image?
The src (source) attribute tells the browser which image file to show.
What is the purpose of the alt attribute in the tag?
The alt text describes the image and appears when the image cannot load.
Which code correctly displays the picture file logo.png?
The tag with the src attribute is the correct way to show an image.
Which statement about the tag is correct?
is an empty tag, like
.
Which tag creates a bulleted list?
- creates an unordered (bulleted) list.
Which tag creates a numbered list?
- creates an ordered (numbered) list.
Which tag is used for each item inside a list?
Each item of a list is written inside
What is the difference between
- and
- ?
Unordered lists show bullets; ordered lists show numbers.
Which code shows a numbered list with two items, Red and Blue?
A numbered list uses
- with one
- for each item.
Which tag creates a table in HTML?
The