You are on page 1of 5

1. What is the HTML article element?

Ans. The HTML <article> Element requires objective and independent matter in a document,
page, application, or site, which is independently distributable or reusable

The HTML article element list:

• Forum post
• Blog post
• Newspaper article

2. What is an empty element?

Ans. An empty element is an HTML element that has no content. Example <br>

3. HTML heading tag?

Ans. HTML heading tag total 6.

<h1></h1>

<h2></h2>

<h3></h3>

<h4></h4>

<h5></h5>

<h6></h6>

4. What type of audio files can be played using HTML5?

Ans. HTML5 supports the following three types of audio file formats:

• Mp3
• WAV
• Ogg
5. Explain the layout of HTML?

Ans. -- <header>: It is used to define a header for a document or a section.

-- <nav>: It is used to define a container for navigation links

-- <section>: It is used to define a section in a document

-- <article>: It is used to define an independent, self-contained article

-- <aside>: It is used to define content aside from the content (like a sidebar)

-- <footer>: It is used to define a footer for a document or a section

6. How to use iframe tag?

Ans. Syntax:

• <iframe src="URL"></iframe>

Example:

• <iframe src="data_iframe.html" width="200px" height="200px"></iframe>

Target to a link:

• <iframe src="http://www.azizulhakim.com" name="iframe_a"></iframe>


7. What are the different new form element types in HTML 5?

Ans. Below I explain new elements in HTML 5:

§ Color
§ Date
§ Datetime-local
§ Email
§ Time
§ Url
§ Range
§ Telephone
§ Number
§ Search

8. how we use required attribute in HTML5?

Ans. We are used required attribute for form validation also here example below :

• Name: <input type="text" name="name" required>

9. How to create hyperlink in HTML?

Ans: We use the anchor tag <a> to create a hyperlink in HTML that links one page
to another page.

10. How you add buttons in HTML?

Ans. <button name="button" type="button">Click Here</button>

11. How use in drop down list in HTML?

Ans. <label for="flower">Choose a flower:</label>

<select name="flower" id="flower">

<option value="rose">Rose</option>

<option value="black rose">Black Rose</option>

</select>
12. How to we use underline text in HTML?

Ans. <u> tag is used for underline the text. The <u> tag was deprecated in HTML, but then they
re-introduced in HTML5.

13. Who invented HTML?

Ans. The inventor of HTML Tim Berners-Lee.

14. Why do we use doctype in HTML?

Ans. Doctype is used for Document Type Declaration and also It informs the web browser
about the type and version of HTML used in building the web document.

15. How can you insert a copyright symbol in HTML webpage?

Ans. To insert the copyright symbol you can use the “&#169” as well as “&copy” in the HTML
file.

You might also like