This action might not be possible to undo. Are you sure you want to continue?
Semantic HTML, or "semantically-correct HTML", is HTML where the tags used to structure content are selected and applied appropriately to the meaning of the content. A <p></p> paragraph tag pair should only be used to indicate a paragraph (which is a structural concept). It should never be used to apply space to a web page The HTML tags <b></b> (for bold), and <i></i> (for italic) should never be used, because they re to do with formatting, not with the meaning or structure of the content <font size="6"><b>This is the page title</b></font> should be written like below. Because font and b are explaining the appearance <h1>This is a heading</h1> 2. What is DOCTYPES? Why we should use it? What will happen if we wont use it?
A document type declaration (doctype) is a special identifier at the top of a webpage that contains or refers to a document type definition (DTD). A DTD tells the browser what elements and attributes exist in the document's markup language and where they may be used
6. Diffrence between inline and blocked elements
Inline: These elements do not force new lines before or after its placement, and it only consumes as much space as necessary.
length) If you want change or set some attributes like the row position you have to get row. and it consists of: margins. How is that you can insert a row into table The first that you have to do it's to get your table var myTable = document. padding. var myRow = myTable.insertRow(anIndex). 9. aValue). 7. A DTD tells the browser what elements and attributes exist in the document's markup language and where they may be used.setAttribute(anAttribName. and the actual content.rows[anIndex]. What is box model? The CSS box model is essentially a box that wraps around HTML elements. myRow. W3C Box model:total width = margin-left + border-left + padding-left + width + padding-right + border-right + margin-right The IE Box model:total width = margin-left + width (borderleft + padding-left + padding-right + border-right) + margin-right 8.Block: New lines appear before and after the element with it consuming the full width available. or if you want insert the row at the end myTable. after this method setAttribute.insertRow(myTable. A doctype is required at the top of every SGML and XML document. Block element will create the box.rows. What is DTD and Different types A document type declaration (doctype) is a special identifier at the top of a webpage that contains or refers to a document type definition (DTD). including HTML and . borders. After you could insert your new row myTable. So you can position the element in different location.getElementByID('myTableId').
0 Strict DTD.0 Strict DTD. and is not supported in HTML 4. <div id="container" style="width:900. Absolute:An absolute position element is positioned relative to the first parent element that has a position other than static."e. Explain Table Properties Cell Padding."> <div id="left" style="width:300.float:left. Quotes :.float:left.01 Strict / XHTML 1. quotes Space :. CSS syntax: <p style="font-family: verdana"> 16.background-color:#009ACF.background-color:Green">b</div> <div id="right" style="width:300.Height and Border etc 13.A relative positioned element is positioned relative to its normal position. 15.background-color:red">c</div> </div> 14. If no such element is found. the containing block is <html> 12.float:right. How to load different main pages? Using IFRAME. Use CSS instead. left: 50. . .position: absolute. Use CSS instead. Write CSS for 3 Column layout.background-color:#009ACF.01 Strict / XHTML 1. HTML entities for space. and is not supported in HTML 4. CSS syntax: <p style="font-size:20px"> The face attribute of <font> is deprecated. Width.">a</div> <div id="middle" style="width:300. Background Image. Cell Spacing. Explain the doc types with listing few of the deprecated tags Please refer what is doctype Example 1 :The size attribute of <font> is deprecated. top: 50. Background Color.
It is perfectly possible to build a web page with tables that is lightweight.01 as an application of XML. Hence CSS tableless layouts in general contains fewer code and tags. If you have ever try to change a table-based layout that contains duplicate width attributes all over the place. The main page to check out is CONVERTING but all the others provide valuable information about this coding technique as well. Ease of Maintenance In our opinion. XHTML 1.01 * It is the reformulation of HTML 4.17. and excessive use of colspan and rowspan. and that the specification is now a Web standard. Some resources refer to XHTML as HTML5. To change from HTML to XHTML requires just a few changes in your coding styles. The content is in the HTML file and presentation of that content is control by the CSS stylesheet. stricter version of HTML.. Answer2: * XHTML stands for eXtensible Hyper Text Markup Language. that it has been reviewed by the W3C membership. SEO benefits Because of the few tags used. XHTML 1. nested tables within tables. It provides the bridge for web designers to use a future based . * It is aimed to replace HTML. tidier version of HTML. one of the biggest benefit of CSS-based layout is it is much more easier to update and change. A W3C recommendation means that the specification is stable. XHTML 1.0 is the next level of coding as specified by the W3C.0 became an official W3C recommendation on January 26. * It is almost identical to HTML 4. Search engines love this and generally this will improve SEO. XHTML is defined by an XML dtd which makes it much easier to handle. As Wikipedia mentions. What is XHTML? Answer1: XHTML is a more formal. 2000. The "weight" is less influenced by the code than by the images. * It is a stricter.0 is the first step toward a modular and extensible web environment based on XML (eXtensible Markup Language). This make updates and maintenance of sites easier. We say "theoretically" because any performance gains are not generally perceptible by the human eye. there is less code that goes across the wire and hence theoretically should be faster. CSS tableless layouts are based on "div" tags. XHTML is a transition / combination of HTML and XML. Better Performance Again.. XHTML provides the framework for future extensions of HTML and aims to replace HTML in the future. Semantics Semantics refers to the concept that one use tags as they are what they are designed for and what they actually mean. 18. you can understand how difficult a table-based layout is to update and change. What are the advantages of using div over a table? The many benefits of CSS-based tableless layouts are ." Just as it is perfectly possible to build a lightweight tableless web page. whereas table-based layouts are based on "table" tags which brings along all its children "tr" and "td" tags. CSS tableless layouts provide a higher content to code ratio and put content higher up in the source order. "the bandwidth savings are generally minor at best. Lighter Code In general. The code of CSS-based layout is much cleaner with less clutter because it provides separation between content and presentation. because of the lesser number tags. So "purists" will say that "table" tags means tabular data and hence should only be used for that and not for layout purposes.
XML is much simpler to parse than SGML.01 combined with the syntax of XML. This is due to the fact that browsers in handheld devices etc. not supporting the XHTML mime type 'application/xhtml+xml'. and standards exist such as XSLT. Microsoft Internet Explorer. Documents can be transformed via tools like XSLT into other documents for consumption by devices like handhelds 3.coding and still be able to maintain compatibility with today's browsers. 19. though. support for XHTML in browsers is poor. What are the requirements to implement File upload? 1) We have to use enctype= multipart/form-data form tag 2) Form method need to be POST 20.php" target="one"> <input type="text" name="firstname" > <input type="submit" name="submit" value="submit>" </form> . Fragments of documents can be retrieved faster 4. Text can be stored more effieciently in object oriented databases Answer4: The great thing about XHTML. Answer5: XHTML combines XML and HTML 4 to provide developers with a language that conforms to the XML format. You cannot make badly formed code to be XHTML compatible. Unlike with HTML (where simple errors (like missing out a closing tag) are ignored by the browser). although it is much more important that you create your code correctly. don't have the power to show badly formatted pages so XHTML makes sure that the code is correct so that it can be used on any type of browser. Answer3: * XHTML stands for EXtensible HyperText Markup Language * XHTML is aimed to replace HTML * XHTML is almost identical to HTML 4. XHTML is a stricter and cleaner version of HTML. Unfortunately. and XQuery for manipulating XML documents. How will you submit a form without using AJAX. Documents can be validated much easier 2. XPath. is that it is almost the same as HTML. provided the page should not be reloaded? <form name="form1" action="test. XHTML consists of all the elements in HTML 4. XHTML code must be exactly how it is specified to be. Advantages of using XHTML instead of HTML 1.01 * XHTML is a stricter and cleaner version of HTML * XHTML is HTML defined as an XML application * XHTML is a W3C Recommendation XHTML is a combination of HTML and XML (EXtensible Markup Language). as opposed to HTML which is based on SGML. with the leading browser.
" onfocus="this. which makes the label clickable.style. it will submit through iframe because form target set as iframe id 21.? Ans <form enctype= multipart/form-data method= post > . you can specify a "for" attribute in the label matching the "id" attribute of the radio button's input tag. What is the use of "for" attribute inside a label tag? When you have a form label for a radio button. So If we click on the label the element will be get selected. Most of the elements like check box and radio buttons are very small to enable it . How will change the background color of a input tag on mouse over on it? <input type="text" style="background:#c0c0c0. What changes you need to do while file uploading in a form ? What encryption in it.style.background='pink'" onblur="this.background='#c0c0c0'"> 23. Is it necessary to have form for submitting the data? If we are doing with ajax we no need of form tag. 22. Or else it is necessary 24.<iframe name="one" id="one"> </iframe> when posting.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.