Font size
WorksheetsFoundations of Web Development
Total questions: 33
Worksheet time: 17mins
Which statement best describes debugging in programming?
Finding and removing code errors through careful testing
Writing new features before fixing existing problems
Using a browser to view code output without changes
Adding comments so the code is easier to read
In a typical code editor, what feature helps developers reference specific lines?
Pixel measurement overlay
Built‑in web browsing
Automatic image insertion
Numbered lines starting at one
HTML is primarily used to do which of the following?
Label information with tags for browser display
Store data persistently in a database
Execute server‑side business logic directly
Style pages using advanced animations
What does nesting mean in HTML?
Running code inside the web browser
Converting pixels into percentages
Using tags without closing them
Placing one element inside another element
Which statement about pixels is accurate?
Smallest dots used to measure screen content
HTML tags that define page structure
Browser settings controlling security options
Attributes that change an element’s behavior
A web browser’s primary role is to:
Host databases for application storage
Design images and create raster graphics
Compile source code into machine language
Read HTML and display information on screen
Which choice correctly defines an HTML attribute?
A closing marker that ends an element region
A separate file storing script logic outside HTML
The title of a webpage shown in browser tabs
Information belonging to a tag, affecting behavior or appearance
What is the function of the
element in an HTML document?Container for all content displayed in the browser
Defines site‑wide styles and color themes
Stores metadata for search engines only
Specifies server routes for navigation
Select the statements that describe an HTML element.
A piece of information defined by a tag
A programming language used for servers
Contains tags, attributes, and content
A browser feature for reading images
Which statements about heading tags are correct?
Are used to define paragraphs only
Always appear inside image elements
Help structure sections with clear titles
Provide a title or headline for a page or section
Which statements about the tag are true?
Uses the src attribute to link a file
Places an image on a webpage
Is a void tag without a closing tag
Must wrap text content as children
You need to display a 300 by 200 photo using HTML. Which set of steps shows appropriate planning and reasoning?
Open the image only through the browser’s address bar
Create a heading tag and set text to the file name
Place the photo inside
without any attributesUse with src set to the file; size measured in pixels
Which HTML tag is used to label a block of text and is followed by a line break?
paragraph tag
break tag
inline tag
What best describes an HTML tag?
Markup using angle brackets
A browser plugin module
A server-side script
A plain text comment
Which statement about closing tags is correct?
They appear before opening tags
They never include angle brackets
They are optional for all tags
They include a slash within brackets
The width style property primarily sets which dimension of an element?
Text font-weight value
Vertical top-to-bottom size
Horizontal left-to-right size
Element z-index position
In web development, to embed content means to do what?
Insert content from another source
Compress assets for faster load
Store data in localStorage
Encrypt media before display
A hyperlink allows a user to do which action?
Resize the current browser window
Open developer tools menu
Cache the current page offline
Navigate to another location
Which example shows a complete URL format?
/relative/path/to/file
www.page name only
http resource without domain
https://www.helloworldcs.org
Which HTML tag creates a clickable link to another location?
Which content is typically found inside a page footer?
Contact and site information
Main article paragraphs
Navigation menu links
External advertising scripts
Which tag usually contains a title, banner, or navigation to introduce a page or section?
What does the
A frame showing external content
A table for tabular data
A modal dialog overlay
A canvas for drawing shapes
Which tag should hold the primary content users came to read?
A section on a webpage should have which characteristics?
Hidden from screen readers
Multiple unrelated topics
Its own heading
One theme or purpose
Which CSS property sets the color of text within an HTML element?
background
color
margin
text-align
What does the CSS margin property control for an element?
Space inside content
Text color setting
Space around an element
Horizontal text position
Which property adjusts the position of inline content from left to right within a block?
text-align
color
background
margin
In CSS, what is inheritance?
Combining multiple classes into one selector
Sharing styles across separate pages
Passing styles from a parent to nested children
Applying styles only to the outermost container
Which statement best describes a child element in web development?
An element that contains another element
An element placed inside another element
An element with no parent above it
An element defined only by semantic tags
Select all visual properties from this list.
margin
parent
background
text-align
Which options can a background consist of?
Layers of colors and images
One color
Images only
Multiple colors
A grandchild element inherits a text color from its outermost container. Which rule explains this behavior?
Inline scripting
Semantic tagging
CSS inheritance
Box model spacing
