HTML Interview Questions

Question 101:Which attribute in HTML5 allows a media element to start playing automatically when the page is loaded?
Question 102:What does the target attribute in an HTML form element specify?
Question 103: How do you create a multi-line text input field in an HTML form?
Question 104: Which tag is used to define the header of a document or section in HTML5?
Question 105:Which attribute is used to group several form controls together in an HTML form?
Question 106: Which of the following elements in HTML defines an image map?
Question 107:What does the downloadattribute in an HTML link (<a>) tag do?
Question 108:Which HTML element defines the main content of a document?
Question 109: How do you make an image a clickable link in HTML?
Question 110:How can you specify a form control that is mandatory in HTML5?
Question 111: How do you specify that a script should be executed asynchronously in HTML5?
Question 112: Which HTML5 element is used to display contact information for the author or owner of a document?
Question 113: What is the correct HTML element to define important text?
Question 114: How do you specify an image to be displayed in a responsive manner in HTML?
Question 115: Which HTML5 element defines a self-contained piece of content?
Question 116: What is the default encoding type for form data submission in HTML5?
Question 117: Which element is used to mark an element that is no longer relevant or accurate in HTML?
Question 118: What is the purpose of the <small> element in HTML?
Question 119: Which HTML element is used to create a navigation link?
Question 120: How can you create a footer for a webpage in HTML5?
Question 121: What attribute can be used to specify a fallback option for an image in an <img> tag?
Question 122: Which tag is used to create a description list in HTML?
Question 123: What does the async attribute do when added to a <script> tag?
Question 124: What type of list does the <ul> tag create in HTML?
Question 125: Which of the following elements is used to represent a single line of code in HTML?
Question 126: How do you add a custom data attribute to an HTML element?
Question 127: What is the purpose of the novalidate attribute in an HTML form?
Question 128: How do you make a text area in an HTML form automatically resize to fit its content?
Question 129: Which of the following is a semantic HTML5 element?
Question 130: How do you add an HTML comment that will not be displayed in the rendered page?
Question 131: What is the purpose of the <cite> element in HTML?
Question 132: Which attribute in the <video> tag allows for controls like play, pause, and volume?
Question 133: Which of the following is true about the <form> tag in HTML?
Question 134: How do you specify that a list item is selected in an HTML <select> element?
Question 135: Which of the following elements is used for a block-level quote in HTML?
Question 136: What is the purpose of the alt attribute in an <img> tag?
Question 137: Which attribute is used to specify the relationship between the current document and a linked document?
Question 138: What does the data-*attribute in HTML5 allow developers to do?
Question 139: How do you include an external CSS file in an HTML document?
Question 140: Which HTML element is used to define a section in a document?
Question 141: How do you create a link that automatically opens the user's email client?
Question 142: What does the controls attribute do in a <video> tag?
Question 143: Which HTML element is used to represent a collection of related links?
Question 144:What does the <ins> tag represent in HTML?
Question 145:Which element defines a section that is tangentially related to the content around it?
Question 146: How do you specify a required input field in HTML5?
Question 147:What is the default behavior of <input type="radio"> elements?
Question 148:How do you create a placeholder in an input field?
Question 149:Which tag is used to define a navigation bar in HTML?
Question 150:What does the <mark> element do in HTML?

Showing 101-150 of 500 questions

Contact Tech Spakes Training