HTML is used to create

2011

HTML is used to create

Answer: C. web pageConceptHTML expands to HyperText Markup Language. A markup language is a notation that wraps content in tags so that each part of a document is labelled for…

  1. A.

    machine language program

  2. B.

    high level program

  3. C.

    web page

  4. D.

    web server

Attempted by 60 students.

Show answer & explanation

Correct answer: C

Concept

HTML expands to HyperText Markup Language. A markup language is a notation that wraps content in tags so that each part of a document is labelled for what it is — a heading, a paragraph, a list, a link, an image — and a rendering program can interpret and display it. Markup supplies no variables, arithmetic, conditionals or loops: it describes a document, it does not instruct a processor to compute anything.

Applying it to this question

An HTML file is plain text whose content sits inside nested elements such as <html>, <head>, <body>, <h1>, <p>, <a> and <img>. A browser fetches that text, parses the tags into a Document Object Model tree, applies styling, and paints the result in its viewport. The artifact that this authoring-and-rendering chain produces is a web page, so HTML is used to create a web page.

Contrasting the other choices

  • machine language program — a stream of binary opcodes and operand fields that one CPU architecture decodes and executes directly. It is emitted by an assembler or a compiler back end; tags and a rendering step play no part in it.

  • high level program — source code built from variables, expressions, functions and control flow in a language such as C, Java or Python, translated by a compiler or interpreter before a processor can run it. Markup offers none of those constructs.

  • web server — a running program such as Apache or Nginx that listens for HTTP requests on a host and returns stored or generated resources over the network. It delivers documents, but it is itself written in a general-purpose programming language.

Result

HTML is used to create a web page — the hypertext document a browser renders. The other three are the output of a compiler, the work of a general-purpose programming language, or a piece of server software.

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…