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

HTML mock QA Set-1 (1)

html mock questions

Uploaded by

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

HTML mock QA Set-1 (1)

html mock questions

Uploaded by

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

z

PENTAGONSPAC SET-1
E
1.
PENTAGONSPAC
What is HTML5?
It is a frontend part used to design a webpage using Markup Language.

2. E
What are elements in HTML5?
An element in HTML defined by a starting tag with some content and ending
tag.

3. What are attributes in HTML5?


All HTML elements have attributes and provides additional information about
element. Attributes are always specified in the start tag.

4. PENTAGONSPAC
What is CSS and what is its relationship with HTML5?

E
HTML5 and CSS are of the core technologies for building web pages. HTML5
provides structure to web page CSS provides styles to the webpage.

5. What are input elements in HTML5?


The input element represents a typed data field, usually with a forms control to
allow the user to edit the data.

6. What is meant by web storage in HTML5?


The web storage is one of the great features of HTML5, with the web storage

PENTAGONSPAC
features, web applications can locally store data within the browser on the client
side. Web storage is also known as DOM storage.

7. E
How do you link to another web page using HTML5?
The <a>(anchor) tag defines a hyperlink and is used to link from one page to
another.

8. What are the three types of lists in HTML5?

 Ordered list
 Unordered list
 Nested list

9. What are the key benefits of HTML5?

 HTML5 promotes accessibility


z
 HTML5 provides support both video and audio
 HTML also allows for game development

10. What is the role of formatting tags in HTML5?


The formatting tags can be used to set the text styles (like bold, italic)
highlighting the text, making text superscript and subscript etc.

PENTAGONSPAC
11. What types of graphics are supported by HTML5?

E
The following technologies are used in web graphics with HTML5 like canvas API,
CSS, JPG, PNG etc.

12. What is a marquee?


Marquee tag is a non-standard HTML element that causes text to scroll up, down,
left, or right automatically.

13. What are tag in HTML?


HTML tags are keywords (tag names) surrounded by angle brackets like
<html>.HTML tags normally come in pairs like <p> and </p>. The first tag in a
pair is the start tag, the second tag is the end tag.

14. Define an image map in HTML?


An image map helps in linking with different kinds of web page using single
image.

15. Define forms in HTML.


Forms in HTML are required when we want to collect the user information
whenever a user fills any form or provides any details and when we want to save
it into our database.

16. What is button tag?


The button tag is used in HTML 5. It is used to create a clickable button within the
HTML form on the web page. It is generally used to create a "submit" or "reset"
button. Let's see the code to display the button.
Example:<button name="button" type="button">Click Here</button>

17. What are the different types of headings in HTML?

 There are six types of heading tags in HTML which are defined with the
<h1>to<h6> tags.
 Each type of heading tag displays different text size from another.
z
 <h1> is the largest heading tag and <h6> is smallest heading tag.

PENTAGONSPAC
E
18. What is the use of the span tag? Explain with example
The span tag is used for the following
 For adding color on text
 To add background on text
 Highlight any color text

Example: <span style=”color:#ffffff;”> text </span>

19. What are some of the new input types in HTML5?


HTML5 introduces several input types like date, time, week, month, email, url,
color and number. To improve user experience and to make the forms more
interactive.

20. What is web technology?


It refers to various tools and technology. Utilized to communicate with many
devices over internet.
PENTAGONSPAC
E
21. What is the role of DOCTYPE in HTML5?
All HTML pages need to have their document type declared in the first line of
code. DOCTYPE instructs the browser how to interpret the document by indicating
what type and version of markup language are being used.

22. What are the new tags for multimedia in HTML5?


HTML5 introduces some new multimedia tags like <audio>, <video>,
<source>, <embed>, <track>.

23. What is webpage?


It is a digital document for storing the information to www that can be
viewable by anyone through web browser.

24. What is web server?


It is software and hardware or combination of both which is responsible for
storing and delivering the data.

25. What is current version of HTML?


HTML 5 is the current version.
z

26. What is <div> tags?


Tag defines a division or a section in HTML document.

27. How can HTML5 web pages be optimized?


 Don’t use inline styles
 Don’t use inline scripts
 Reduces unnecessary whitespace and blank lines

28. Are all HTML tags applied in pairs?


No, The HTML tags are not always applied in pairs because some don’t need a
closing tag.

29. What is the difference between a block-level element and an inline element?
The differences between block-level elements and inline elements are:

Block-level Elements Inline Elements

Do not start on a new line and can begin within a


They start on a new line.
line.

Take up as much width as necessary. Its width only


Stretch to fill the full width available to them.
extends as far as it is defined by its tags.

Inline elements do not have a top and a bottom


They have a top and a bottom margin.
margin.

Examples of block-level elements in


Examples of inline elements: <span>, <img>,
HTML: <div>, <img>, <form>, <main>, <table>,
<strong>, <input>, <time>, <i>.
<video>.

30. Will HTML5 work if I don’t use <!DOCTYPE html>?


No, the HTML 5 tags won’t work properly and the browser won’t be able to tell
that it’s an HTML document.

31. Which HTML tag is used to display the data in the tabular form?
The HTML table tag is used to display data in tabular form (row * column).
z

32. What is the use of the required attribute in HTML5?


It forces a user to fill text on the text field or text area before submitting the form.
It is used for form validation.
Example: Name: <input type="text" name="name" required>

33. What is alt attribute in HTML?


The alt attribute is used to display a text in place of an image whenever the
image cannot be loaded in case of any technical issues.

34. What is colspan and rowspan?


Colspan is the attribute used to merge one or more columns. Rowspan is the
attribute used to merge two or more rows

35. What are various formatting tags in HTML?

 <b> - makes text bold.


 <i> - makes text italic.
 <big> - increases the font size of the text by one unit.
 <small> - decreases the font size of the text by one unit.
 <sub> - makes the text a subscript.
 <sup> - makes the text a superscript.
 <del> - displays as strike out text.
 <mark> - highlights the text.
z

You might also like