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).
Which of the following statements regarding XML is/are True ?
(A) XML is a set of tags designed to tell browsers how to display text and images in a web page.
(B) XML defines a syntax for representing data. but the meaning of data varies from application to application
(C) < Letter >, < LETTER > and < letter > are three different tags in XML.
Choose the correct answer from the options given below:
Which of the statements given below is/are correct?
It is always important and useful to include an 'alt' attribute on 'img' tag in HTML because
A. users who cannot see the image due to vision impairment can have a textual description of the image (which can be spoken aloud by a screenreader).
B. If the image fails to load (slow connection, broken path, etc.) then alt text is displayed instead.
C. SEO (Search Engine Optimization) benefits.
Choose the correct answer from the options given below :
Which tag is used to enclose any number of javascript statements in HTML document?
The definitions in an XML document are said to be_______ when the tagging system and definitions in the DTD are all in compliance.
How many different levels of heading does HTML support?