Web technologies: do both ASP and ColdFusion support defining custom tags within an HTML page to encapsulate server-side behavior?
-
AIncorrect
-
BCorrect
-
COnly ColdFusion supports custom tags
-
DOnly ASP supports custom tags
-
ECustom tags are client-side only, not server-side
Answer
Correct Answer: Incorrect
Explanation
Introduction / Context: Older web platforms implemented server-side logic in different ways. ColdFusion (CFML) popularized a tag-based syntax (for example,
Given Data / Assumptions:
- ColdFusion provides first-class custom tags written in CFML; developers can create their own tag libraries.
- Classic ASP uses <% ... %> script blocks and COM components; it does not natively define custom HTML-like tags as a built-in feature.
- ASP.NET (a different framework) later introduced server controls and custom controls rendered as tags, but that is not classic ASP.
Concept / Approach: The phrase “both ASP and ColdFusion allow coding custom tags” implies parity that did not exist in classic implementations. ColdFusion’s design is tag-centric and includes a custom tag mechanism. Classic ASP relies on script blocks and can be extended via COM objects, not by defining new server-side tags in HTML. While modern ASP.NET supports tag-like server controls, conflating this with classic ASP leads to an incorrect generalization.
Step-by-Step Solution:
Identify ColdFusion’s native custom tag feature (CFML).Contrast with classic ASP’s scripting model using <% %> and COM.Recognize that ASP.NET (distinct from classic ASP) later introduced tag-like server controls.Conclude that the blanket statement about “both ASP and ColdFusion” is inaccurate for classic ASP.Verification / Alternative check: Inspect ColdFusion docs on custom tags; compare with classic ASP references that center on scripting and objects, not tag libraries.
Why Other Options Are Wrong:
- Correct: Would only be true if referring specifically to ASP.NET server controls, which the prompt does not state.
- Only ASP supports custom tags: opposite of reality for classic ASP.
- Client-side only: Custom tags discussed here are server-side constructs producing HTML; client-side custom elements (Web Components) are unrelated.
Common Pitfalls: Confusing classic ASP with ASP.NET; assuming any server extension equals tag-based custom tags.
Final Answer: Incorrect