You are on page 1of 43

R4R provide basic HTML Tutorials concept with HTML Examples .

Through R4R you can develop HTML programming concept. R4R provide HTML Interview Questions with answers.R4R provide HTML Languages study materials in easy way.

HTML Tutorials
1.1 HTML Basic

HTML Interview Questions with Answers


2.1 2.2 2.3 2.4 HTML Subjective Questions with Answers HTML Interview Questions with Answers HTML Objective Questions And Answers FAQS

Introduction Of HTML:
HTML stand for Hyper Text Markup Language : Hyper is the opposite of linear. It used to be that computer programs had to move in a linear fashion. This before this, this before this, and so on. HTML does not hold to that pattern and allows the person viewing the World Wide Web page to go anywhere, any time they want. Text is what you will use. English letters, just like you use everyday.. Markup is what you will do. You will write in plain English and then mark up what you wrote. Language. Some may argue that technically html is a code, but you write html in plain, everyday English language. HTML stands for HyperText Markup Language. Developed by scientist Tim Berners-Lee in 1990, HTML is the "hidden" code that helps us communicate with others on the World Wide Web (WWW). When writing HTML, you add "tags" to the text in order to create the structure. These tags tell the browser how to display the text or graphics in the document.

As It is explained in the Venn diagram XHTML is a subset of HTML and XML. XHTML combines the flexibility of HTML with the extensibility of XML. HTML Tags: HTML markup tags are usually called HTML tags * * * * HTML tags are keywords surrounded by angle brackets like <html> HTML tags normally come in pairs like <b> and </b> The first tag in a pair is the start tag, the second tag is the end tag. Start and end tags are also called opening tags and closing tags.

Some important tags :

Structure Of HTML:

History Of Html: HTML which is short for Hypertext Markup Language is the official language of the World Wide Web and was first conceived in 1990. HTML is a product of SGML (Standard Generalized Markup Language) which is a complex, technical specification describing markup languages, especially those used in electronic document exchange, document management, and document publishing. HTML was originally created to allow those who were not specialized in SGML to publish and exchange scientific and other technical documents. HTML especially facilitated this exchange by incorporating the ability to link documents electronically using hyperlinks. Thus the name Hypertext Markup Language. Why Learn HTML? It is possible to create WebPages without knowing anything about the HTML source behind the page. You can use tags the editor does not support. You can read the code of other people's pages, and "borrow" the cool effects. You can do the work yourself, when the editor simply refuses to create the effects you want. Advantage Of HTML: 1. First advantage it is widely used. 2. Every browser supports HTML language. 3. Easy to learn and use. 4. It is by default in every windows so you don't need to purchase extra software. 5.Very similar to XML syntax, which is increasingly used for data storage. 6.Easy to learn & code even for New programmers Disadvantages of HTML: 1. It can create only static and plain pages so if we need dynamic pages then HTML is not useful.

2. Need to write lot of code for making simple webpage. 3. Security features are not good in HTML. 4. If we need to write long code for making a webpage then it produces some complexity. Difference Between HTML And DHTML: HTML: 1. Html stands for Hyper Text Markup language. 2. The pages of the site do not require any special processing from the server side before they go to the browser. Means the pages are always the same for all visitors - static. 3. html does not allow any kind of features. 4. Html sites going solely upon client-side technologies. 5. HTML is a language. 6. HTML documents describe web pages, contain HTML tags and plain text. DHTML: 1. Dhtml stands for Dynamic Hyper Text Markup language. 2. DHTML uses client side scripting to change variables in the presentation which affects the look and function of an otherwise static page. 3. DHTML allows us some extra features. 4. Dhtml sites going fast upon client-side technologies. 5. DHTML is not a language or a web standard. 6. DHTML is the art of combining HTML, JavaScript, DOM, and

Basics HTML Tutorials Introduction of HTML History of HTML Why HTML Steps to build a Html Document Components of HTML TAGS List of tags used in Html Formatting tags Lists tags

Table tags Html forms Html frames Html colors INTRODUCTION OF HTML HTML is a markup language. HTML stands for hypertext markup language. HTML is predominant markup language. HTML is the set of markup tags. HTML Tags are used to describe web pages. Web Browser read the html documents and display them as web pages. HTML can be used to embedded images and objects to create interactive form. HTML is a markup language it is not a programming language. so it is a set of markup tags Tags are generally comes in pairs for every opening tag there should be a closing tag . opening tags are <html> and <body> and their corresponding closing tags are </html> and </body> respectively. SAMPLE PROGRAM
<html> <body> <b> html sample program</b> </body> </html>

HISTORY OF HTML It was physicist Tim Berners_ Lee who was a contractor at CERN proposed and prototype Html to share documents over internet. the idea behind the development of html was to provide facilities to the researchers to use prior data and to share data over the internet.

Berners_Lee specified HTML and wrote the browser and server software in the late 1990.first publicly available description of HTML was a document called HTML tag. it describes 20 elements comprising the initial relative simple design of HTML .In its earlier incarnation [an error occurred while processing this directive] HTML was a formatting language. its entire responsibility was simply to manage the basic formatting of hypertext documents. Format controls were limited to items such as headers and paragraphs and limited text formatting such as bold and italic. since 1996 the HTML specifications have been maintained ,with input from commercial software vendors ,by the world wide web consortium . DIFFERENT VERSION HISTORY HTML 1.0 It was first release of HTML. there were not much to do with it .only simple text was put on the website . HTML 2.0 It was improved version of HTML with the original specifications and with some new features. this version defined various core features of HTML. this version of HTML was came in use from 1995. this version was used to represent news ,mail documentation and hypermedia, menus of options, quarry of database simple structured documents with in lined graphics, and hypertext views of existing bodies of information. HTML3.2 This version was published in January 1997 .this was the firs version which fulfills the specifications of W3C.this version was developed as per the rules of W3C.maths formulas were completely removed from this version .they came in use after some modifications in the later version which came on use after 14 months of this version.

HTML4.0 This was recommended by W3C in late 1997 but it became official in April 1998. this version adopted various browser specific element types and attributes. this version was revised and it became HTML4.01 it supporting presenting language CSS as new improved feature. HTML4.01is the final version of specification WHY HTML

HTML stands for hyper text markup language .it is a markup language not a programming language . it is easy to understand .it is easy to build a website using html because html provides everything for building a website from tables, to forms , frames and along with Javascript it provide validity to forms .to get inputs from users the html works with java script. XML is another mark up language which works with HTML and validate the data base .html needs no special software because it runs on browser .therefore it is cheap to build a website using HTML. HTML provides various elements and attributes which are easy to understand . web browser reads the html documents and display them over web pages. HTML is flexible language almost every browser can support it. Html provide various features like embedded objects and images to create interactive forms. so, there are various reasons to use Html.

ADVANTAGES OF HTML HTML has various advantages few of them are listed below EASY TO USE HTML is a language which is easy to use and to understand for new programmer. all elements and attributes of html are easily under stable FLEXIBLE Loose syntaxes of HTML makes it flexible almost every browser can support it.

WIDELY USED As it easy to use it is use to build almost every website. FREE TO USE No special software is required to buy for HTML as it is run on browser CASCADING STYLE SHEET HTML has a feature of using cascading style sheets It is used to design ,align elements and text. Cascading Style Sheets design what HTML has made .Cascading Style Sheets can not be used alone. it is used with HTML . DISADVANTAGES OF HTML It cannot produce dynamic output as it is static language. Sometimes the structuring of HTML document is hard to understand. Security features offered by HTML are limited. STEPS TO HTML DOCUMENT Before moving forward let us understand the step by step creation of html document. 1.first tag <html> This is starting tag of html document it tells the browser that it is a html document. 2.then write second tag called <head> This is second tag which is defined in any html document .various tag can be defined inside the <head> tag .which are tags like<title>,<base>,<link>,<meta>,<script> instruct the from it find the information 3.the next tag defined in any html document is the <title> tag. Information place in this tag appears in the browser's title bar. 4.The <body> tag is the next tag which defines after the <title> tag

Inside this tag all the information is placed which is to displayed on the screen. THE STRUCTURE OF HTML DOCUMENT <html> <head> <title > this is html </title> <body> </body> </title> </head> </html> COMPONENTS OF HTML There are three three Foundational components of HTML. Tags Attributes Values TAGS The main part of HTML command is tag (technically it is referred as elements) HTML documents are defined by HTML elements. Tag is a identity of html tag says to "do this". modifications makes tag powerful. and these modifications are done by attributes. There are general rules about html tags... 1.All standard tags are contained within the less than(<) and greater than(>) symbols as follows <html> called opening tag. 2.There are no space between the the symbols and the tags .as follows

[an error occurred while processing this directive] <html> 3.Add a forward slash before the tag to denote the tag closure. as follows </html> called closing tag. 4.There must be closing for every opening tag. ATTRIBUTES Attributes modify the action of tags. some tags works properly without attributes but some requires attributes for function. as <html> tag and its companion closing tag needs no attribute because this is just to tell about the beginning of html document and ending of it. but <body> tag and its companion tag </body> needs attribute because this tag denotes the area of html document that will be viewed within the browser .attributes are often whole words some times they are partial words. whole word attributes include align ,link, color and face. partial word examples are src for "source" ,and "vlink" for visited links . VALUES Values are the defining aspects of attributes and they modify the tags. several values for align tag are left ,right ,center and justify. let us understand it in terms of font a font requires some size and some color .the value which we pass for color and size are called the values for the attributes size and color. eg.<font size="3" color="red"> this is some text</font> here <font> is a tag size and color are the attributes and 3 and red are the values of attributes. <html> <head> <body> <font size="3" color="red"> here is the example to understand the difference between tag ,attribute and values</font> </body>

</head> </html> GENERAL TAGS LISTS Here we discussed html tags one by one with examples . GENERAL TAGS REQUIRED FOR HTML the very first is <!DOCTYPE> It is not the tag it is a instruction to the browser about what mark up language in which the page is written. it comes before the html tag. the <html>tag This tag is the starting tag of html program it tells the browser that it is a html document. <html> <head> <title>the title of document is html document></title> </head> </html> the <head> tag It contains all the head elements like<title>,<base>,<link>,<meta>,<script> <html> <head> <title > this is html document</title> </body> it contains all the data which is to be appears on the screen </body> </head> </html> The <title> tag This tag contains the information which appears on the browsers title bar. <html>

<head> <title> my html document</title> <body> it contains text which is to be displayed on the screen </body> </head> </html> The <body> tag this tag contains the text which is to displayed on the the screen the above example of <title> tag also contains the body tag . Heading tag <h> Heading tag is used to give heading to the document. its range goes from <h1>-<h6>.the size of font goes larger to smaller from <h1> to <h6> <html> <head> </body> <h1> this is my html document</h1> <h2> this is my html document</h2> <h3>this is my html document</h3> <h4>this is my html document</h4> </body> </head> </html> <a>tag also called link tag this is an anchor tag .it is used to link to another document using href attribute and to create a bookmark inside the document by using the name attribute. <html> <body> <a href="http:// www.r4r.co.in"> visit the site</a>

</body> </html> <abbr> tag This tag describes an abbreviation <html> <body> <abbr title ="R4R CO IN>E-Learning </abbr> Solution. </body> </html> <img> tag image tag has no closing tag .it is used to display images on the web page. it works with src attribute. html image tags are <img/> it defines the image <map> it defines an image map <area/> defines area inside the map syntax for image tag <img src="url" alt="some_text"/> alt is attribute used to give alternate text for the image LIST OF TAGS USED IN HTML

There are number of tags which are used in html. following is the list of html tags used in html documents. Ordered list of html tags TAGS <!--...--> <a> </a> DESCRIPTION It is used to define comments as <!..this is a comment, comments are not displayed on the browser..> It defines an anchor .it used to link another document as <a href

="http://www.r4r.co.in/>E Learning Solutions</a> It described abbreviated phrase as <abbr title ="Indian Standard <abbr> </abbr> Organization">ISO</abbr> It defines an acronyms as Can I get this <acronym title="as soon as <acronym> </acronym> possible">ASAP</acronym> It defines the contact information for the owner of the document. <address></address> as<address><a href mailto me at xyz.com></a> address : h.no.4 new York contact no.12536</address> <applet> </applet> It defines an embedded applet It defines the area inside image map as <imag src="x"/><map <area /> name="x map"<area></map> <b></b> It defines text as bold as <b> this is text</b> It specifies default address or default target for all links on page as <base /> <base href="http://www.r4r.co.in/images/" /> <base target="_blank" /> It defines default font and size of text as <base font color="black" <basefont /> size="5"/> It specifies the text direction as <bdo dir="rtl">Here is some text! <bdo></bdo> </bdo> <big></big> It is used to format the text as<big>Big text</big> It defines long quotation as <blockquote> here the some <blockquote></blockquote> text</blockquote> It defines the body of html document which is to displayed on the <body></body> browser. as <body> here some text</body> It is used to break the page without using paragraph tag as <br /> <body>here is <br> some text</br> <button></button> It defines a push button. as<button type="button">submit</button> <caption></caption> It defines the table caption as<caption>Monthly savings</caption> It is used to define the text centrally as<center>This text will be <center></center> centered.</center> <code></code> It defines computer code tag. as<code>Computer code text</code> <col /> It defines attributes values for one or more columns. <colgroup /> It defines group of columns. It defines description of term in definition list.as<dt>Coffee</dt> <dd></dd> <dd>- black hot drink</dd> It defines deleted text.. as<p>My favorite pet is <del>dog</del> <del></del> <ins>dog</ins>!</p> <dfn></dfn> It defines a definition term. as <dfn>Definition term</dfn> <dir></dir> Used to define directory list.

<div></div> <dl></dl> <dt></dt> <em></em> <fieldset></fieldset> <font></font> <form></form> <frame /> <frameset/> <h1> to <h6> <head> <hr /> <html> <i> <iframe> <img /> <input /> <ins> <isindex> <kbd> <label> <legend> <li> <link /> <map> <menu> <meta /> <noframes> <noframes> <object> <ol> <optgroup> <option>

Used to define section in a document.. Used to define the definition list.. It define the term in definition list. It defined emphasized text .used for text formatting. as< em>Emphasized text</em> Defines border element in a form. It is used for text formatting. For user input it defines form in html. It divided the window of browser. Define window in frame set Used to give heading to the html document. It defines the information about the document It defines horizontal in html document as <html> this is html document</html> It tells the browser that text inside html tag is html document. It is used for text formatting ,it makes text in italic format It defines inline frame It is t o define image in html document It used to define input controls in a form Used to define inserted tag It defines searchable index related to document Used to define keyboard text Used to define label for input element Define caption for field set element It defines list item It defines link to another document It defines image map Use for menu list Used for meta data for html document Defines an alternate content for users that do not support frames Defines an alternate content for users that do not support client-side scripts Defines an embedded object Defines an ordered list Defines a group of related options in a select list Defines an option in a select list

<p> <param /> <pre> <s> <samp> <script> <select> <small> <span> <strike> <strong> <style> <sub> <sup> <table> <tbody> <td> <textarea> <th>

<thead>

<title>

<tr> <tt> <u>

<ul>

Defines a paragraph It Defines a parameter for an object It Defines preformatted text Defines strikethrough text Defines sample computer code Defines a client-side script Defines a select list (drop-down list) Defines small text Defines a section in a document Defines strikethrough text Defines strong text Defines style information for a document Defines subscripted text Defines superscripted text Defines a table Groups the body content in a table Defines a cell in a table Defines a multi-line text input control as<textarea rows="2" cols="20">this is html</taxtrea> Defines a header cell in a table Groups the header content in a table as<thead> <tr> <th>Month</th> <th>Savings</th> </tr> </thead> Defines the title of a document as <title> this is html document</title> Defines a row in a table as<tr> <td>January</td> <td>20000</td> </tr> Defines teletype text as<tt>Teletype text</tt> Defines underlined text as <p>Do not <u>underline</u> Defines an unordered list as<ul> <li>vegetables</li> <li>fruits</li> <li>nuts</li> </ul>

<var>

Defines a variable part of a text

TAGS FOR TEXT FORMATTING There are lots formatting tags in html which are used for data formatting but few of them are explained with examples rest given with their description

[an error occurred while processing this directive] Paragraph tag<p> The html document is divided into paragraphs <html> <head> <title > this is html document</title> </body> it contains all the text<p> which is to be appears on the screen </p> </body> </head> </html> The <Br> tag This tag is used if you want to add a break in lines of text without dividing the text into paragraphs. <html> <head> <title > this is html document</title> </body> it contains all the text<br> which is to be appears on the screen </br> </body> </head> </html> The<I> Tag the italic tag<I> is used for formatting the tag in italic

<html> <head> <title > this is html document</title> </body><I> it contains all the text<br> which is to be appears on the screen </I> </br> </body> </head> </html> The <b>tag is used to bold the text of the document .otherwise it defines just like <I> tag <body><b> this is html document written in bold characters</b> The <u>tag defines same as <I> and<b> tags used for text formatting. EXCEPT ABOVE TAGS THERE ARE VARIOUS TAGS USED FOR DATA FORMATTING WHICH ARE LISTED BELOW WITH THEIR DESCRIPTION <big> Defines big text <em> Defines emphasized text <small> Defines small text <strong> Defines strong text <sub> Defines subscripted text <sup> Defines superscripted text <ins> Defines inserted text <del> Defines deleted text LIST TAGS

<list>tag there are various list tags which are used to arrange the information in logically order. Lists then strengthens document logically ,organizationally and visually. to understand list tag following tags are must to understand <ul>...</ul> unordered or bulleted list tag <ol>...</ol> ordered or number list <LI> list item tag used to list the items <DT>...</DT> definition term which is a part of definition list

<DD>...</DD> definition within the definition list order list <OL> it shows the document in sequentially numeric values unlike unordered or bulleted list. ordered list can be of various types like number lists ,lower case letters list ,letters list, roman numbers list <html> <head> <title>list</title> </head> <body> <h2> letters list</h2> <p> <OL> <LI>fruits <LI>vegetables <LI>dairy products <LI>sweets <LI>snacks </OL> </p> </body> unordered list<UL> it shows the document in bulleted unordered form its format is just like ordered list except <OL>tag replaced by <UL> tag Definition list tag <dl> <dt> tag <dd> tag is called the element of html. TABLES TAG The <tables> tag tables are defined with <table>tag

there are some sub tags under table tag <tr> table row tag as tables are divided into rows and columns. each raw is divided into data cells .data cells tag is <td>which holds the content of data cells <td>tag contains links , images ,lists, forms and other tables <th> tag information on table header define with <th> tag <table border="1"> <tr> <th>Header 1</th> <th>Header 2</th> </tr> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> tables with caption <html> <body> <table border="2" <caption> monthly savings</caption> <tr> <th>month</th> <th>savings</th> <th> expenditure</th> <th> earning</th> </tr> <tr> <td> january</td> <td>2000</td> <td>1800</td> <td>20000</td> </tr> <tr> <td> february</td> <td>1500</td>

<td>18500</td> <td>20000</td> </tr> </table> </body> </html> OTHER THAN THE ABOVE TAGS OF TABLE TAG FEW MORE TAGS ARE AVAILABLE IN HTML <colgroup> defines group of columns in a table ,<col/>define attribute values for one or more columns in a table HTML FORMS Html forms are used to take inputs from the user and the pass data to the server . The important element of the form are the input element which is used to select users information. an input element varies in many ways depending upon the type attribute. radio button , submit button , checkbox, password are the various input elements. <form> is a tag which is used to create a html form syntax for html form <form> define input elements </form> SOME HTML TAGS WITH THEIR DESCRIPTION <form> This tag defines a HTML form for user input . <input /> This tag is used to defines an input control ,it creates data entry field on html form <textarea> Text area tag is defines a multi-line text input control <label> Label tag defines a label for an input element <fieldset> Border around elements in a form define by it <legend> defines a caption for a fieldset element

<select>drop-down list is define by select tag <optgroup> This defines a group of related options in a select list <option>It defines an option in a select list [an error occurred while processing this directive] <button>Push button is defined by this tag DIFFERENT HTML FORMS INPUT ELEMENTS WITH EXAMPLE Text field, password field , radio button, submit button are the input elements of form. These are used to select users information. TEXT FIELD defines the one line input field in which the user can enter the data/information <form> <input type="text"name="First name" />First name <br/> <input type="text"name="Last name" />Lastname </form>

PASSWORD FIELD this field is used to set the password for the user or user set password itself . <form> First name:<input type="text"name="First name" /> <br/> Last name:<input type="text"name="Last name" /><br/> Pasword:<input type="password" name="pwd"/><br/> </form> CHECK BOXES Check boxes makes it easy for the user to select number of options from multiple options <form> <input type="checkbox" name="vehicle" value="Bike" /> I like bikes <br /> <input type="checkbox" name="vehicle" value="Car" /> I love car </form

RADIO BUTTON These button are used to make single choice from number of choices. while filling the form user has to be selected one option out of the more options<form> <form> <input type="radio" name="sex" value="male" /> Male<br /> <input type="radio" name="sex" value="female" /> Female </form>

SUBMIT BUTTON Submit button is used to send data from form to the server . in submit button the attribute defines the file name that file is basically needs to do something with the getting input <form name="input" action="html_form_action.asp" method="get"> Username: <input type="text" name="user" /> <input type="submit" value="Submit" /> </form> DROP DOWN LIST

Drop down list the input element of html form tag which provide facility to the user just to drop and down the prior mention list of item which are store inside the drop down button. <html> <body> <form action=""> <select name="year of passing"> <option value="year of passing">year</option> <option value="2008">2008</option> <option value="2009">2009</option> <option value="2010">2010</option> </select> </form> </body> </html>

HTML FRAMES Frames allow you to divide the page into several rectangular areas and to display a separate document in each rectangle. Each of those rectangles is called a "frame". Frames are very popular because they are one of the few ways to keep part of the page stationary while other parts change. Frames are also one of the most controversial uses of HTML, because of the way the frames concept was designed, and because many web framed web sites are poorly implemented. Frames can divides the window vertically as well horizontally [an error occurred while processing this directive] HTML FRAME TAGS <frameset> This defines a set of frames <frame /> It defines a sub window (a frame) <noframes> It defines a noframe section for browsers that do not handle frames <iframe> This defines an inline sub window (frame) <frameset cols="45%,555%"> <frame src="frame_a.htm" /> <frame src="frame_b.htm" /> </frameset> As frame set divides the browser window into columns here in above example the browser window is divided the first column is the 45% width of the browser window and second column is the 55% width of the browser window. frame size can also be set in pixels as (cols="200,500"), and one of the columns can be set to use the remaining space, with an asterisk (cols="25%,*"). HTML COLORS

The quality of your web page design always increased when you use colors in sophisticated manners. If you use colors that don't have enough contrast your site visitors will have trouble while reading your pages. you should choose colors that makes visual as well as artistic sense. [an error occurred while processing this directive] the values which attributes has taken while giving colors to the text can either be defined color name or hexadecimal values.

<html> <head> <title> adding body attributest</title> <body bgcolor="#FFFFFF" text="#000000" link=#"CCCCCC" vlink="#999999" alink="#FFFFFF"> These are the few imporatnt links <p> <a href="http://www.r4r.co.in/">Java Tutorials</a> <p> I like the site becouse I like the contents and design of site </p> </body> </head> </html> alink Active link alink="#FFFFFF" this is the color that is appears when the link is made active when a mouse clicks it or passes over the link , depending on the browsers you using. vlink Visited Link This is the visited link. As with the link attribute ,if you don't set this with a value ,the browser will look for a default (usually purple) or a user defined setting . vlink="#999999" bg color Background color

bg color="#FFFFFF" this sets the color that will fill your background, browser used to default to be very ugly grey. bacground="url" only use this attribute when you want to include background graphic on your page.
HTML Interview Questions And Answers

Page 1
Ques: 1 WHAT is the HTML? Ans: HTML stands for Hyper Text Markup Language.It is a markup language which is use to develop web pages. Using them we can describe our document into the form of text based information.For achieving that goals it has many tags like title,head,paragraph, table etc.In HTML we write tags surrounded with angle brackets.We can you some scripting language like JavaScript to display HTML doc in more attractive way. Some main features of HTML are given below: 1.It is markup language. 2.It has provided pre-defined tags. 3.We save HTML file by using one of two extensions .htm or .html. 4.It uses markup tags to display on web pages. Ans: HTML is hyper text markup language and used for static pages Ans: Hyper text markup language Ques: 2 What do you know about HTML tags? Ans: HTML tags decided how HTML file is look like on web page.I have given you some basic information about HTML tags. 1.In HTML,every keyword should be surrounded with open and closed with angled brackets. Example:<html>,<body>,<title>,<head> etc. 2.HTML tags are not case sensitive means that suppose if we open <Html> tags than we can closed this tag with <html>. 3.When we open an HTML tag it should we have to closed tag.Like: <a>....</a> 4.In the above point tag (<a>) is called the open tag.where as tag</a> is called the end tag. Example: <head> <body> ..... ..... </body> </head> Ques: 3 What are basic HTML tags how we use them? Ans: I have shown you some basic HTML tags with their example: 1.Heading<h1...h6>:Range of HTML headings is from h1 to h6.When we go h1 to h6 its headings become larger and bold. Example: <h1>Write HTML heading between those tags</h1>

<h2>Write HTML heading between those tags</h2> ........ ........ <h6>Write HTML heading between those tags</h6> 2.Paragraph<p>...</p>:We write paragraph in HTML by using <p>.....</p> tag. Example: <p>Write here a paragraph</p> 3.Link:Using this we can link our HTML file with some other files. Example: <a href="http://www.R4R.co.in"></a> 4.Image:It is used to describe the image in HTML. <img src="welcome.gif" width="200" height="75" /> Ques: 4 Can we write a comment into the HTML? Ans: Yes,HTML provide us facility to write comments on HTML file.Comments that we write on HTML file are ignored by the browser so it will not display on browser. Syntax: <!-- Here write your comment --> Example: <html> <body> <!--Which you here not will diplayed on browser--> <p>R4R Welcomes You!</p> </body> </html> output: R4R Welcomes You! Ans: <!---!> Ques: 5 How to use Line Break and Horizontal Line tags in HTML? Ans: In HTML we use <br /> to break the line without started any new paragraph. Syntax: <br /> In HTML <br /> has no end tag. Example: <p>Hello<br />client<br />R4R Welcomes You!</p> output: Hello client R4R Welcomes You! For creating horizontal line we use <hr /> in HTML. Syntax: <hr /> Example: <p>This is upper level</p> <hr /> <p>This is middle level</p> <hr /> <p>This is bottom level</p>

Both <br /> and <hr /> called as empty tags. Because their is no end tag for them. Ques: 6 How you achieve text formatting in HTML? Ans: Using Text formatting we can change the over all view of the sentence.like that: Example: <b>This is bold text <i>This is a italic text I have given you some basic formatted tags. <b> Used to create bold text <big> used to create big text <em> used to emphasized text <i> Used to made italic text <small> Used to create small text <strong>used to made strong text <sub> Used to subscripted text <sup> Used to superscripted text <ins> Used to inserted text <del> Used to deleted text <s> Deprecated. Use <del> instead <strike>Deprecated. Use <del> instead <u> Deprecated. Use styles instead Ques: 7 What are the output tags? Ans: HTML provide some output tags that are given below: <code> Used for computer code text <kbd> Used for keyboard text <samp> Used for sample computer code <tt> Used for teletype text <var> Describe a variable <pre> Describe preformatted text <listing> Deprecated. Use <pre> instead <plaintext> Deprecated. Use <pre> instead <xmp> Deprecated. Use <pre> instead Ques: 8 How you define elements in HTML? Ans: Basically HTML element are those who define the structure of HTML document.It is used to arrange the content of HTML is an appropriate manner. Element may be of headings, links, paragraphs and structures etc. When you want to create any HTML element than keep these points in mind. 1.Element should open with the start tag. 2.After that can include attributes with their values.Like: name="Abhi" 3.Than you write content.Like:This is our first HTML page. 4.and close with end tag.(but is optional when you want to create an empty element than their is no need to close your open tag)In HTML your content may be empty. Example: <p name="Abhi">My first HTML page</p> |Open|Attribute name| Content |End| |tag |with value | |tag| --------------HTML element---------------Ques: 9 What is the nested element in HTML?

Ans: In HTML we create nested element mostly. Example: <html> <body> <title>This is my first HTML page.</title> <p>HTML is used to create static pages.</p> </body> </html> In the above example we have given you four HTML element. First HTML element start with <html> and end with</html>. Second HTML element start with <body> and end with</body>. Third HTML element start with <title> and end with </title> Fourth HTML element start with <p> and end with </p>. Ques: 10 What is Empty HTML element? Ans: When HTML element does not have any content.Than those element are called as Empty element.Empty element does not have any end tag. Example: <br />(It is an empty element which is used to break line.) Because it is an empty element than their is no need to close them. To use empty element is only on HTML.Because in XHTML,XML and new versions of HTML does have provided this types of element. Ques: 11 HTML is case sensitive or not? Ans: No, HTML is not a case sensitive language.In this we can use an uppercase HTML tags or lowercase HTML tag both.Means in the case of HTML both tags <title> and <TITLE> are same.But we have try to use lowercase tags.Because new versions of HTML support only lowercase tags.Like: HTML 4 Ques: 12 How you define Attributes in HTML? Ans: Using Attributes we can give us more information about HTML elements.Many times in HTML we use Attributes with their associated value. For assigning the value to attributes we use'='operator. In an one HTML element can have many attributes.We use Attributes with in start tag of HTML. Below I have given you some attributes with their values. style="color:red;" border="1" href="http://www.r4r.co.in" title="This is our first HTML page." I have given a example.How to use above three attributes together. Example: <p border="1" href="http://www.r4r.co.in" style="color:red;" title = "This is our first HTML page."></p> Ques: 13 Attibutes names and their values are case-sensitive or not? Ans: Yes,Attributes and their values are case-sensitive. Both should be write on lowercase letters.In new versions of HTML W3C(World Wide Web Consortium) strongly said to use lowercase letters.Like: HTML 4,XHTML etc are use lowercase attributes with values should be write on lowercase letters. Ques: 14 how you define HTML Attribute Reference?

Ans: I have given you some Attribute with their description.These are. style This attribute use to style inline rules to an element. Synatx:<a style="value>.......</a> bgcolor This is use to set background color. Syntax:<a bgcolor="value">....</a> we use color values in Hexadecimal code. href This is used for the linking. Syntax:<a href="value? phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0b88acea2d2a3935 15f6bf38f2">.......</a> size This is used to set the font size. Syntax:<a size="value">.......</a> title Those I wrote on this display on tooltip. Syntax:<a title="value">.......</a> Ques: 15 How you define HTML Style Attribute in HTML? Ans: We use Style Attribute in HTML how the text look like in HTML.Using Style we can implement the CSS in HTML. I have given you some examples which show use of Style in HTML. 1.style="background-color:red" 2.style="font-size:15px" 3.style="font-family:verdana" 4.style="text-align:left" Example: <html> <body style="background-color:yellow;"> <h1>Style Attribue</h1> <p style="font-family:verdana;color:green"> This is my first HTML page where I use style attribute</p> </body> </html> Ques: 16 What are the Deprecated Tags and Attributes? Ans: Basically Depreciated Tags and Attributes are those that are only used in HTML 4.Means they are old Tags and Attributes that are not supported in the new versions of HTML,Like:XHTML.Because those are not used in future than we should have to avoid the use of them. I have given you list of these Depreciated Tags and Attributes are given below: List of Deprecated Attributes are: color This is used to set the text color. align This is used for Horizontal alignment of table and frames with the value uf center,left and write. bgcolor This is used to set background color. List of Deprecated Tags are: <u> This is used to underlined the text. <font> This is used to set HTML font. <strikeout>This is used to strikeout the text. <center>This is used to centered the content. Ques: 17 How you define HTML link?

Ans: Using the HTML link we can addressed the page, document or file on the web browser.I have given you example how to link the HTML page. Example: <html> <body> <p> R4R Welcomes You! You are on the right place.Definitly your queries will gone when you proper visit that site. </body> </html> save this page with welcome.htm <html> <body> <p> <a href="welcome.htm? phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0b88acea2d2a3935 15f6bf38f2"> message from R4R</a>This link is linked with welcome page of R4R. </p> </body> </html> Ques: 18 What are the Hyperlink,Anchors and Link in the HTML? Ans: Using Hyperlink we can address the page or file on the web browser.These are may be of image, sound or movie file etc. Using Anchors we can define the hyperlink destinatiion inside a document. We use <a> tag to define the hyperlinks and anchors. Ques: 19 How you define href,target and name Attributes? Ans: href Attribute is used to address the page and document on the web page. Syntax: <a href="http://www.r4r.co.in/">see R4R</a> target Attributes are used to told about that where the document will open those linked. <a href="http://www.r4r.co.in/" target="_blank"> see R4R</a> name Attribute is used to set the anchor name in the HTMl document. We named Anchor like that, <a name="label">Write content here</a> We can linked the named anchor like that, <a href="#label">Write content here</a> Ques: 20 How to link the Images with in HTML? Ans: I have given you syntax how to set images on HTML document. Syntax: <html> <body> <p> An image:<img src="r4rlogo.gif"width="140" height="40"> </p> <p>

Using this link you can see the logo of r4r.</p> </body> </html>

HTML Interview Questions And Answers

Page 1
Ques: 1 What do you understand about DOCTYPE in HTML? Ans: DOCTYPE is stands for Document Type Declaration.In an HTML every HTML document is started with DOCTYPE declaration.It may be differ for different versions of HTML.DOCTYPE is used only bySGML tools like as HTML validator. Example of Document Type Declaration in HTML 4 are, <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Ques: 2 How Cell Padding is differ from Cell Spacing? Ans: I have given you how cell padding is differ from cell spacing given below: Cell Padding: Cell Padding in HTML: is used to define the how much space need b/n cell content and cell edges. Syntax: < table width="200" border="1" cellpadding="3"> means that it takes 3 pixels of padding inside the each cell. Cell Spacing: It is also used to format the table.but it differ than cell padding because in cell padding we can set an extra space to seperate the cell content with cell edges.Where as we use cell spacing to set the space b/w the cells. Syntax: < table width="200" border="1" cellspacing="10"> We can use cell padding and cell spacing together like that, < table width="200" border="1" cellpadding="3" cellspacing =10> Ques: 3 How you define index document? Ans: Many times we have require index.htm / document because it is a standard for the host-server to look for the document and deploy it.Default document to be displayed in the web. Ques: 4 How you define HEAD in HTML? Ans: Head is placed before the body in the HTML.It is use to display only the general information or unordered collection to information about the HTML document. Ans: head tag is the first tag in html. it helps to give title of the page. Ques: 5 How you define SPAN in HTML? Ans: We use SPAN by using <SPAN> tag in HTML.Syntax:<SPAN>............</SPAN>Used to highlightthe any color text, for adding colored text, for adding background image to text. SPAN not a cause of line break. It delimits text and using them we can use style to the \'elemental\' region without any break in Text.

Example: p> <span style="color:#FF0000;"> In this page we use span. </span> </p> Ques: 6 How you define body in HTML? Ans: Body in HTML specifies the all contents of the document.Means that it contain the text,images, colors,graphics etc. Ques: 7 How you display an picture in background of HTML? Ans: We can display an picture in background of HTML page using that code. Syntax: <body style="background-image:url(image path)"> Ques: 8 What is Semantic in HTML? Ans: I have given two reasons of use Semantic HTML. 1.Always avoid the use of markup that present you HTML document.Like: element, attribute etc. 2.Try to use available markup to differentiate the meanings of phrases and structure in the document. Example: <cite class="booktitle">The Grapes of Wrath</cite> Above,the <cite> element is used because it most closely matches the meaning of this phrase in the text. Ques: 9 How to differ width=200 and width=200%? Ans: There are many differences b/w width="200" and width="200%".I have given you main difference.If you want create a table set width="200".Means that width of table is 200 which is fixed.But When we write width="200%" then 200% table will display in its full view and can changed according the resolution and browser. Example: Where, I use both width="200" and width="200%". <html> <head> <title>Shows the difference of width="200" and width="200%"</title> </head> <body> <table width="200%" border="1" cellspacing="0" cellpadding="0"> <tr> <td>width=&quot;200%&quot;</td> </tr> </table> <br /> <table width="200" border="1" cellspacing="0" cellpadding="0"> <tr> <td>width=&quot;200&quot;</td> </tr> </table> </body> </html>

Ques: 10 How to blink text in IE6? Ans: Content that we write b/w the <blink> tag will blink on HTML page. Syntax: <blink>text want to blink</blink> Ques: 11 How you use scipts on HTML? Ans: We use scripts on HTML page for making HTML page Dynamic. TO use scripts on HTML page we use <script> tag. Example: <html> <head> </head> <body> <script type="text/javascript"> document.write("R4R Welcomes You!") </script> </body> </html> output: R4R Welcomes You! Ques: 12 How you define HTML Frames? Ans: Using HTML Frames we can show more than one HTML document on the same browser.Where as each HTML document is called Frame. We use Frames using <frameset> tag.It is used to divide windows into frames. Using frame tag we put HTML document into the each frame. Example: <frameset cols="25%,75%"> <frame src="frame_first.htm? phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0b88acea2d2a3935 15f6bf38f2"> <frame src="frame_second.htm? phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0b88acea2d2a3935 15f6bf38f2"> </frameset> 25% and 75% specifies the width of the page.Above frame told that frame_first aquire the 25% area on the web browser and frame_second aquire the 75% area on the same same web browser. Ques: 13 How you use Form's Action Attribute and Submit Button in HTML? Ans: Using Submit Button we can sends the form to the server and Action Attribute is specified that which file we send. <form name="input" action="submit_form.php" method="get"><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" /> Formname: <input type="text" name="Form"> <input type="submit" value="Submit"> </form> When we click the sumbit button web page than the submit_form is send to the server. Ques: 14 How you use Text Field,Radio Button and Checkbox in Form?

Ans: We use above in the <input> tag of the form. Text Field: We used Text fields when we want that user entered like letters, numbers etc. in a form. Example: <form><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" /> User name: <input type="text" name="username"> <br> Password: <input type="password" name="password"> </form> Radio Buttons: We use Radio Buttons when we want that user select one of a limited number of choices. Example: <form><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" /> <input type="radio" name="Gender" value="male"> Male <br> <input type="radio" name="Gender" value="female"> Female </form> Checkboxes: We use Checkboxes When we want that user can select one or more options of a limited number of choices. Example: <form><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" /> I have a computer: <input type="checkbox" name="electronicdevice" value="Computer"> <br> I have a TV: <input type="checkbox" name="electronicdevice" value="TV"> <br> I have a AC: <input type="checkbox" name="electronicdevice" value="AC"> </form> Ques: 15 How you understand about Forms output? Ans: Using Forms in HTML we can select client input in different manner. In form is use to contain form elements.Using Form elements we can allow the user to enter information (like: text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc.) in a form. We start form by using <form><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" /> tag. <form><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" /> <input> <input> </form>

Ques: 16 How you define list in HTML? Ans: In HTML we can create ordered,unordered and definition list. HTML list is like that. List *This is first item *This is second item *This is third item *This is fourth item Ordered List: Ordered list define as list of items and they are fully numbered.Our ordered list start with <ol> tag and end with <li> tag. <ol> <li>Abhi</li> <li>Vivek</li> <li>John</li> </ol> output: 1. Abhi 2. Vivek 3. John Unordered List: Unordered list define as list of items and they are write with small black circles.Our ordered list start with <ul> tag and end with <li> tag. <ul> <li>Abhi</li> <li>Vivek</li> <li>John</li> </ul> Definition List: It is not only a list of items. In create list of item with their description. Description list start with <ud> tag and end with <li> tag.In this we list each item by using <dt> and write their description by using <dd> tag. Example: <dl> <dt>Pepsi</dt> <dd>Black cold drink</dd> <dt>Slice</dt> <dd>Yellow cold drink</dd> </dl> output: Pepsi Black cold drink Slice Yellow cold drink We can use <p>(paragraph),<br />(line break), <img>(image),list etc. inside the above three list. Ques: 17 Write some useful table tags that we use in HTML? Ans: I have display the list of some tags that we used in HTML table.These tags are: <table> This is started tag of table.All other table tags works inside this tag. <th> This is used to write header on table. <tr> This is used to create row on table.

<td> This is used to create table cells. <caption>This is specifies the table caption. <colgroup>Specifies the group of columns in table. <col> Using then we can set the attribute value for one or more columns in table. <thead> This is used to set table head. <tbody> This is used to set table body. <tfoot> This is used to set table border. Ques: 18 How to create headings and empty cells in table? Ans: Any thing that we write b/w <th>.....</th> tag are display as table heading. Example: <table border="1"> <tr> <th>Heading of column 1</th> <th>Heading of column 2</th> <th>Heading of column 3</th> </tr> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> <tr> <td>row 3, cell 1</td> <td>row 3, cell 2</td> </tr> </table> than table will generated on web browser looks like, Heading of column 1 Heading of column 2 row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2 row 3, cell 1 row 3, cell 2 We can create an empty cell with in table like that, <table border="1"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td></td> </tr> <tr> <td></td> <td>row 3, cell 2</td> </tr> </table> Now, than our HTML table looks like, row 1, cell 1 row 1, cell 2

row 2, cell 1

row 3, cell 2 If your does not show the border line around empty cell than you can write &nbsp;(called space) between the tags of empty cells. Like:<td>&nbsp;</td> Ques: 19 How to create tables in HTML? Ans: We use <table> tag to create the table in HTML. After creating an table we use <tr> tag to create the rows.And use <td> to create data cell on each row.These cell can store images,text,tables,list etc. Basic syntax to create an Table are given below: <table border="1"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> <td>row 1, cell 3</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> <td>row 2, cell 3</td> </tr> </table> Ques: 20 How we define Src Attribute and Alt Attribute in HTML? Ans: We use Src Attribute and Alt Attribute with the image tag(<img>).Image tag is an empty tag.So, their is no need to close img tag. we use src(stands for source)for load the image on the HTML page.Syntax:<img src=\"write here the address or location of image\"> We use Alt Attribute to define the image which you loaded with src Attribute.Syntax:<img src=\"image.gif\" alt=\"Description of image\">Example:<img src=\"logo.gif\" alt=\"R4R logo\"> Some image tags are given below: <map> It is used to define image map. <img> It is used to define an image. <area>Using this we can create the area.Those area we want show as clickable.

HTML Interview Questions And Answers

Page 1
Pos To Sho t ta w You l Last Ans r P Post wer Ans os s wer ts s Sho 25 Post w You neetu kaur Ans r

Questions

Who develops HTML? a. WWW b. W3C c. AT&T

d. Bell

wer s

Ans wer s

We a. b. c. d.

send and receive HTML file using which protocol? SMTP POP3 HTTP FTP

Post Sho You w r neetu Ans 7 Ans kaur wer wer s s Post Sho You w r neetu Ans 6 Ans kaur wer wer s s Post Sho You w r neetu Ans 5 Ans kaour wer wer s s Post Sho You 04.08. w r 09 Ans 2 Ans aksha wer wer t s s Post Sho You w r VP Ans 3 Ans Gupta wer wer s s

Which sequence of HTML tags are correct? a. <html><head><title></<title></head><body></body></html> b. <html><head></head><body><title></<title></body></html> c. <html><head><title></<title><body></body></head></html> d. <html><title></<title><head></head><body></body></html>

Which command we use to link a page with an HTML page? a. <a link=\"page.htm\" ></a> b. <a href=\"page.htm\"? phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0 b88acea2d2a393515f6bf38f2 ></a> c. <a connect=\"page.htm\" ></a> d. <a attach=\"page.htm\" ></a> Which command used to create HTML Link? a. <a highlight="r4r.in">When press open R4R website</a> b. <a hyperlink="r4r.in">When press open R4R website</a> c. <a href="r4r.in? phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0 b88acea2d2a393515f6bf38f2">When press open R4R website</a> d. <a bluetext="r4r.in">When press open R4R website</a>

Which command we use to add an Image? a. <image src="url"> b. <img src="url"> c. <src img="url"> d. <img srcimg="url">

What will extension for SSI? 1 .shtml 2 .html 3 .htm 4 .jsp 5 .None

Post 08.01. Sho You 11 w r pawa Ans 3 Ans n wer wer saxen s a s Post 31.03. Sho You 10 w r Rajes Ans 1 Ans h wer wer Kuma s r s Post 31.03. Sho You 10 w r Rajes Ans 1 Ans h wer wer Kuma s r s Post Sho You w r 31.03. Ans 1 Ans 10 wer wer s s Post 31.03. Sho You 10 w r Rajes Ans 1 Ans h wer wer Kuma s r s Post 31.03. Sho You 10 w r Rajes Ans 1 Ans h wer wer Kuma s r s Sho 2 Post w You krishn araj Ans r

How we can include header and footer into our HTML page? 1. Using SSI include 2. Using JSP include 3. Using Asp include 4. All of the above 5. None

What is correct syntax for SSI to include server header.html? 1. 2. 3. 4. <!--#include <!--#include <!--#include <!--#include file="hreader.html" --> path="hreader.html" --> url="hreader.html" --> uri="hreader.html" -->

What is correct syntax for SSI to include server header.html? 1. <!--#include file="hreader.html" --> 2. <!--#include path="hreader.html" --> 3. <!--#include url="hreader.html" --> 4. <!--#include uri="hreader.html" --> 5.<!--#include virtual="/r4r/hreader.html" -->

The file attribute is used when we have to include the within same directory. When we have in different directory then we use attribute in server side include tag? 1. True 2. Flase

How you can Config and Echo the date using SSI include script 1.<!--#config timefmt="%a" --> 2. <!--#echo var="DATE_LOCAL" --> 3.Both of 1,2 4.None We have use CSS class into our html .But we have divide our page without break line. Which of following we have to use? 1.<div> </div> 2.<span></span>

3.<p> 4. None Choose true option : 1.HTML create 2.HTML create 3.Both 4.None allow images and objects to be embedded on web page to interactive forms by using some script. allow images and objects to be embedded on web page to interactive forms by using tags. of the above

wer s

Ans sekha wer r s

Post 31.03. Sho You 10 w r Rajes Ans 1 Ans h wer wer Kuma s r s Post 31.03. Sho You 10 w r Rajes Ans 1 Ans h wer wer Kuma s r s Post Sho You w r VP Ans 2 Ans Gupta wer wer s s Post 31.03. Sho You 10 w r Rajes Ans 1 Ans h wer wer Kuma s r s Post 31.03. Sho You 10 w r Rajes Ans 1 Ans h wer wer Kuma s r s Sho 2 Post 07.09. w You 10 Palvi Ans r wer Ans s wer

HTML defines several data types for element content, such as script data and style sheet data, and attribute. Theses all data types are specify as character data. 1. True 2. Fasle

What is extension of html file 1. html 2. htm 3. xml 4. xhtml

Choose correct syntax as per w3c standard: 1.<br><p>Welcome to r4r</br></p> 2.<p>Welcome to r4r</p> 3.<br><p>Welcome to r4r</p></br> 4.<b><p>Welcome to r4r</p></b> 5.<b><p>Welcome to r4r</b></p>

We have following break line tag is used in all browser 1. <br> tag works in all browsers 2. <br /> is recommended now. 3. <br> tag not supported for IE, Mazola etc. works in all browsers 4. <br /> is more will outdated. The <br /> tag 1. Is used to break a line. 2. Is used to bachelor tag this has no body 3. Has no end tag 4. All of the above 5. None.

s
Choose correct syntax for making a submit button: 1. <form action=> <input type="submit" name="s1" value=" Press " /> </form> 2. <input type="submit" name="s1" value=" Press " /> 3. <form action=> </form> 4. <form action=> <input type="button" name="s1" value=" Submit " /> </form>

Post Sho You w 07.09. r 10 Ans 3 Ans palvi wer wer s s

You might also like