Posts

Showing posts with the label HTML MCQ

Top 10 html MCQ with Answers

Image
Top 10 HTML  MCQ With Answers   1]  CSS  full form?  color and style sheets Cascade style sheets Cascading style sheets None of the above Answer:  3) Cascading style sheets 2]  Which of the following is the correct syntax for external style sheet? <style src="example.css> <style src= example.css> <stylesheet> example.css </stylesheet> <link rel="stylesheet" type="text/css" href="main.css"> Answer:  4) <link rel="stylesheet" type="text/css" href="main.css" 3]  The property in CSS use to change the background color of element ? bgcolor background-color color All of the above Answer:  (c) background-color 4]  The property in CSS use to change the text color of   element bgcolor background-color color All of the above   Answer:  3) color 5) The CSS property use to control the element font-size text-size text-style font-size N...

Top 15 html MCQ with Answers

Image
Top 15 HTML  MCQ With Answers   1] What is the purpose of the <a>  A)  To insert images B) To define a paragraph C) To create a hyperlink D) To create headings Answer: C) To create a hyperlink  2] <a> tag specifies URL of the link destination A) link B)  src C)  url D) href Answer: D) href 3] Which of the  NOT a valid target value for the <a> tag  A) _parent B) _top C) _newtab D) _self Answer: C) _newtab 4] Which tag is commonly used with <a>  tag to define navigation link? A) <nav> B) <section> C) <header> D) <footer> Answer: A) <nav> 5] What attribute is used to group radio buttons  A) value B) group C) name D) id Answer: C) name 6] How can you hide a radio button but functional? A) display: none; B) visibility: hidden; C) opacity: 0; D) Both A and C Answer: D) Both A and C 7]  HTML element for creating a dropdown list? A) <dropdown> B)  <option> C)<sel...

Top 20 html MCQ with Answers

Image
  Top 20 HTML  MCQ With Answers  1] <form> tag  specifies where to send form data A) action B) enctype C)method D) target Answer: A) action 2] <form> tag specifies how form data should be sent? A) enctype B) method  action C) method  D) name Answer: C) method 3] What are the valid value for the method attribute A) get, send B)send, receive C) get, post D) send, post  Answer: C) get, post 3] default method if the method attribute is not specified? A) POST  DELETE B) PUT C) GET D) POST  Answer: C) GET 4] Which input type is use for passwords? A) text B) password C) secure D) pass Answer: B) password 5] Which element is used to create a dropdown menu in a form? A) <dropdown> B) <select> C) <option> D) <checkbox> Answer: B) <select> 6] Which attribute makes an input field required? A) required B) mustfill C) validate D) mandatory Answer: A) required 7] What input type allow users to select multiple optio...

Top 10 HTML MCQ

Image
   Top 10 HTML  MCQ With Answers  1] Where should the <script> tag be placed when linking an                                       external JavaScript file? A) Inside <head> B) Inside <body> C) Before </html> D) Any of the above Answer: D) Any of the above 2] How do you correctly link an external JavaScript ? A) <script src="script.js"></script> B) <link rel="script" href="script.js"> C) <meta script="script.js"> D) <js src="script.js"></js> Answer: A) <script src="script.js"></script> 3] Which tag is use to define the favicon for a website? A) <meta icon> B) <favicon> C) <link rel="icon"> D) <icon>  Answer: C) <link rel="icon"> 4] What file types are commonly use for favicons? A) .png B) .ico C) .svg D) All of the above Answer: D) All of the above 5] What is the ...

Top 10HTML MCQ With Answers

Image
Top 10 HTML  MCQ With Answers  1] correct html tag to display an image?     a) <image>    b) <img>    c) <picture>   d) <src> Answer : b) <img> 2] <img> tag attribute    a) src   b) title   c) href   d) a  Answer a) src   3]  Syntax for a HTML comment?   a)  //comment   b)  /* comment */   c)  <!-- comment -->   d) { comment } Answer c) <!-- comment--> 4]  Correct HTML tah for creating a table?    a)  <tr>    b)  <td>    c)  <th>    d) <table> Answer d) <table> 5] what tag use define a row html table?      a) <tr>      b) <td>      c)  <th>      d) <row> Answer a) <tr> 6)  what tag use define cell inside table row   ...

Top 15 HTML MCQ With Answers part(8)

Image
 Top 15 HTML  MCQ With Answers  1] heading tag should contain most important keywords for seo use?       a) <h1>  b) <h7>   c) <h5>  d) <h6> Answer a) <h1> 2] how does google treat <h1> tags?    a] primary heading for seo   b] paragraph   c] link   d] goole ignores <h1> tag Answer a) primary heading for seo   3] can <h1> styled using css?   a)  yes   b) no   Answer a) yes 4] what is the purpose of the <q> tag in html language?      a) To display quoted text    b) large text   c) create a blockquote   d) insert images Answer a) to display quoted text 5] which attribute is commonly use <q>  tag?   a) cite   b) src   c) alt   d) href Answer a) cite 6] which tag is use for long quotations in html language?   a) <blockquote>   b) <q>   c) <em>...

Top 10 HTML MCQ With Answers part(7)

Image
 Top 10 HTML  MCQ With Answers  1] What is the largest heading tag in HTML language a)  <h6> b)  <h4> c)  <h3> d)  <h1> Answer:   d)  <h1> 2]  How many heading tags  in HTML language? a) 4 b) 11 c) 6 d) 7 Answer:   c) 6 3]  Which of the following is  smallest heading tag in html language? a)  <h1> b)  <h3> c)  <h6> d)  <h2> Answer:   c)  <h6> 4]  Which HTML tag is used to define a main heading in html language? a)  <head> b)  <h1> c)  <title> d)  <p> Answer:  b)  <h1> 5] correct sequence of heading tag from largest to smallest in html language  ? a)  <h1> ,  <h2> ,  <h3> ,  <h4> ,  <h5> ,  <h6> b)  <h6> ,  <h5> ,  <h4> ,  <h6> ,  ...

Top 15 HTML MCQ With Answers part(6)

Image
Top 15 HTML  MCQ With Answers  1] What is the correct file extension for a HTML files? a) .htm b) .html c) .css d) .web Answer: a 2] What is the purpose of the <br>? a) To break text into two columns b) To insert a line break c) To add a border d) To insert a blank line Answer: b 3] How can you create a numbered list in HTML language? a) <ul> b) <ol> c) <li> d) <nl> Answer: b 4] Which attribute is use to specify a unique identifier for an HTML tag? a) class b) name c) style d) id Answer: d] id 5] Which tag is used to link an external CSS file in the <head> section in html tag? A) <css> B) <link> C) <style> D) <script> Answer: B) <link> 6] What is the purpose of the used to <meta charset="UTF-8"> tag? A) Defines the page language B) Specifies the character encoding C) Links JavaScript files D)  Loads external stylesheets  Answer: B) Specifies the character encoding 7]  Which <meta> tag ...

Top 25 HTML MCQ With Answers(part 5)

Image
Top 25 HTML  MCQ With Answers 1] Which of the following is client-side scripting language a) JavaScript b)PHP c) HTML d) Java Answer: a) JavaScript 2] Which tag is use to include JavaScript in an HTML file? a) <java> b) <javascript> c) <script> d) <scripting> Answer: c) <script> 3] JavaScript is a _______ language. a) Server-side- language b) Client-side c) Compiled d) Assembly Answer: b) Client-side 4] What is the correct syntax for external JavaScript file? a) <script src="script.js"> b) <script href="script.js"> c) <script ref="script.js"> d) <script link="script.js"> Answer: a) <script src="script.js"> 5] Which function is used to display an alert box in JavaScript language? a) alertBox() b) msgBox() c) alert() d) display() Answer: c) alert() 6] Which keyword is define a JavaScript variable? a) var b) let c) const d) All of the above Answer: d) All of the above 7]What will ...