Test
N5 Computing Science (WDD) - HTML + CSS 2
Este test tiene tipos de pregunta que se abren en el reproductor de siempre.
Preguntas del test (5)
1When using internal CSS, all style information should be inside the <HEAD> tags.
- AVerdadero
- BFalso
2Select all lines of code below which contain CSS, not HTML
- Abackground-color: lightblue;
- B<a href="index.html">Home page</a>
- Ch1 {
- D<h1>
3Complete the CSS code below to make the any HTML <H1> tags appear in red and in the centred on the screen:
<!DOCTYPE html>
<html>
<head>
<title>repl.it</title>
<style>
h1 {
[blank_start]color: red;[blank_end]
text-align: [blank_start]center[blank_end];
}
</style>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<p>A paragraph of text</p>
</body>
</html>- Acolor: red;
- Bcolor: blue;
- Ccolor: green;
- Dcenter
- Eleft
- Fright
4Complete the CSS code below to make the HTML <P> tags appear in a different font from the <H1> and <H2> tags:
<!DOCTYPE html>
<html>
<head>
<title>repl.it</title>
<style>
[blank_start]h1[blank_end],h2 {
font-family: Verdana;
}
[blank_start]p[blank_end] {
font-family: [blank_start]Times New Roman[blank_end];
}
</style>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<p>A paragraph of text</p>
</body>
</html>- Ah1
- Bp
- CTimes New Roman
- DVerdana
5Complete the CSS code below to make the webpage look like the image shown:
<!DOCTYPE html>
<html>
<head>
<title>repl.it</title>
<style>
body {
background-color: [blank_start]blue[blank_end];
}
h1,h2 {
font-family: Verdana;
background-color: [blank_start]yellow[blank_end];
[blank_start]color: blue;[blank_end]
padding: 14px 25px;
text-align: center;
}
p {
font-family: Times New Roman;
[blank_start]color: yellow;[blank_end]
}
</style>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<p>A paragraph of text</p>
</body>
</html>- Ablue
- Byellow
- Ccolor: blue;
- Dcolor: yellow;
Información
- Descripción
- Introduction to CSS
- Autor
- Ian Simpson
- Idioma
- English
- Visitas
- 284
- Etiquetas
- Valoración
- 5,0 de 5 · 1 valoración Valora este test