NEW
Font size
WorksheetsMulti file website HTML-CSS
Total questions: 10
Worksheet time: 8mins
What is the primary benefit of multi-page websites?
Faster loading time
Separating content for users and coding logic for developers
Better animations
Easier to create than single-page websites
What is the default landing page for a website usually called?
main.html
home.html
index.html
landing.html
Which tag is used to link one HTML file to another?
<link>
<a>
<href>
<nav>
What must you include in the href attribute of an anchor (<a>) tag to link to another HTML file?
The title of the target page
The content of the page
The name of the CSS file
The file path of the target HTML file
What file extension is used for an external CSS file?
.html
.js
.css
.style
Where should the <link> tag for an external CSS file be placed in an HTML document?
Inside the <body> tag
At the end of the document
Inside the <head> tag
It doesn’t matter
What happens when you apply a CSS file to multiple HTML files?
Only the first HTML file is styled
The CSS rules apply to all linked HTML files
The CSS file is overwritten
It only works for the main page
What is the purpose of separating HTML and CSS into different files?
To organize and reuse code effectively
To make the website colorful
To load the website faster
To create animations
How do you create a new HTML file in your project?
Press the “Run” button
Add a new file with a .css extension
Click the “New +” button and save with a .html extension
Use the <add> tag
What should you include in the href attribute of a <link> tag to link an external CSS file?
The name of the CSS file
The name of the HTML file
The name of the JavaScript file
The URL of the home page
