In web development, what language is used primarily to define the presentation, layout, and visual styling of a web document written in HTML? MCQ with Answer and Explanation

In web development, what language is used primarily to define the presentation, layout, and visual styling of a web document written in HTML?
A. SQL
B. PHP
C. JavaScript
D. CSS
Answer: Option D
Solution (By JKExamLibrary)
CSS (Cascading Style Sheets) handles the layout, design, formatting, and presentation logic of web content.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1 Report Error
What specific feature distinguishes 'IMAP' from 'POP3' when handling email status adjustments, such as marking a message as 'read'?
A. IMAP lacks support for multi-folder organization schemas.
B. IMAP handles updates locally only, leaving the server state untouched.
C. IMAP completely blocks attachments from downloading.
D. IMAP synchronizes status updates directly back to the mail server, reflecting changes across all user devices.

Correct Answer: Option D


Explanation:
Because IMAP works directly on the mail server, any change in state (read, unread, flagged, moved) is synced to the server and visible across all connected devices.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
What is the purpose of the 'XMLHttpRequest' object in JavaScript?
A. To handle events
B. To parse XML documents
C. To send and receive data from a server asynchronously
D. To style web pages

Correct Answer: Option C


Explanation:
XMLHttpRequest is an API in JavaScript that allows web pages to make HTTP requests to servers asynchronously, enabling AJAX.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
Which of the following vulnerabilities involves hackers manipulating backend query inputs within web forms to gain unauthorized access to underlying corporate databases?
A. Cross-Site Scripting (XSS)
B. SQL Injection (SQLi)
C. Phishing Redirect
D. Denial of Service (DoS)

Correct Answer: Option B


Explanation:
SQL Injection occurs when malicious SQL statements are inserted into entry fields for execution, letting attackers manipulate database systems behind a website.

This question belongs to: Computer Internet and Web Technologies