HTML Interview Questions

Ques: What is root element ?

Ans:<html> is the root element.

Ques: What is difference between div and span tag ?

Ans: div is block level element and span is content level element.

Ques: What are listing elements ?

Ans: <ol> and <ul> are listing elements.

Ques: Tell me name of any block level element, inline-block level element and inline element.

Ans: Block Level Elements – <div>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>
Inline Block Level Element –
<span>
Inline Element – <button>

Ques: What is difference between bold and strong tag in HTML ?

Ans: <b> makes only look as bold while <strong> tag emphasize the text as important. Text in <strong> tag will have more importance.

Ques: What is optgroup ?

Ans: This tag is used to group related options in drop down.
For Example –
<select id=”cars”>
<optgroup label=”Maruti Cars”>
<option value=”swift”>Swift</option>
<option value=”spresso”>Spresso</option>
</optgroup>
<optgroup label=”Honda Cars”>
<option value=”city”>City</option>
<option value=”brio”>Brio</option>
</optgroup>
</select>

DATA TRANSFER Using FTP Server..

How to Establish FTP connection for fast data transfer between Mobile to PC :

Turn on your wi-fi in laptop
download and install any ftp server app (that you may trust) in your android mobile.
imp : set root directory to “internal Storage” or External Storage which ever you wish to link with FTP server and start the app FTP by pressing “Start” button.

How to Establish FTP connection for fast data transfer between Mobile to PC :

  1. Turn on your wi-fi in laptop
  2. download and install any ftp server app (that you may trust) in your android mobile.
  3. imp : set root directory to “internal Storage” or External Storage which ever you wish to link with FTP server and start the app FTP by pressing “Start” button.
  4. turn your mobile data off.
  5. Imp : turn your FTP service Internet Access Off.
  6. Open desktop/laptop file explorer and click on “My PC” and right click than select>> network locations area & select>> “add new network location”.
  7. click next on first window of setup wizard.
    8 imp : cancel the prompted “Connect to the internet” dialog popup and select the “Add Network Location” which is default minimized on taskbar.
  8. click “Next” and enter the “ftp server” address (provided by the mobile FTP Server app) and click “Next”.
    10 . keep the connection as anonymous or mention the user name provided by the FTP Server App and press “Next”.
    11 In Next Window, Name your connection or remain it default, it would not bother you anywhere else.

your FTP connection will be established When you follow all the steps mentioned above and a icon will appear on the “Network location area” showing the name of FTP you have choosen during connection setup.