Font size
WorksheetsCSF U3 Networks p1
Total questions: 12
Worksheet time: 7mins
HTML is NOT
A programming language used on the Web
Made up of a nested set of elements
An example of a markup language
Is mainly used for website content
In the diagram, which label points to a HTML element?
A
B
C
D
D is an
end tag
tag attribute
element
start tag
The img element is
is used to jump to a different web page
requires an end tag
is used to display a video
an empty element
To always jump to my main home page within mysite, which href would best?
<a href="index.html">Home</a>
<a href="/index.html">Home</a>
<a href="http://mysite/index.html">Home</a>
<a href="http://mysite/">Home</a>
CSS is for?
Content
Style
Behaviour
Attaching CSS styles this way is called?
Inline
Internal
External
The style is selected by?
id
element
class
ID's are attached to elements...
to identify a group of elements for styling
when only one specific element needs styling
to jump to a specific element internal to a page
to identify a specific element in JavaScript
In the CSS box model, the padding property is?
the size of the content
the size between the content and border
the size between the border and enclosing element
Which would you use to change the content of an element in JavaScript?
element.content
element.style
element.innerHTML
What JavaScript code in helloWorld() would make the paragraph change?
document.getElementById("para1").color = "red";
document.getElementById("para1").innerHTML = "hello";
document.getElementById("p").style.fontSize = "45px";
document.getElementById("para1").style.display = "none";
