Monday, November 20, 2017

HTML Quiz

1)Who introduced HTML?
Tim Berners Lee

2) how to add paragraph color in HTML?
<p style="color:red">I am a paragraph</p>

3) How to add heading font size in html?
<h1 style="font-size:60px;">Heading 1</h1>

4) how to add horizontal rule in HTML?<hr>

5) Why use <br> tag in HTML?
Line break

6) Why use <pre> Tag in Html?

7) How to add body background color in HTML?
<body style="background-color:powderblue;">

8) how to add font in html?
<h1 style="font-family:verdana;">This is a heading</h1>

9) how to add text alignment in html?
<h1 style="text-align:center;">Centered Heading</h1>

11) Tags’ function?
<b> - Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Marked text
<small> - Small text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup> - Superscript text

12) how to write comment in html?
<!-- Write your comments here →→

13) why we use comments in html?
Developers easy to understand what they have written

14) <h1 style="border:2px solid Tomato;">Hello World</h1>
What is output?

Hello World

15) how to add link html?
<a href="https://www.w3schools.com/html/">Visit our HTML tutorial</a>

16) why we use <th> tag in html?
Table Header - Used to write Table Headings

17) what is different between an order list and an unordered list?
Order list are in Numbers like 1,2,3 or Roman Letters or a,b,c letters..
Unorder list are some shapes like disc,circle and square.

18) how to write an order list in html?
<ol>
<li> List </li>
</ol>

19) how to write an unordered list in html?
<ul>
<li> List</li>
</ul>

20) why use <marquee> tag?
To move Text right and left or bottom to top.

21) how to add video in html ?
<video> tag
<embedded> tag

22) how to insert text box in html from?
  <input type="text" name="firstname"><br>

23) how to inser redio button in html from?
<input type="radio" name="gender" value="male" checked> Male<br>

24) how to add submit button in html from?
  <input type="submit" value="Submit">

25) <fieldset> <legend> why we use these tags?
To limit the form using lines

26) how to create drop-down list n html?
<select name="cars">
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="fiat">Fiat</option>
  <option value="audi">Audi</option>
</select>

27) what is different for textbox and textarea?
Text area we can write so many characters,... but textbox has limited characters

28) how to write textarea in html?
<textarea name="message" rows="10" cols="30">
The cat was playing in the garden.
</textarea>

29) how add password in html?
<input type="password" name="psw">

30) why use reset button and how write reset button?
  <input type="reset">

31) how to ADD checkbox in html?
<input type="checkbox" name="vehicle1" value="Bike"> I have a bike<br>

32)  What HTML Stands for?
Hyper Text Markup Language

33) How to define a link in HTML?
<a href="URL">Url Description </a>

34) How to define a image in HTML?
<img src="IMG URL">

35)  What are Block Elements? Give some examples?
Block elements which cannot be write in a tag. They have to be written in a new tag.
<pre>, <div>

36) Give some examples to Inline Elements?
<a>  <p> <h1>

37) What are the ways we use, to save HTML Documents?
  • .html
  • .hml

38) What is a web browser?
Web browser is a software used to browse web pages.

39) What is a tag?
An element between < and > symbols are Tags.
Eg: <b> , <p> , <h1>

40)  What is an element?
element is a text used inside a tag.

41) What CSS Stands for?
Cascading Style Sheet

42) The function of “pre” tag?
Pre tag will show  in the webpage as what is written on html code... With same spacing and shapes and design

43)How many heading tags are there?
h1, h2 , h3 , h4, h5, h6

No comments:

Post a Comment