Exam practice
True/False Questions
A mobile website is designed for devices with larger screen sizes and no touch interfaces. False
HTML is used to define the structure of web pages, while CSS is used to control the layout and styling. True
HTTP/2 is faster than HTTP/1.1 because it uses the TCP protocol instead of UDP. False
An IP address is a human-readable name like "google.com" used to identify a computer on the internet. False
An HTML tag that begins with < and ends with > is called a hyperlink. False
A domain name can be directly entered into a web browser to access a website without needing the IP address. True
The <img> tag is used to create forms in HTML. False
Web browsers can directly interpret JavaScript code and execute it on the client-side. True
HTTP status code 404 means "Page Not Found." True
An element inside another element in HTML is called a child element. True
Fill in the Blank
A website is a collection of related webpages organized into a single entity.
HTML is the markup language that is standard for creating web documents.
An packet contains the "To" and "From" IP addresses along with the actual data being sent over the internet.
Document markup adds special markings to a document that provide additional information about formatting, links, and images.
The organization responsible for developing web standards, including HTML, is called W3C.
A(n) void tag does not require a closing tag and only needs an opening tag.
The src attribute in the <img> tag specifies the URL of the image to be displayed.
The method attribute with a value of GET is used to send form data to the server via a URL.
The <h1> tag is used to add a heading level one (the largest heading) in HTML.
HTTPS is the protocol that secures HTTP traffic by encrypting data between the browser and web server.
An HTML tag used to define a list item within an unordered list is <li>.
Linkrot is the term for a once valid link that now returns a "404 Page Not Found" error.
Multiple Choice Questions
What is the standard protocol used for communication between a web browser and web server?
C. HTTP
Which of the following best describes a responsive web design?
C. A design that adapts to different screen sizes and devices.
Which HTML tag is used to create a hyperlink?
A. <a>
The DNS system is responsible for:
B. Converting domain names into IP addresses.
In HTML, which tag is used to display an image?
B. <img>
Which of the following is NOT a correct HTML tag for a table element?
D. <li>
The attribute used to define a hyperlink's destination is:
B. href
Which of the following is a valid HTML comment syntax?
B. <!-- Comment -->
The primary difference between GET and POST methods in forms is:
A. GET sends form data in the URL, POST sends it in the body.
A 301 status code indicates:
C. Permanent redirect.
Which HTML element is used to define the structure of a form?
B. <form>
Which HTML tag is used to create a paragraph?
B. <p>
In a web form, which of the following input types is used to let a user select one option from a group?
C. Radio button
Which of these is used to control the look and feel of a webpage?
C. CSS
A file transfer protocol that allows files to be uploaded and downloaded over the internet is:
B. FTP
An HTML document starts with which declaration?
B. <DOCTYPE html>
What does the "alt" attribute in an <img> tag specify?
B. The description of the image for accessibility.
The difference between an ordered and unordered list is:
A. Ordered lists use numbers; unordered lists use bullets.
Which of the following defines a fragment identifier in a URL?
A. #
What is the role of the <meta> tag in the <head> section of an HTML document?
A. To define the metadata.
What does the "action" attribute in the <form> tag specify?
A. The URL to send the form data.
What HTML element is used for adding a video to a webpage?
B. <video>