HTML Basic Structure Quiz

ReplaceableGodel avatar
ReplaceableGodel
·
·
Download

Start Quiz

Study Flashcards

10 Questions

The strpos() function finds the numerical position of a particular ______ in a string.

character

The substr() function takes a string, an integer (the position at which the desired substring starts), and an optional third integer argument that is the length of the desired ______.

substring

If no third argument is given in the substr() function, the substring is assumed to continue until the ______.

end

The numbering in PHP arguments that deal with numerical string positions starts with ______ rather than 1.

0

The statement: $my_string_var.= $new_addition; is exactly equivalent to: $my_string_var = $my_string_var.$new_addition; This demonstrates ______ in PHP.

concatenation

The function used to find the location of a particular character in a string is ______.

strpos()

The function used to select a portion of a string is ______.

substr()

The statement: echo(substr("Take what you need, and leave the rest behind",23)); prints the string ______.

leave the rest behind

The statement: echo(substr("Take what you need, and leave the rest behind",5, 13)); prints ______.

what you need—a 13-character string starting at (0-based) position 5

The strpos() function helps in finding the numerical position of a specific ______ in a string.

character

Test your knowledge on the basic structure of HTML documents including the essential elements and tags required. Learn about the main components like head, title, and body.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Learning HTML Basics
11 questions

Learning HTML Basics

ImpressiveHydrogen avatar
ImpressiveHydrogen
HTML Basics: Structure and Introduction
6 questions
Basic HTML Structure and Tags
31 questions
Use Quizgecko on...
Browser
Browser