HTML - W3 - Basic/Elements/Attributes - Verbose

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

A document's language can be declared in the <html> tag using <html lang="en-CA"> for example. <html> is the element and lang is the _____.

<html> is the element & "lang" is the attribute, providing additional information about an HTML element (html).

In HTML 5, what is the document's declaration tag to indicate it is an HTML document?

All HTML documents must start with a type declaration: <!DOCTYPE html>.

Element or Attribute: the src="w3schools.jpg" in <img src="w3schools.jpg" width="104" height="142">

Attribute. HTML images are defined with the <img> tag. The filename of the source (src), and the size of the image (width and height) are all provided as attributes.

Element or Attribute: the <a> in <a href="http://www.w3schools.com">This is a link</a>

Element. HTML links are defined with the <a> tag. The link address is specified with the href attribute.

True or False: All elements have a start and end tag.

FALSE! Some HTML elements do not have an end tag; "empty elements". example: <br>

True or False: HTML elements will always display incorrectly if you forget the end tag.

FALSE! Some HTML elements will display correctly, even if you forget the end tag. example: omitting </p> would likely still display correctly in most browsers. (It's still bad form!)

True or False: Attributes can be defined in either the start or end tag.

FALSE! Attributes are always specified in the start tag

HTML elements with no content are called ____ ______.

HTML elements with no content are called "empty elements". example: <br> is an empty element without a closing tag

HTML headings are defined with which tags:

HTML headings are defined with the <h1> to <h6> tags: example: <h1>This is a heading</h1>

HTML links are defined with which tag?

HTML links are defined with the <a> tag. example: <a href="http://www.w3schools.com">This is a link</a>

What is the tag that defines a paragraph within an HTML document?

HTML paragraphs are defined with the <p> tag. example: <p>This is a paragraph.</p>

True or False: HTML tags are case sensitive.

HTML tags are not case sensitive. example: <P> means the same as <p>, but W3C recommends lowercase in HTML4, and demands lowercase for stricter document types like XHTML.

True or False: The HTML "element" is everything from the start tag to the end tag

TRUE! HTML elements are written with a start tag, with an end tag, with the content in between.

True or False: The <html>, <body> and <h1> tags are all examples of "elements".

TRUE! HTML elements are written with a start tag, with an end tag, with the content in between. Each of these tags meet the criteria, the content being the information delivered within the tags to the end-user.

The visible part of the HTML document is between ____ and ____. (tags)

The visible part of the HTML document is between <body> and </body>.

_______ provide additional information about HTML elements.

"Attributes" provide additional information about HTML elements.

The HTML document itself begins with ____ and ends with ____. (tags)

The HTML document itself begins with <html> and ends with </html>.


संबंधित स्टडी सेट्स

Spreken inburgering - oefenexamen 1

View Set

Lewis Chapter 58 Chronic Neurologic Problems Questions

View Set

Midterm Review Questions- Chapter 4- AP Government

View Set

Apple Carplay Nissan Certification

View Set