A piece of a website, marked by a start tag and often closed with an end tag

Prepare for the Code.org Computer Science Discoveries test. Study with interactive quizzes and comprehensive explanations. Master key concepts and boost your confidence!

Multiple Choice

A piece of a website, marked by a start tag and often closed with an end tag

Explanation:
An HTML element is a piece of a web page defined by a start tag, the content, and an end tag. The start tag opens the element, the end tag closes it, and whatever sits between them belongs to that element. This makes sense when you see something like <p>Hello</p>—that whole chunk is a paragraph element, with the text Hello between the opening and closing tags. Some elements can be self-contained, like <img src="...">, which doesn't require a separate end tag but is still considered an element. The other options describe either the tag itself (the syntax), the language of the page, or the page content in general, not the specific unit that includes both the tags and the content.

An HTML element is a piece of a web page defined by a start tag, the content, and an end tag. The start tag opens the element, the end tag closes it, and whatever sits between them belongs to that element. This makes sense when you see something like

Hello

—that whole chunk is a paragraph element, with the text Hello between the opening and closing tags. Some elements can be self-contained, like , which doesn't require a separate end tag but is still considered an element. The other options describe either the tag itself (the syntax), the language of the page, or the page content in general, not the specific unit that includes both the tags and the content.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy