Hello Friends,
Here in this post we will read what is html, its definition, and various formatting tag and at last we will do some practice of question also.
HTML Question Answer
Definition:-
It is a markup language which is used to define the layout and attributes of a World Wide Web document used to create links between web pages.
Formatting tags in HTML?
- <b>– makes text bold
- <i>– makes text italic
- <del>– displays as strike out text
- <strong>– marks the text as important
- <mark>– highlights the text
- <ins>– displays as added text
- <em>– makes text italic but with added semantics importance
- <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
- <i>– to give italic style
- <u>– to underline the text
- <mark>– to highlight some text
- <del>– to strikethrough some text
Target attributes
HTML provides a hyperlink – <a> tag to specify the links in a webpage. The ‘href’ attribute is used to specify the link and the ‘target’ attribute is used to specify, where do we want to open the linked document. The ‘target’ attribute can have the following values:
- _self: This is a default value. It opens the document in the same window or tab as it was clicked.
- _blank: It opens the document in a new window or tab.
- _parent: It opens the document in a parent frame.
- _top: It opens the document in a full-body window.
——— Here Are The some Question for your practice ———
Q1. HTML Stands for……..
- Hypertext Markup Language
- Hypertest Markup Language
- Hypertext Mean Language
- Hypertext Module Language
Answer : – Hypertext Markup Language
Q2. HTML is designed by ……..
- Tim Berners Lee
- Charles Babae
- Mark Jukerberg
- Sun Mircrosoft
Answer :- Tim Berners Lee
Note: – It is designed in 1990 at CERN
Q3. HTML is subset of………
- SCMD
- SGML
- SGMT
- All of these
Answer : – SGML
Note:- SGML (Standard General Markup Language). It is high level markup language.
Q4. Web pages starts with which of the following tags ?
- < body>
- < title>
- <form>
- <html>
Answer : – <html>
Q5. WWW is based on which model.
- local server
- client server
- 3 tier
- none of these
Answer : – 3 tier
Q6. Correct HTML tag for largest heading is…….
- <head>
- < H6>
- <heading>
- <H1>
Answer : – <H1>
Q7. What is the correct HTML for adding a background color.
- <background < yellow <Background>
- <body color = “yellow”>
- <body bg= “yellow”>
- <body bgcolor= “yellow”>
Answer : – <body bgcolor= “yellow”>
Q8. tag is used to start a paragraph?
- <td>
- <br>
- <p>
- <tr>
Answer : – <p>
Q9. tag used for stating descriptive list ?
- <dd>
- <ds>
- <dl>
- <ll>
Answer : – <dl>
Q10. Which of the tags is used to create a number list ?
- <ll>
- <ol>
- <li>
- <li> or <ol>
Answer : – <ol>
Q11. Which is correct syntax for adding a link to the image.
- <a src=”http://www.xyz.com/image”><img src=”path of image” /></a>
- <a href=”http://www.xyz.com/image”><img src=”path of image” /></a>
- <a src=”http://www.xyz.com/image”><img href=”path of image” /></a>
- <link href=”http://www.xyz.com/image”><img src=”path of image” /></link>
Answer : – <a href=”http://www.xyz.com/image”><img src=”path of image” /></a>
Q12. Comments in HTML is done by…..
- <?– –>
- <!– –>
- <!– –!>
- </– –>
Answer : – <!– –>
Q13. Which tag is used for left align in table cell.
- <td left>
- <td align = “left”>
- <td raligh = “left”>
- <td left>
Answer : – <td align = “left”>
Q14. <DIR> tag can have only…………characters.
- 18
- 22
- 12
- 24
Answer : – 18
Q15. Which symbol is used to start HREF text.
- $
- #
- %
- !
Answer : – #
Q16. <dt> tag is designed to fit a ………….line.
- single
- multiple
- full paragraph
- word
Answer : – single
Q17. <dd> tag is designed to fit a ………….line.
- single
- multiple
- full paragraph
- word
Answer : – full paragraph
Q18. Tag used to create a hypertext relationship between current document and other URL.
- <ISINDEX>
- <A>
- <LINK>
- <HREF>
Answer : – <A>
Q19. Total No of level are in HTML is/are.
- 4
- 1
- 6
- 5
Answer : – 4
Note :- These are Level O, Level 1, Level 2,Level 3
Q20. which is/are the HTML Meta Tags form the following
- DOCTYPE
- title
- link, meta and style
- All of these
Answer : – All of these
Q21. Which is/are the attributes of Image Tags.
- scr
- title
- alt, height, width
- All of these Ans:- All of these