Grade 9 HTML Basics Review
19 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the latest version of HTML as of 2022?

HTML5

What refers to the declaration that specifies the HTML version being used?

DOCTYPE

Give the 2 main parts of an HTML document.

Head and Body

What is the tag that specifies the source (URL) of the script or image?

<p>src</p> Signup and view all the answers

What is the attribute that provides an alternative text for an image?

<p>alt</p> Signup and view all the answers

What tag is used to create hyperlinks?

<p>a</p> Signup and view all the answers

What tag is used together with a?

<p>a</p> Signup and view all the answers

What is the attribute used that specifies the URL of the page the link goes to?

<p>href</p> Signup and view all the answers

What tag contains the metadata about the HTML document?

<p>head</p> Signup and view all the answers

What tag contains the content of the HTML document?

<p>body</p> Signup and view all the answers

What is XHTML?

<p>XHTML is an acronym for eXtensible HyperText Markup Language.</p> Signup and view all the answers

What is the difference between XHTML and HTML?

<p>XHTML is a stricter and cleaner version of HTML.</p> Signup and view all the answers

Identify the error in this statement: 'This text will appear in boldface and in italics.'

<p>The statement is correct as it is.</p> Signup and view all the answers

Identify the error in this statement: 'XHTML requires proper closing of tags.'

<p>The statement is correct as it is.</p> Signup and view all the answers

Identify the error in this statement: 'In XHTML, even empty tags have to be closed following the given format.'

<p>The statement is correct as it is.</p> Signup and view all the answers

Identify the error in this statement: 'Elements should be written in lowercase.'

<p>The statement is correct as it is.</p> Signup and view all the answers

Identify the error in this statement: 'Values of attributes are usually enclosed in single and double quotes.'

<p>The statement is correct as it is.</p> Signup and view all the answers

Identify the error in this statement: 'XHTML requires values to be quoted.'

<p>The statement is correct as it is.</p> Signup and view all the answers

Identify the error in this statement: 'In HTML, there are attributes that don’t need va...'

<p>Incomplete statement.</p> Signup and view all the answers

Study Notes

HTML Overview

  • Latest version of HTML as of 2022 is HTML5.
  • Document declaration signifies the HTML version, assisting browsers in rendering web pages correctly.
  • Two main parts of an HTML document are the head and body sections.

Key HTML Tags and Attributes

  • src attribute specifies the source (URL) for scripts or images.
  • alt attribute provides alternative text for images, displayed if the image fails to load.
  • The <a> tag is used to create hyperlinks for navigation between web pages.
  • The href attribute specifies the URL to which a link directs.

Document Metadata and Content

  • The <head> tag contains metadata about the HTML document.
  • The <body> tag contains the visible content of the HTML document.

XHTML Characteristics

  • XHTML stands for eXtensible HyperText Markup Language, derived from XML (eXtensible Markup Language).
  • XHTML is a stricter and cleaner version of HTML, intended to replace HTML.
  • All modern web browsers support XHTML due to issues with improperly formatted HTML.

Proper Coding Practices

  • Proper nesting of elements is essential in XHTML; begin with the first tag and close the last tag opened.
  • XHTML requires proper closing of all tags, including container tags, which have both start and end tags.
  • Empty tags, which traditionally do not require end tags in HTML, need a closing slash in XHTML.

Syntax Rules

  • All XHTML elements must be written in lowercase characters.
  • Every XHTML document must have only one root element.
  • Attributes in XHTML must also be in lowercase.
  • Attribute values must be enclosed in quotes for XHTML compliance.

Common Errors in XHTML

  • Misnaming or incorrectly closing tags can lead to display issues.
  • Failing to close empty tags properly.
  • Not following proper nesting rules can result in unexpected behavior in browsers.

Additional Considerations

  • XHTML was developed to address the diverse capabilities of modern browsers, which may struggle with incorrect HTML syntax.
  • Emphasizes how properly structured syntax can enhance compatibility across various devices and platforms.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

Q1L1 (1).pptx

Description

This quiz provides a review of key concepts from HTML based on the first lesson of the first quarter for 9th graders. Test your knowledge of HTML5, its structure, and essential tags that are fundamental for web development.

More Like This

Web Development Basics
9 questions

Web Development Basics

WellMadeBaritoneSaxophone avatar
WellMadeBaritoneSaxophone
HTML Fundamentals for Web Development
16 questions
HTML Basics and Web Concepts
5 questions
Use Quizgecko on...
Browser
Browser