Freelancer Questions

Freelancer Basic HTML Level 1 Questions and Answers:


1. What is a correct way to create a hyperlink on "freelancer" to https://www.freelancer.com/ ?

Ans. <a href="https://www.freelancer.com/">Freelancer</a>

2. With default vendor styles, which of the following tags displays the largest text on a web page?
-  <header>
-  <title>
-  <h4>
-  <h8>
-  <h2>

Ans. <h2>

3. What is the correct way to display image on a web page?

Ans: <img src="logo.jpg" >

4. Select the answer that best completes this sentence. The canvas element
-  is used to draw graphics on the fly.
-  provides filters to uploaded images.
-  embeds livestream videos into the webpage.
-  displays a background image selected by the user.
-  provides dynamic borders for embeded images.

Ans. is used to draw graphics on the fly.

5. Which of the following attributes displays extra information about the element as a tool tip?
-  value
-  id
-  title
-  class
-  name

Ans. title

6. Which of the following tags will always create a line break?
-  <break>
-  <br>
-  <newline>
-  <return>
-  </t/n>

Ans. <br>

7. Which of the following outputs bold text?
-  <bold>
-  <p style="thick">
-  <em>
-  <b>
-  <p size="4">

Ans. <b>

8. Which of the following outputs italic text?
-  <italic>
-  <italics>
-  <i>
-  <p offset='right'>
-  <p style='slanted'>

Ans. <i>

9. What is the correct order for creating a table in html?
-  <tr><td><table>
-  <table><td><tr>
-  <td><table><tr>
-  <table><tr><td>
-  <td><tr><table>

Ans. <table><tr><td>

10. What is the correct tag to create a bullet list in HTML? (not an item in that list).
-  <bullet>
-  <ol>
-  <ul>
-  <li>
-  <list>

Ans. <ul>

11. Which of the following tags creates a numbered list by default?
-  <numberlist>
-  <li>
-  <ul>
-  <count>
-  <ol>

Ans. <ol>

12. Select the answer that best completes this sentence. Inserting <div> between 2 characters will
-  return the result of the first character divided by the second.
-  cause a space character to appear between the two characters.
-  cause the browser to display an error
-  have no impact on the page
-  cause a line break between 2 characters

Ans. have no impact on the page.

13. Select the answer that best completes this sentence. Inserting <span> between 2 characters will
-  return the result of the first character divided by the second.
-  cause a space character to appear between the two characters.
-  cause the browser to display an error
-  have no impact on the page
-  cause a line break between 2 characters

Ans. have no impact on the page.

14. Select the answer that best completes this sentence. The input tag 
-  allows the web page to define keyboard shortcuts
-  creates an area for the users to write into the web page.
-  allows the web page to display check-boxes, radio buttons, and submit buttons.
-  receives data from an external source, such as database to display dynamic contents.
-  allows the user to add HTML to the current web page.

Ans. creates an area for the users to write into the web page

15. Select the answer that best completes this sentence. The iframe element
-  is used to display a web page within a web page.
-  styles the frame of an image or table.
-  displays mobile applications in the web page.
-  is used as an interface with the user's graphics card.
-  displays content in a detached window.

Ans. is used to display a web page within a web page.

16. Which of the following tags are found in the <head> element?
-  <a>
-  <meta>
-  <input>
-  <b>
-  <img>

Ans. <meta>

17. Which tag will create a horizontal rule?
-  <hor>
-  <hline>
-  <hr>
-  <line>
-  <horizontal>

Ans. <hr>

18. Which HTML tag defines the sample output from a computer program in an HTML document?
-  <samp>
-  <output>
-  <sample>
-  <code>
-  <result>

Ans. <code>

19. Which of the following is a void element?
-  <img>
-  <tbody>
-  <p>
-  <textarea>
-  <body>

Ans. <tbody>

20. Select the answer that best completes this sentence. The base element
-  provides a location pointer for floating html elements.
-  provides the base url for relative urls.
-  defines the base object of the DOM.
-  contains information about the server for the web page.
-  points to the location of the styling sheets for the web page.

Ans. provides the base url for relative urls.

21. Select the answer that best completes this sententce. The <noscript> element is displayed when:
-  scripting is disabled.
-  the script fails to compile.
-  the browser crashes.
- the browser can not connect to the server
-  the browser opens a page without the script

Ans. scripting is disabled. 

22. Which of the following is used to display the ">" character in an html document?
-  >
-  &gt;
-  &nbsp;
-  &lt;
-  <right arrow>

Ans. &gt;

23. Which of the following is NOT a global attribute?
-  class 
-  style
-  title
-  bgcolor
-  dir

Ans. bgcolor

24. Which of the following form tags was introduced in HTML 5 ?
-  output
-  label
-  textarea
-  optgroup
-  legend

Ans. output

25. Which of the following form tags was introduced in HTML 5 ?
-  option
-  input
-  optgroup
-  fieldset
-  keygen

Ans. keygen

26. What is the functional difference between .htm, and .html file extensions?
-  they are incompatible standards
-  html files extend htm files
-  there is no difference.
-  html files have stricter interpretation of tag closures
-  .htm files are compiled to open and run faster.

Ans. there is no difference.

27. Which of the following tags is the correct way to embed video content into a web page?
-  <mp4 width="100" height="100" get="freelancer.mp4" alt="your browser doesn't support video tags"controls>
-  <mp4 width="100" height="100" controls><source get="freelancer.mp4">your browser doesn't support video tags</mp4>
-  <video width="100" height="100" controls><source>freelancer.mp4</source>your browser doesn't support video tags</video>
- <video width="100" height="100"controls><source get="freelancer.mp4">your browser doesn't support video tags</video>
-  <video width="100" height="100" controls><soruce src="freelancer.mp4" type="video/mp4">your browser doesn't support video tags</video>

Ans. <video width="100" height="100" controls><soruce src="freelancer.mp4" type="video/mp4">your browser doesn't support video tags</video>

28. Which of the following tags is the correct way to embed audio content into a web page?
-  <mp3 controls get="freelancer.mp3" alt="your browser doesn't support audio tags">
-  <audio controls><source>freelancer.mp3</source>your browser doesn't support audio tags</audio>
-  <mp3 controls><source get="freelancer.mp3">your browser doesn't support audio tags</mp3>
-  <audio src="freelancer.mp3" alt="your browser doesn't support audio tags" controls>
-  <audio controls><source src="freelancer.mp3">your browser doesn't support audio tags</audio>

Ans. <audio controls><source src="freelancer.mp3">your browser doesn't support audio tags</audio>

29. Which HTML tag defines an option from a dropdown list?
-  <option>
-  <value>
-  <li>
-  <select>
-  <ul>

Ans. <option>

30. Select the answer that best completes this sentence. The output tag
-  returns the result of a query
-  saves the data locally
-  returns the result of the submit button on the same page
-  represents the result of a calculation
-  embeds content that will be printed.

Ans. represents the result of a calculation

31. Which of the following is NOT a value for the type attribute of an input element?
-  month
-  day
-  date
-  time 
-  week

Ans. week

32. Which of the following is NOT a value for the type attribute of an input element?
-  radio
-  address
-  tel
-  email
-  url

Ans. address

33. Which of the following is NOT a value for the type attribute of an input element?
-  submit
-  search
-  reset
-  save
-  password

Ans. save

34. Which of the following is NOT an attribute of an input element introduced in HTML5 ?
-  pattern
-  placeholder
-  autocomplete
-  disabled
-  multiple

Ans. Autocomplete

35. Which of the following was not removed from HTML5 ?
-  noframes
-  iframe
-  font
-  frameset
-  frame

Ans. iframe

36. Which of the following is NOT a new HTML 5 structural element ?
-  header
-  footer
-  body
-  aside
-  section

Ans. body

37. Which of the following is not embedded content?
-  img
-  iframe
-  input
-  video
-  audio

Ans. input

38. Which of the following is NOT a valid HTML5 tag?
-  <strong>
-  <style>
-  <strike>
-  <small>
-  <title>

Ans. <strike>

39. Which of the following is a valid HTML 5 tag?
-  <secondary>
-  <menu>
-  <element>
-  <aside>
-  <sidebar>

Ans. <aside>

40. Which of the following is a valid HTML5 tag?
-  <center>
-  <big>
-  <bd>
-  <bid>
-  <tiny>

Ans. <center>

41. HTML stands for
-  Hyperlinked text markup language
-  Hypertext markup language
-  Homepage tool making language
-  Hypertext machine language
-  Homepage text maker language

Ans. Hypertext markup language

42. Content within the <head> of an HTML document
-  is ignored by the server
-  will only display in certain standard browsers
-  will only display at the top of webpage in any browser
-  will always display in the main browser window of standard browsers.
-  will not display in the main window of most browsers.

Ans. will only display at the top of webpage in any browser

43. In HTML, one correct way to set a color for an element is:
-  <start color="green">element<end color="green">
-  <color RGB-"#003300">element</color>
-  <RGB value="#003300">element</RGB>
-  <#003300>element</#003300>
-  <font color="#003300">element</font>

Ans. <font color="#003300">element</font>

44. To create a button that will reset the contents of a form, use the following code
-  <input type="reset">
-  <input type="clear">
-  <button name="reset">
-  <reset>clear<reset>
-  <button action="reset">

Ans. <input type="reset">

45. To make the text smaller and lower than the current baseline, use:
-  <font size="-2">
-  <subscript>
-  <lower>
-  <sub>
-  <small>

Ans. <small>

46. The page, script or operation called by a form is specified in the ____ attribute.
-  name
-  action
-  method
-  id
-  onClick

Ans. action

47. To create a button that allows uploading of content within a form, use this input type attribute value.
-  upload
-  send
-  file
-  browse
-  button

Ans. file

48. In HTML document the trademark symbol should be written as:
-  $tm;
-  &tm;
-  $trade
-  &trademark;
-  &trade;

Ans. &trade;

49. Which of the following is not an attribute of a form tag?
-  language
-  action
-  target
-  enctype
-  accept-charset

Ans. language

50. Which of the following is a relative link?
-  <a href="http://www.mydomain.com/index.html">home</a>
-  <a href="http://www.mydomain.com/index.html#welcome">home</a>
-  <a href="http://www.mydomain.com/index.php?task=start">home</a>
-  <a href="./index.html">home</a>
-  <a href="http://www.mydomain.com/">home</a>

Ans. <a href="./index.html">home</a>

51. The most common file extensions for plain HTML are:
-  .htm and .php
-  .htm and .html
-  .php and .asp
-  .html and .shtml
-  .htm and .htm-ssi

Ans. .htm and .html

52. Which of the following is not a valid HTML code?
-  <h2>heading2</h2>
-  <p align="left">paragraph</p>
-  <a href="/">link</a>
-  NONE - these all are valid.
-  <ol><li>list1</li><li>list2</li></ol>

Ans. <a href="/">link</a>

53. The <link> tag
-  creates an invisible hyperlink
-  can be used to connect to another web server
-  is used to associate a web page with a stylesheet
-  displays the content of another web page
-  will do any of these

Ans. can be used to connect to another web server

54. The cellspacing attribute of the <table> tag can be used to :
-  set cell width
-  create space between cell borders and content
-  make cells taller
-  adjust spacing between cells
-  do nothing

Ans. Adjust spacing between cells

55. rgb(255,0,0) is:
-  invalid for use with HTML
-  a hexadecimal color value
-  a bookmark name
-  an rgb color value
-  a browser specification

Ans. an rgb color value

56. To place paragraph text to the left of an image, use:
-  <img src="pic.gif" text-align='left'>
-  <img src="pic.gif" align='left'>
-  <img src="pic.gif" align='text-left'>
-  <img src="pic.gif" rightalign>
-  <img src="pic.gif" align='right'>

Ans. <img src="pic.gif" align='right'>

57. The hyperlink _____ will run a javascript function:
-  <a href="javascript-popup()">pic</a>
-  <a href="javascript.popup()">pic</a>
-  <a href="popup(javascript);">pic</a>
-  <a href="javascript:popup()">pic</a>
-  <a href="javascript(popup);">pic</a>

Ans. <a href="javascript:popup()">pic</a>

58. HTML documents must be located on a web ____ to be available for public viewing:
-  node
-  browser
-  server
-  developer
-  client

Ans. server

59. Use the _____ tag to display text as capital letters.
-  <caps>
-  <allcaps>
-  <uppercase>
-  <ucase>
-  none of these

Ans none of these

60. To create a button, that says click here , use
-  <button type="button" value="click here">
-  <button type="button">click here</button>
-  any of these
-  <input type="submit" caption="click here">
-  <input type="button" type="click here">

Ans. <button type="button">Click here</button>

61. The top-level container for an HTML document is
-  <p></p>
-  <body></body>
-  <html></html>
-  <table></table>
-  <footer></footer>

Ans. <html></html>

62. In html version 1-3, the li tag 
-  does not require an ending tag
-  requires an ending tag only in an ordered list
-  is invalid
-  always requires an ending tag
-  is deprecated

Ans. always require an ending tag

63. The html code to simply create an input field is
-  <formfield input="text">
-  <textbox>
-  <input type="textarea">
-  <textfield size="20">
-  <input type="text">

Ans. <input type="text">

64. The th tag indicates:
-  A text header
-  A tag holder
-  A text heading
-  A table holder
-  A table heading cell

Ans. A table heading cell

65. To provide information to search engine spiders and text readers, use the ____ attribute of the <img> tag: 
-  src
-  meta
-  londesc
-  text
-  alt

Ans. alt

66. The ____ tag defines hotspots in an image map
-  <fieldset>
-  <select>
-  <area>
-  <link>
-  <desc>

Ans. <fieldset>

67. Text enclosed in _____ tags is normally indented by browsers.
-  <div></div>
-  <blockquote></blockquote>
-  <fieldset></fieldset>
-  <body></body>
-  <p></p>

Ans. <fieldset></fieldset>

68. The ____ tag will draw a line through the text enclosed :
-  <lebel>
-  <strike>
-  <tr>
-  <line>
-  <strikeout>

Ans. <lebel>


Comments

Popular posts from this blog

Traditional vs Digital Marketing in Ranchi

Top tips for new Web Designers

Things to consider in website's effectiveness evaluation