top of page

Activity 3: HTML Questions

1.)Define HTML.

-HTML is a markup language that contain HTML tags and plain text. They

are also called web pages

2.)What does HTML stand for?
-HTML stands for Hyper Text Markup Language

3.)Define HTML elements.  What are the six main HTML Elements syntax?
-HTML element is everything between the start tag and the end tag,

including the tags. The six main HTML Elements syntax are start/opening tag,

end/closing tag, element content, empty content, closed empty elements in the

start tag, and attributes

4.)Demonstrate the properly nested HTML Syntax.

-A properly nested HTML Syntax contan other HTML elements and consists

of nested HTML elements.

5.)Define HTML Attributes and provide 2 examples with their description.
- Attributes provide additional information about an element and are

always specified in the start tag. (eg. name="value" , href="link")

6.)Who is making the Web Standards?
- the World Wide Web Consortium (W3C)

7.)Define HTML Tag.
-HTML tags are keywords (tag names) surrounded by angle brackets like

<html> and normally come in pairs like <b> and </b>

8.)What are the correct HTML tag for the 3 largest heading?  Use the word

TITLE as an example.
-<h1>TITLE</h1> <h2>TITLE</h2> <h3>TITLE</h3>

9.)What  is HTML tag for inserting a line break?
- <br>

10.)What is the preferred way for adding a background colour in HTML?
-<body style="background-color:(color);"></body>

11.)What is the correct HTML tag to make text bold?
-<b> </b>

12.)What is the correct HTML tag to make a text italic?
-<i> </i>

13.)What is the correct HTML for creating a hyperlink?
-<a href="link">LINK</a>

14.)How can you create an e-mail link?
-<a href="mailto:someone@example.com">Send Mail</a>

15.)Demonstrate the HTML coding to open a link in a new browser window?
-<a href="link" target="_blank">LINK</a>

16.)Create the HTML coding for a table with 2 columns and 3 rows.
-<table>
  <tr>
  <td>1</td>
  <td>2</td>
  </tr>
  <tr>
  <td>1</td>
  <td>2</td>
  </tr>
  <tr>
  <td>1</td>
  <td>2</td>
  </tr>
  </table>

17.)Demonstrate the HTML coding to left align text in a table cell.
-<table align="left"> </table>

18.)Create a simple HTML form with the following fields:
text field for full name
-<form>
  First name: <input type="text" name="firstname"><br>
  Last name: <input type="text" name="lastname">
  </form>

password
-<form>
  Password: <input type="password" name="pwd">
  </form>

a question with 3 answers using radio buttons,
<form>
<input type="radio" name="1+1" value="one">One<br>
<input type="radio" name="1+1" value="two">Two<br>
<input type="radio" name="1+1" value="three">Three
</form>

a survey question with 2 checkboxes
<form>
<input type="checkbox" name="vehicle" value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle" value="Car">I have a car
</form>

a submit button
<form name="input" action="html_form_action.asp" method="get">
Username: <input type="text" name="user">

<input type="submit" value="Submit">
</form>

19.)What does CSS stand for?
-CSS stands for Cascading Style Sheets

20.)Define the function of CSS.
-CSS was introduced together with HTML 4, to provide a better way to

style HTML elements.

21.)What style elements can be applied in CSS?
-Background Color, Font, Color, Size, and text alignment can be

applied in CSS

22.)How are HTML colours defined?  What is a Hex and what is RGB?
-HTML colors are defined using a hexadecimal notation (HEX) for the

combination of Red, Green, and Blue colour values (RGB).

23.)Explain how there can be 16 million different colours.
-The combination of Red, Green, and Blue values from 0 to 255,

therefore, it gives more than 16 million different colours (256x256x256)

24.)What are colournames?  provide three examples with the corresponding HEX

codes.
-147 Colour names are defined in the HTML and CSS color specification

(16 basic colour names plus 130 more). (eg. Aqua=#00FFFF, Brown=#A52A2A,

Olive="#808000)

25.)What is javascript?  What is the coding for javascript?
-Javascripts make HTML pages more dynamic and interactive. The coding

for a javascript is <script> document.write("text") </script>

26.)What tag allows you to create a list of items with numbers?
<ol type="1"></ol>

27.)What tag allows you to create a list of items with bullets?
<ul type="circle"></ul>

28.)Create the  HTML coding for a checkbox.  The checkbox should have a

question
<form>
<input type="checkbox" name="gaming console" value="PS3">I have a

PS3<br>
<input type="checkbox" name="gaming console" value="Xbox">I have an

Xbox<br>
<input type="checkbox" name="gaming console" value="Wii"> I have a Wii
</form>

 

and at least 3 options.
<form>
<input type="radio" name="relationship status"

value="Single">Single<br>
<input type="radio" name="relationship status"

value="Married">Married<br>
<input type="radio" name="relationship status"

value="Divorced">Divorced<br>

29.)What is the correct HTML for making a text input field?
<form>
Insert Text here: <input type="text" name="textfield">
</form>

30.)What is the correct HTML for creating a dropdown list?
<select>
  <optgroup label="Swedish Cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
  </optgroup>
  <optgroup label="German Cars">
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </optgroup>
</select>

31.)What is the correct HTML for creating a text area?
<textarea rows="value" cols="value>
TEXT
</textarea>

32.)What is the correct HTML for inserting an image? (use

www.digitalvoices/images/image1.jpg as an example)
<img src="www.digitalvoices/images/image1.jpg">

33.)What is the correct HTML for inserting a background image? (use

www.digitalvoices/images/background.jpg as an example)
<body background="www.digitalvoices/images/background.jpg">
TEXTTTTTTTTTTT
</body>

34.)What is an “iFrame”?  Demonstrate the coding.
-An iFrame is used to display a web page with a web page.
The coding for adding an ifram is: <ifram src="URL"></iframe>

Define XHTML.  Explain why XHTML is being used by web designers.
-XHTML is HTML written as XML. It is used by web designers because

althought it is stricter, it is a cleaner version of HTML 4.01 and is

supported by all major browsers.

bottom of page