0% found this document useful (0 votes)
21 views

Basic HTML Practice Programs (Questions)

This document discusses various HTML tags and their attributes. It provides examples of how to comment HTML tags, create hyperlinks to files, parts of the document or separate tabs, embed audio and images, define headings, paragraphs, and other document elements. It also covers form input tags like buttons, text, textareas, and selects, and how to specify attributes for size, validation, labels, and more. The document aims to be a comprehensive reference for basic HTML tags and attributes.

Uploaded by

kan31247
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Basic HTML Practice Programs (Questions)

This document discusses various HTML tags and their attributes. It provides examples of how to comment HTML tags, create hyperlinks to files, parts of the document or separate tabs, embed audio and images, define headings, paragraphs, and other document elements. It also covers form input tags like buttons, text, textareas, and selects, and how to specify attributes for size, validation, labels, and more. The document aims to be a comprehensive reference for basic HTML tags and attributes.

Uploaded by

kan31247
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

HTML5 Basic (Tag and attribute)

1. How to comment HTML tags?

2. How to create a hyperlink?

a) Download a file when clicking on the link.


Sample file name and path : www.The-Info-Matrix.com/images/Company_Logo.gif

b) Specify the language of the document in a given link.


Sample link : <a href="http://https://www.The-Info-Matrix.com">resource</a>

c) How to create a hyperlink to take you to another part of the same HTML document?

d) Create a link with a media attribute.

e) Create a nofollow link.

f) How to open a linked document in a separate browser tab?

g) What shall be the correct value of the media attribute of a hyperlink which points to an HTML
document?

3. How to author an abbreviation or an acronym?

4. What is the correct way to write address in an HTML document?

5. How to create an area inside an image-map?

a) How to specify an alternate text for the area. Required if the href attribute is present?

b) How to specify the coordinates of the area?

c) How to specify that the target will be downloaded when a user clicks on the hyperlink?

d) How to specify the hyperlink target for the area?

e) How to specify the language of the target URL?

f) How to specify what media/device the target URL is optimized for?

g) How to specify the relationship between the current document and the target URL?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
h) How to specify the shape the of the area?

i) How to specify where to open the target URL?

j) How to specify the media type of the target URL?

6. Create an HTML document which uses article element?

7. Create an HTML document which uses aside element?

8. How to embed audio in a HTML document?

a) How to autoplay an audio

b) How to add controls to an audio

c) How to play an audio repeatedly

d) How to mute an audio

e) How to preload an audio

9. How to write bold text using HTML tags?

10. How to specify the base URL/target for all relative URLs in a document?

11. How to isolate a part of the text that might be formatted in a different direction from other text outside
it?

12. How to override the current text direction?

13. How to define a section that is quoted from another source?

14. How to define the document's body?

15. How to define a single line break?

16. How to define a clickable button?

a) How to specify that a button should automatically get focus when the page load?

b) How to specify that a button should be disabled?

c) How to specify one or more forms the button belongs to?

d) How to specify where to send the form-data when a form is submitted?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
e) How to specify how form-data should be encoded before sending it to a server?

f) How to send the form-data, which HTTP method to use?

g) How to specify that the form-data should not be validated on submission?

h) How to specify where to display the response after submitting the form?

i) How to specify a name for the button?

j) How to specify an initial value for the button?

k) How to specify the type of button?

17. How to draw graphics, on the fly, via scripting?

a) How to specify the height of the canvas?

b) How to specify the width of the canvas?

18. How to define a table caption?

19. How to define the title of an HTML document?

20. How to specify the column properties of each column within a colgroup element?

21. How to define a piece of code?

a) How to render as emphasized text?

b) How to define important text?

c) How to define sample output from a computer program?

d) How to define keyboard input?

e) How to define a variable?

22. How to specify a list of pre-defined options for input controls?

23. How to define a description/value of a term in a description list?

24. How to semantically delete text from an HTML document?

a) How to specify a URL to a document that explains the reason why the text was deleted?.

b) How to specify the date and time when the text was deleted?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
25. How to define additional details that the user can view or hide?

26. How to represent the defining instance of a term?

27. How to define a dialog box or window with an HTML tag?

28. How to define a section in a document?

29. How to define a definition list?

30. How to define a term or name in a definition list?

31. How to emphasize text in an HTML document?

32. How to define a container for an external (non-HTML) application?

33. How to groups related elements in a form?

34. How to define a caption for a figure element?

35. How to specify self-contained content?

36. How to define a footer for a document or section?

37. How to define an HTML form for user input?

38. How to define an HTML heading?

39. How to define information about the document?

40. How to define a header for a document or section?

41. How to define a thematic change in the content?

42. How to define the root of an HTML document?

43. How to define a part of text in an alternate voice or mood?

44. How to define an inline frame?

a) How to specify the height of an iframe element?

b) How to specify the name of an iframe element?

c) How to enable an extra set of restrictions for the content in an iframe element?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
d) How to specify the address of the document to embed in the iframe element?

e) How to specify the HTML content of the page to show in the iframe element?

f) How to specify the width of an iframe element?

45. How to define an image?

a) How to specify an alternate text for an image?

b) How to specify the height of an image?

c) How to specify an image as a server-side image-map?

d) How to specify a URL to a detailed description of an image?

e) How to specify the URL of an image?

f) How to specify an image as a client-side image-map?

g) How to specify the width of an image?

46. How to define an input control?

a) How to specify the types of files that the server accepts(only for type="file")?

b) How to specify an alternate text for images?

c) How to specify whether an input element should have autocomplete disabled?

d) How to specify that an input element should automatically get focus when the page loads?

e) How to specify that an input element should be pre-selected when the page loads (for
type="checkbox" or type="radio")?

f) How to specify that an input element should be disabled?

g) How tie an input element to a form, though the input element resides outside the form?

h) How to specify the URL that will process the data supplied through input(s) when the form is
submitted (for type="submit" and type="image")?

i) How to specify the form-data should be encoded when submitting it to the server (for type="submit"
and type="image")?

j) How to define the HTTP method for sending data to the action URL (for type="submit" and
type="image")?
NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
k) How to define that form elements should not be validated when submitted?

l) How to specify where to display the response that is received after submitting the form (for
type="submit" and type="image")?

m) How to specify the height of an input element (only for type="image")?

n) How to refer to a datalist element that contains pre-defined options for an input element?

o) How to specify the maximum value for an input element?

p) How to specify the maximum number of characters allowed in an input element?

q) How to specify a minimum value for an input element?

r) How to specify that a user can enter more than one value in an input element?

s) How to specify the name of an input element?

t) How to specify a regular expression that an input element's value is checked against?

u) How to specify a short hint that describes the expected value of an input element?

v) How to specify that an input field is read-only?

w) How to specify that an input field must be filled out before submitting the form?

x) How to specify the width, in characters, of an input element?

y) How to specify the URL of the image used as a submit button (only for type="image")?

z) How to specify the legal number intervals for an input field?

aa) How to specify the type of an input element ?

bb) How to specify the value of an input element?

cc) How to specify the width of an input element (only for type="image")?

47. How to define a text that has been inserted into a document?

a) How to specify a URL to a document that explains the reason why the text was inserted/changed?

b) How to specify the date and time when the text was inserted/changed?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
48. How to define a keyboard input?

49. How to define a key-pair generator field (for forms)?

a) How to specify that a keygen element should automatically get focus when the page loads?

b) How to specify that a keygen element should be disabled?

c) How to specify one or more forms the keygen element belongs to?

d) How to specify the security algorithm of the key?

e) How to define a name for the keygen element?

50. How to define a label for an input element?

a) How to specify which form element a label is bound to?

b) How to specify one or more forms the label belongs to?

51. How to define a caption for a fieldset element?

52. How to define a list item?

53. How to define the relationship between a document and other resources?

a) How to specify the location of the linked document?

b) How to specify the language of the text in the linked document?

c) How to Specify on what device the linked document will be displayed?

d) How to specify the relationship between the current document and the linked document?

e) How to specify the size of the linked resource?

54. How to specify the main content of a document?

55. How to define a client-side image-map?

56. How to define marked/highlighted text?

57. How to define a list/menu of commands?

58. How to define metadata about an HTML document?

a) How to specify the character encoding for the HTML document?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
b) How to give the value associated with the http-equiv or name attribute?

c) How to provide an HTTP header for the information/value of the content attribute?

d) How to specify a name for the metadata?

59. How to define a scalar measurement within a known range?

a) How to specify the range that is considered to be a high value?

b) How to specify the range that is considered to be a low value?

c) How to specify the maximum value of the range?

d) How to specify the minimum value of the range?

e) How to specify what value is the optimal value for the gauge?

f) How to require the current value of the gauge?

60. How to define navigation links?

61. How to define an alternate content for users that do not support client-side scripts?

62. How to define an embedded object?

a) How to specify the URL of the resource to be used by the object?

b) How to specify one or more forms the object belongs to?

c) How to specify the height of the object?

d) How to specify a name for the object?

e) How to specify the media type of data specified in the data attribute?

f) How to specify the width of the object?

63. How to define an ordered list?

a) How to specify that the list order should be descending (9,8,7...)?

b) How to specify the start value of an ordered list?

c) How to specify the kind of marker to use in the list?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
64. How to define a group of related options in a drop-down list?

a) How to specify that an option-group should be disabled?

b) How to specify a label for an option-group?

65. How to define an option in a drop-down list?

a) How to specify that an option should be disabled?

b) How to specify a label for an option-group?

c) How to specify that an option should be pre-selected when the page loads?

d) How to specify the value to be sent to a server?

66. How to define the result of a calculation?

a) How to specify the relationship between the result of the calculation, and the elements used in the
calculation?

b) How to specify one or more forms the output element belongs to?

c) How to specify a name for the output element?

67. How to define a paragraph?

68. How to define a parameter for an object?

69. How to define preformatted text?

70. How to represent the progress of a task?

71. How to define a short quotation?

72. How to define text that is no longer correct?

73. How to define sample output from a computer program?

74. How to define a client-side script?

a) How to specify that the script is executed asynchronously (only for external scripts)?

b) How to specify the character encoding used in an external script file?

c) How to specify that the script is executed when the page has finished parsing (only for external
scripts)?
NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
d) How to specify the URL of an external script file?

e) How to specify the media type of the script?

75. How to define a section in a document?

76. How to define a drop-down list?

a) How to specify that the drop-down list should automatically get focus when the page loads?

b) How to specify that a drop-down list should be disabled?

c) How to defines one or more forms the select field belongs to?

d) How to specify that multiple options can be selected at once?

e) How to define a name for the drop-down list?

f) How to specify that the user is required to select a value before submitting the form?

g) How to define the number of visible options in a drop-down list?

77. How to define smaller text?

78. How to define multiple media resources for media elements?

a) How to specify the type of media resource?

b) How to specify the URL of the media file?

c) How to specify the media type of the media resource?

79. How to define a section in a document?

80. How to define important text?

81. How to define style information for a document?

a) How to specify what media/device the media resource is optimized for?

b) How to specify that the styles only apply to this element's parent element and that element's child
elements?

c) How to specify the media type of the style tag?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
82. How to define subscripted text?

83. How to define a visible heading for a details element?

84. How to define superscripted text?

85. How to define a table?

86. How to group the body content in a table?

87. How to define a cell in a table?

88. How to define a multiline input control text area?

89. How to group the footer content in a table?

90. How to define a header cell in a table?

a) How to specify an abbreviated version of the content in a header cell?

b) How to specify the number of columns a header cell should span?

c) How to specify one or more header cells a cell is related to?

d) How to specify the number of rows a header cell should span?

e) How to specify whether a header cell is a header for a column, row, or group of columns or rows?

91. How to group the header content in a table?

92. How to define a title for the document?

93. How to define a row in a table?

94. How to underline a text in an HTML document?

95. How to define an unordered list?

96. How to define a variable?

97. How to define a video or movie?

a) How to specify that the video will start playing as soon as it is ready?

b) How to specify that video controls should be displayed (such as a play/pause button etc)?

c) How to set the height of the video player?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com
d) How to specify that the video will start over again, every time it is finished?

e) How to specify that the audio output of the video should be muted?

f) How to specify an image to be shown while the video is downloading, or until the user hits the play
button?

g) Preload the video when the page loads?

h) How to specify the URL of the video file?

i) How to set the width of the video player?

98. How to define a possible link-break?

NYN Arcade, 3rd Floor Lumbini Society, Off. Hitech City Main Rd, Gachibowli, Telangana-500032.
www.the-info-matrix.com

You might also like