wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Programming Essentials

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the preferred way for adding a background color in HTML?

a)

<body background="yellow">

b)

<background>yellow</background>

c)

d)

<background color="yellow">text<background>

2.

What is the correct HTML for creating a hyperlink?

a)

<a name="">A</a>

d)

<a>B</a>

3.

What is the purpose of the tag in an HTML document?

a)

The tag is used to display the main content of the page.

b)

The tag is used to contain meta-information about the HTML document.

c)

The tag is for defining the layout of the webpage.

d)

The tag is used to include images and videos in the document.

4.

How can you create an e-mail link?

a)

<mail href="a@b">

b)

<mail>a@b</mail>

c)

<a href="a@b">

d)

<a href="mailto:a@b.com">

5.

How do I add scrolling text to my page?

a)

<scroll>

b)

<marquee>

c)

<ciruler>

d)

<tab>

6.

What does CSS stand for?

a)

Cascading Style Scripts

b)

Creative Style Sheets

c)

Cascading System Styles

d)

Cascading Style Sheets

7.

Which property is used to change the background color in CSS?

a)

background-style

b)

bg-color

c)

color-background

d)

background-color

8.

What is the purpose of the 'alt' attribute in an tag?

a)

The 'alt' attribute provides a link to the image source.

b)

The 'alt' attribute describes the content of an image for accessibility and when the image cannot be displayed.

c)

The 'alt' attribute specifies the image's file format.

d)

The 'alt' attribute is used to define the image's size.

9.

Which file controls how your frames will appear?

a)

Frameset

b)

Master Document

c)

Template

d)

Timeline

10.

Which HTML tag is used to define an internal style sheet?

a)

<script>

b)


<css>

c)

c.) none of them

d)

<style>

11.

Which is the correct CSS syntax?

a)

body:color=black

b)

{body;color:black}

c)

{body:color=black(body}

d)

body {color: black}

12.

How do you display hyperlinks without an underline?

a)

  • a {text-decoration:none}

b)

  1. a {underline:none}

c)
  1. a {text-decoration:no underline}

d)
  1. a {decoration:no underline}

13.

What is the difference between class and ID selectors in CSS?

a)

Class selectors are used for inline styles; ID selectors are used for external styles.

b)

Class selectors (.) can target multiple elements; ID selectors (#) target a single unique element.

c)

Class selectors are defined with a hash (#); ID selectors are defined with a dot (.).

d)

Class selectors can only target one element; ID selectors can target multiple elements.

14.

Which of the following is true about links by default?

a)

An unvisited link is underlined and blue

b)

A visited link is underlined and red

c)

An active link is underlined and purple

d)

All the above

15.

Using which tag we insert an JavaScript in HTML page?

a)

<JavaScript type="text/javascript">

b)

<script type="text/javascript">

c)

<JScript type="text/javascript">

d)

<HTMLScript type="text/javascript">