HTML Nested Elements
Predict Output Beginner
Question
What text appears on the page?
Code
<p>Hello <strong>World</strong></p>
Hint
<strong> makes text bold.
Explanation
The <p> tag creates a paragraph with the text "Hello " followed by <strong>World</strong> which renders "World" in bold. The rendered output is "Hello World" where "World" appears bold. The <strong> tag indicates important text and browsers render it with bold weight by default.
Related Resources
Related Lessons
- HTML
Learn HTML structure and tags.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.