Which of the following statements is/are TRUE ? (a) In HTML, character entities are used to incorporate external content into a web page, such as images. (b) Once a web server returns a cookie to a browser, the cookie will be included in all future requests from the browser to the same server.
Neither (a) nor (b) is TRUE.
The question asks us to evaluate two statements regarding web technologies: HTML character entities and web cookies. Let's analyze each statement carefully.
Statement (a) says: "In HTML, character entities are used to incorporate external content into a web page, such as images."
Based on this, character entities are used for displaying special characters within the HTML document itself, not for linking or embedding external files like images. Therefore, statement (a) is FALSE.
Statement (b) says: "Once a web server returns a cookie to a browser, the cookie will be included in all future requests from the browser to the same server."
Because cookies are subject to expiration, path restrictions, and user deletion, they are not necessarily included in *all* future requests indefinitely, even to the same server. The statement is too absolute. Therefore, statement (b) is FALSE.
Based on our analysis:
Since neither statement (a) nor statement (b) is true, the correct option is the one stating that neither is true.
| Statement | Evaluation | Reason |
|---|---|---|
| (a) HTML character entities for external content like images. | FALSE | Character entities display special characters; <img> tag embeds images. |
| (b) Cookies included in all future requests to the same server. | FALSE | Cookies expire, have path restrictions, and can be deleted. |
Therefore, neither statement (a) nor statement (b) is TRUE.
| Concept | Description | Used For |
|---|---|---|
| HTML Character Entities | Codes starting with & and ending with ; | Displaying reserved characters or characters not easily typed. |
| <img> Tag | HTML element with src attribute | Embedding images into a web page. |
| Web Cookie | Small piece of data sent from server to browser | Maintaining state, remembering users, storing preferences across requests. |
| HTTP Request Header (Cookie) | Part of the request sent by the browser | Transmitting stored cookie data back to the server. |
Let's look at some related concepts to further understand HTML and web communication:
They can also be classified by their origin:
Understanding these details helps clarify the limitations of statement (b).
In HTML, month attribute defines a control with ______
Which of the following tag creates a checkbox for a form in HTML?
In a HTML form, which of the following input control is used for allowing users to make multiple selections?
What is the full form of SGML?
Which of the following is NOT a pair tag in HTML?