Embed the sample file using an object.
Acceptance criteria
- 1.Embed the sample file using an object.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <object> Tag chapter. 5 of them ask you to build something small from scratch; 5 give you code that is already broken and ask you to work out why. Set aside about 90 minutes for the whole set, though you can do them in any order.
Nothing here is marked by a person. When you press Submit, the editor checks your code against the points listed under each task and tells you straight away what passed and what didn't (you need a free account to submit). If you get stuck, there are hints, and a worked solution once you've had a go. The first 2 tasks are free; the rest are part of the practice plan.
If it's been a while since you read the chapter, here is how it starts: “The element embeds an external resource such as a PDF or image and can provide accessible fallback HTML when the resource cannot be displayed. For audio, video, or another webpage, prefer the dedicated , , or element.” .
1.Embed with objectexercise · easy · 10 min
Embed the sample file using an object.
Passes when: Embed the sample file using an object.
2.Declare the typeexercise · easy · 10 min · practice plan
Say what kind of resource it is.
Passes when: Say what kind of resource it is.
3.Add fallback contentexercise · easy · 10 min · practice plan
Show a message if the object cannot load.
Passes when: Show a message if the object cannot load.
4.Size the objectexercise · easy · 10 min · practice plan
Give the object a width and height.
Passes when: Give the object a width and height.
5.A complete objectexercise · medium · 10 min · practice plan
Embed a sized, typed object with fallback text.
Passes when: Embed a sized, typed object with fallback text.
6.Fix the wrong attribute for the resourcebug fix · easy · 8 min
An object points at its file with data.
Passes when: An object points at its file with data.
7.Fix the missing typebug fix · easy · 8 min · practice plan
The browser needs to know the format.
Passes when: The browser needs to know the format.
8.Fix the fallback placed outsidebug fix · easy · 8 min · practice plan
Fallback content goes between the object tags.
Passes when: Fallback content goes between the object tags.
9.Fix the size set only in CSSbug fix · easy · 8 min · practice plan
Give it real width and height attributes.
Passes when: Give it real width and height attributes.
10.Fix the object with no fallbackbug fix · easy · 8 min · practice plan
Nothing is shown if the resource fails.
Passes when: Nothing is shown if the resource fails.
Between them these tasks cover Embedding resources, data attribute and Fallback content.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.