Html Interview Questions

HTML Interview Questions

How to learn HTML:

INTRODUCTION

Definition of HTML.

*HTML means Hyper Text Markup Language
*An HTML file can be created by using a simple text editor
*An HTML file must have an htm or html file extension
*An HTML file is a text file containing small markup tags

*The markup tags tell the Web browser how to display the page
If we want to try HTML then……………..

*First we have to start running windows and start notepad

*If we are on a Mac, start Simple Text

Rules for HTML program…………….

*The program contains mainly three tags they are

1.html
2.head
3.body

*Every tag should contain one open tag and close tag

EXAMPLE 1 :

<html>
<head>
</head>
<body>
</body>
</html>

< > this is open tag and </ > this is closed tag

1. Head tag contains only titles of the website, documents, pages etc?????
2.? What we want as output we need to write in body tag.

EXAMPLE 2 :
<html>
<head>
<title>SRIHITHA TECHNOLOGIES</TITLE>
<style type=”text/css”>
<!–
.style1 {color: #FF0000}
–>
</style>
</head>
<body>

<h1 align=”center” :=”” red=””>SRIHITHA TECHNOLOGIES</h1>
<b><u><ol type = “a”> OFFERED COURSES </u></b>
<h3>
<li>SEO</li>
<li>PHP</li>
<li>JAVA</li>
<li>WEB DESIGNING</li>
<li>C,C++</li>
</h3>

</body>
<html>

*another important thing is that we have to save the file as “name.html”.

How to start an html program:

First we have to start our internet browser . Select “Open”in the File menu of your browser.

A dialog box is opened.select file and locate the HTML file (?name.html?) just you created, select it

And open. Now you see an address in the dialog box like “C:\Mycomputer\name.html”. then the browser will display the page

Explanation for example 2:

The first tag in our HTML document is? ? <html>??. This tag tells to our browser that this
is the start of an HTML document.

The last tag in our closed HTML document(</html>). This tag is for ?END? symble.

Some more HTML TAGS

1. <h1>and</h1>, from h1 to h6

Hear h1 tag is header tag and h6 tag is lower tag

2.<b>and</b>

<b> is used for bold the document

3.<u>and</u>

<u> is for under line the document

4.<i>and</i>

<i> is for italic

5.<ol>and</ol>

<ol> is called order list

6.<ul>and</ul>
<ul> is called unorderlist

7.<p>and</p>
It is used for to start a paragraph

8.<br>
It is used for to break aline

9.<li>and</li>
This is called list

Note: <br> tag has no closing tag