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

HTML L1

The document provides a comprehensive overview of HTML5 elements, attributes, and their functionalities, including input types, semantic elements, and styling options. It covers various topics such as form handling, multimedia support, and CSS integration. Additionally, it addresses deprecated elements and the importance of semantic HTML in web development.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

HTML L1

The document provides a comprehensive overview of HTML5 elements, attributes, and their functionalities, including input types, semantic elements, and styling options. It covers various topics such as form handling, multimedia support, and CSS integration. Additionally, it addresses deprecated elements and the importance of semantic HTML in web development.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

1.The <--------> element specifies a list of pre-defined options for an <input> element.

ans:-DATALIST

2.The purpose of the <keygen> element is to provide a secure way to authenticate users

ans:-When the form is submitted, two keys are generated, one private and one public

3.The <input type="----"> is used for input fields that should contain a date

ans:-DATE

4.The <input type="----"> allows the user to select a month and year.

ans:-"MONTH"

5.The <input type="------"> allows the user to select a time (no time zone).

ans:-TIME

6.The <input type="-----------"> specifies a date and time input field, with no time zone.

ans:-DATETIME-LOCAL

7.The <input type="----------"> is used for input fields that should contain an e-mail address.

ans:-EMAIL

8.The <input type="------"> is used for input fields that should contain a URL address.

ANS:-URL

9.The autocomplete attribute specifies whether a form or input field should have autocomplete?

ans:-ON R OFF

example-(((<form action="action_page.php" autocomplete="***on***">)))

10.The -- attribute specifies that the input field should automatically get focus when the page loads?

ans:-AUTOFOCUS

11.The--- attribute specifies that the user is allowed to enter more than one value in the <input>
element.

ans:-MULTIPLE

12.The ----- attribute specifies a regular expression that the <input> element's value is checked against.

ans:-PATTERN

13.Defines a caption for a <figure> element

ans:-FIGCAPTION

Sensitivity: Internal & Restricted


14.Defines marked or highlighted text

ans:-MARK

15.not sematic

ans:-DIV & SPAN

16.The element specifies independent, self-contained content.

ans:-ARTICLE

17.audio are supported & no.of by the HTML5 standard

ans:-3 (MP3,OGG,WAV)

18.In HTML5, there are --supported video formats

ans:-3 (MP4, WebM, and Ogg)

19.Plug-ins can be added to web pages with the <---> tag

ans:-OBJECT OR EMBED

20.the <-----> element does not have a closing tag..

ans:-EMBED

21.which is not a input type

ans:-METER

22.which input type will give the output of number Quantity (between 1 and 5):

ans:-<input type="number" name="quantity" min="1" max="5">

23.which is used for input fields that should contain a telephone number.

ans:- <input type="tel" value="mobile num">

24.which attribute specifies how the form data should be encoded when submitted

ans:-FORMENCTYPE Attribute

25.The HTML <**CANVAS**> element is used to .

ANS:-draw graphics, on the fly, via JavaScript

1.How do we declare <!DOCTYPE > in html 5?

Ans: <!DOCTYPE html>

2.Inorder to highlight the text which element is used ?

Sensitivity: Internal & Restricted


Ans:<mark>

3.which option is used to highlight caption for figure?

Ans:<figcaption>

4.how many dimensions used in graphics?

Ans:2

5.how embed is used ?

Ans:Defines containers for external applications (like plug-ins)

6.How many fomats a video can support?

Ans:MP4,WebM, Ogg

7.Inoder to view video which tag is used ?

Ans:<video>

8.HTML 5 is suppoted by W3C and one more____________?

Ans: XHTML

1. CSS provided the basic style such as Ans. All of the above

2. Which style sheet can be apply to the content of a single element? Ans. Inline Style Sheet

3. Where in an HTML document is the correct place to refer to an external style sheet? Ans. None of the
above

4. The id selector is used to specify a style for Ans. Single, unique element

5. Which of the style sheet is also known as embedded style sheet? Ans. None of the above

6. The disadvantages of cascading style sheets is Ans. Browser compatibility

7. Short form of pc is Ans. Picas

8. To use inline styles you use the style attribute in the ____ tag Ans. Style tag

9. Which attribute in HTML table is used to give a border to your table? Ans. Border

10. A table with no border Ans. <table border=”0”> 11. What is a FTP program used for? Ans. Transfer
file to and from an internet server

Sensitivity: Internal & Restricted


12. Which one of the following are the attributes of Font tag? Ans. All of the above

13. Which of the following is not a style tag Ans. <tt>

14. Which of the following is the HTML tag to define a preformatted text? Ans. <pre>

15. Which of the following is an attribute which specifies the text direction for the content is an
element? Ans. Dir

16. <TITLE></TITLE> tag must be within_____? Ans. Header

17. Which is the attribute that specifies an altemate text for an image,if the image cannot be displayed?
Ans. Alt

18. Which tag is used to identify the beginning and end of the HTML document? Ans. Html

19. A table contains rows which is identified by Ans. <Tr>

20. __tag is used to define a table header. Ans. <TH>

21. What does vlink mean? Ans. Visited link

22. A list which is provided with numeric digit is called an Ans. Ordered list

23. Defination list can be defined as: Ans. <DL>

24. A list which is provide with a bullet(a black dot)is called an Ans. Unordered list 25. Which of the
following is used increase the row height? Ans. Row span

26. Which of the following is an attribute of <Table> tag? Ans. Cellpadding

27. __and __are used to define a span in column and rows respectively. Ans. Cell padding and cell
spacing

28. A____(Year, Month, Day, Hour, Minute, Second, Fractions of a second)enclosed according to ISO
8601 with the time zone set to UTC. Ans. Datetime

29. The sets of HTML tag is Ans. All of the above

30. Which select is used to specify a style for a group element? Ans. ID selector

31. The doctype declaration for the HTML is Ans. Case insensitive

32. Table data may contain Ans. All of the above

33. Which controls will be used in space between table calls? Ans. cellspacing

34. A list which is provided with numeric didgit is called an Ans. Ordered list

Sensitivity: Internal & Restricted


35. How many list of HTML is/are Ans. Three

36. Which of the following is an attribute of <Table>tag? Ans. Cellpadding

37. Which is the attribute that specifies an alternate text for an image, if the image cannot be displayed?
Ans. Alt

38. <id>tag stands for: Ans. Table data

39. Which of the following is used to define parameters for plugins embedded with an object element?
Ans. <param>

40. Which of the following are attributes of Font Tag? Ans. All of the above

41. Choose the correct HTML tag for the largest heading? Ans. H1

42. Which of the following is the HTML tag to make a text italic?

Ans. <i>

43. A CSS declaration always ends with a ____, and declaration groups are surrounded by____ Ans.
Semicolon and curly brackets

44. To create a blank line in your web page Ans. Insert<BR>tag

45. Which of the following is an attribute which specifies extra information about an element? Ans. title

46. Which selector is used to specify a style for a group of elements? Ans. Id selector

47. Which of the following are attributes of Font Tag? Ans. All of the above

48. An internal style sheet should be used when a single document has a Ans. Unique style

49. A___ tag is used to specify that the browser is to fetch and use an external style sheet file Ans. <link>
50. Which is the superior styles of html? Ans. css

51. Which of the style sheet is also known as Embedded Style Sheet? Ans. None of the above

52. One of the most popular way is to specify character –set using a Ans. None of the above

53. Where is an HTML document is the correct place to refer to an external style sheet? Ans. In the
section

54. An internal style sheet should be used when a single document has a Ans. Unique style

55. Which of the following is used to define parameters for plugins embedded with an object element?
Ans. <param>

Sensitivity: Internal & Restricted


56. To inserting a Style Sheet Ans. All of the above 57. To use inline styles you use the style attribute in
the ___tag? Ans. Style tag

58. Which of the style sheet is also known as Embedded Style Sheet? Ans. None of the above

1. HTML5 browsers support which technology?


a. CSS2
b. CSS3
c. CSS1
d. CSS2.5
2. Which HTML5 form attribute is used to instruct browser automatically complete values based on values that the user
has entered before
a. Autoaction
b. Autofocus
c. Autocomplete
d. Autovalidate
3. Which HTML5 attribute specifies the URL of a file that will process the input control when the form is submitted
a. Formaction
b. Formenctype
c. Formmethod
d. Formvalidate
4. What is the HTML5 syntax to enable autocomplete feature?
a. <input type = “text” name = “creditcardno” autocomplete = “1”>
b. <input type = “text” name = “creditcardno” autocomplete = “on”>
c. <input type = “text” name = “creditcardno” autocomplete = “true”>
d. <input type = “text” name = “creditcardno” autocomplete = “enable”>
5. HTML5 attribute that specifies that an input field must be filled out before submitting the form
a. Regular expression
b. Mandatory
c. Validate
d. Required
6. Correct syntax in HTML5 for designing a telephone number field?
a. <input type = “telephone” name = “telephone”>
b. <input type = “tel” name = “telephone”>
c. <input type = “tele” name = “telephone”>
d. <input type = “phone” name = “telephone”>
7. In HTML5, ------- tag is not supported?
a. Code
b. <basefont>
c. Base
d. Canvas
8. Which HTML5 input type allows users to select a date and time with time zone?
a. Datetime
b. Datetime-local
c. Datetime-timezone
d. Datetime-zone
9. Below is new HTML5 input type

Sensitivity: Internal & Restricted


a. Search
b. Block
c. Layout
d. List
10. Which HTML5 input type allows a user to select a year and week
a. Input type = “ yearandweek”
b. Input type = “ weekandyear”
c. Input type = “weekyear”
d. Input type = “week”(correct)
11. What type the input field has to be to contain email address
a. Email
b. Datetime-local
c. Datetime
d. Html
12. How many video formats supported for <video> element
a. 4
b. 2
c. 3
d. 1
13. How many audio formats supported for <audio> element
a. 4
b. 2
c. 3
d. 1
14. Track tag
15. Preload attribute of Audio tag
16. Which is not semantic
a. <form>
b. <table>
c. <img>
d. <div>
17. In HTML5, semantic element is used for defining marking or highlighting text?
a. <highlight>
b. <mark>
c. <markup>
d. <marktext>
18. Which HTML5 element is used to define a caption for <figure> element?
a. <figtext>
b. <figurecaption>
c. <figcaption>
d. <figuretext>
19. To draw straight lines on canvas, which methods are used?
a. moveTo(x,y) and lineTo(x,y)
b. moveTo(x,y)
c. moveTo(x,y) and strokeText(x,y)
d. lineTo(x,y)
20. Which element in HTML5 is used to draw graphics?
a. <canvas>
b. <video>
c. <svg>
d. <audio>

Sensitivity: Internal & Restricted


21.
a. Rectangle(x,y,width,height)
b. Rect (x,y,width,height)
c. CreateRect (x,y,width,height)
d. CreateRectangle(x,y,width,height)
22. Transformations in HTML5 are applied using
a. Transform
b. Canvas
c. Geolocation
d. Web Storage
23. Which tag specifies a key-pair generator field in a form
a. <output>
b. <datalist>
c. <keygen>
d. <input>
24. Where the keys are stored which has been generated using <keygen> element?
a. Private key is stored locally. public key is sent to the client
b. Private key is stored in server. public key is stored locally
c. Private key is sent to the client. public key is stored locally
d. Private key is stored locally. public key is sent to the server
25. Use of <embed> tag?
a. Used to embed plugin
b. Used to embed text
c. Used to embed canvas
d. Used to embed JS
26. Which tag defines a caption for <figure> element?
a. <form>
b. <figure>
c. <figcaption>
d. <output>
27. Elements which are not supported in HTML5?
a. <font>
b. <q>
c. <menu>
d. <ins>
28. HTML5 is a cooperation between WWW Consortium and
a. XML
b. XAML
c. HTML
d. WHATWG
29. Which tag is obsolete and not supported in HTML5?
a. <dd>
b. <br>
c. <b>
d. <big>
30. Out of following options, which is new element in HTML5?
a. <noframes>
b. <site>
c. <div>
d. <canvas>

Sensitivity: Internal & Restricted


Sensitivity: Internal & Restricted

You might also like