What is the purpose of the 'viewport' meta tag in HTML? MCQ with Answer and Explanation

What is the purpose of the 'viewport' meta tag in HTML?
A. To set the zoom level
B. To define the initial scale
C. To control the layout on mobile browsers
D. All of the above
Answer: Option D
Solution (By JKSSB Mock Tests)
The viewport meta tag is used to set the visible area and scaling for mobile devices, including width, initial scale, etc.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1
Which of the following is a method to improve the security of a website by preventing attacks like XSS?
A. All of the above
B. Input validation
C. Content Security Policy (CSP)
D. Output encoding

Correct Answer: Option A


Explanation:
Output encoding, input validation, and CSP are all effective defenses against XSS attacks.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the default port number for HTTP?
A. 443
B. 21
C. 80
D. 25

Correct Answer: Option C


Explanation:
Port 80 is the default port for HTTP communication. Port 443 is for HTTPS, port 21 for FTP, and port 25 for SMTP.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following is a protocol used for network time synchronization?
A. SNTP
B. NTP
C. DNS
D. Both

Correct Answer: Option D


Explanation:
NTP (Network Time Protocol) and its simplified version SNTP are used to synchronize computer clocks over a network.

This question belongs to: Computer Internet and Web Technologies