Friday, March 18, 2016

Void elements in HTML5.

Void elements in HTML5.


some elements cannot have content.These are called void elements. For example, the <br> tag represents a line break and cannot have any content.

The following is a list of void elements in HTML5.


  1.   <area> Defines a hyperlink area with some text in an image map
  2.   <base> Specifies the document’s base URL or target for all relative URLs in thedocument
  3.   <br> Represents a line break
  4.   <col> Defines the properties of one or more columns within a <colgroup> element
  5.   <command> Defines a command that can be invoked by a user
  6.   <hr> Specifies a thematic change in content
  7.   <img> Defines an image
  8.   <input> Defines a typed data field that allows the user to edit the data
  9.   <link> Defines a relationship between a document and an external resource such as
  10.   <keygen> Defines a key-pair generator control for forms that is used to encrypt data
  11. that will be passed to the server
  12.   <meta> Defines metadata that describes the HTML document KeyTerms
  13.   <param> Defines a parameter for an object
  14.   <source> Defines a multimedia resource for a
  15.  <video> 
  16.  <audio> 
  17.   <wbr> Optionally breaks up a large word at this element

HTML5 Element


HTML5 Element


HTML5 has more than 100 defined elements that you can use to create rich webpages and
applications.

 The W3C defines the following list of these elements with a brief description.


  1. <a> Hyperlink
  2.   <abbr> Abbreviation
  3.   <address> Contact information
  4.   <area> Image map region
  5.   <article> Independent section
  6.   <aside> Auxiliary section
  7.   <audio> Audio stream
  8.   <b> Bold text
  9.   <base> Document base URI
  10.   <bb> Browser button
  11.   <bdo> Bi-directional text override
  12.   <blockquote> Long quotation
  13.   <body> Main content
  14.   <br> Line break
  15.   <button> Push button control
  16.   <canvas> Bitmap canvas
  17.   <caption> Table caption
  18.   <cite> Citation
  19.   <code> Code fragment
  20.   <col> Table column
  21.   <colgroup> Table column group
  22.   <command> Command that a user can invoke
  23.   <datagrid> Interactive tree, list, or tabular data
  24.   <datalist> Predefined control values
  25.   <dd> Definition description
  26.   <del> Deletion
  27.   <details> Additional information
  28.   <dfn> Defining instance of a term
  29.   <dialog> Conversation
  30.   <div> Generic division
  31.   <dl> Description list
  32.   <dt> Description term
  33.   <em> Stress emphasis
  34.   <embed> Embedded application
  35.   <fieldset> Form control group
  36.   <figure> A figure with a caption
  37.   <footer> Section footer
  38.   <form> Form
  39.   <h1> Heading level 1
  40.   <h2> Heading level 2
  41.   <h3> Heading level 3
  42.   <h4> Heading level 4
  43.   <h5> Heading level 5
  44.   <h6> Heading level 6
  45.   <head> Document head
  46.   <header> Section header
  47.   <hr> Separator
  48.   <html> Document root
  49.   <i> Italic text
  50.   <iframe> Inline frame
  51.   <img> Image
  52.   <input> Form control
  53.   <ins> Insertion
  54.   <kbd> User input
  55.   <label> Form control label
  56.   <legend> Explanatory title or caption
  57.   <li> List item
  58.   <link> Link to resources
  59.   <map> Client-side image map
  60.   <mark> Marked or highlighted text
  61.   <menu> Command menu
  62.   <meta> Metadata
  63.   <meter> Scalar measurement
  64.   <nav> Navigation
  65.   <noscript> Alternative content for no script support
  66.   <object> Generic embedded resource
  67.   <ol> Ordered list
  68.   <optgroup> Option group
  69.   <option> Selection choice
  70.   <output> Output control
  71.   <p> Paragraph
  72.   <param> Plug-in parameter
  73.   <pre> Preformatted text
  74.   <progress> Progress of a task
  75.   <q> Inline quotation
  76.   <rp> Ruby parenthesis
  77.   <rt> Ruby text
  78.   <ruby> Ruby annotation
  79.   <samp> Sample output
  80.   <script> Linked or embedded script
  81.   <section> Document section
  82.   <select> Selection control
  83.   <small> Small print
  84.   <source> Media resource
  85.   <span> Generic inline container
  86.   <strong> Strong importance
  87.   <style> Embedded style sheet
  88.   <sub> Subscript
  89.   <sup> Superscript
  90.   <table> Table
  91.   <tbody> Table body
  92.   <td> Table cell
  93.   <textarea> Multiline text control
  94.   <tfoot> Table footer
  95.   <th> Table header cell
  96.   <thead> Table head
  97.   <time> Date and/or time
  98.   <title> Document title
  99.   <tr> Table row
  100.   <ul> Unordered list
  101.   <var> Variable
  102.   <video> Video or movie
  103.   <wbr> Optionally break up a large word at this element

Monday, March 14, 2016

How to see the saved password in the Google Chrome.


  1. Click the Chrome menu Chrome menu.
  2. Click Settings. - > click Show advanced settings.
  3. Under "Passwords and forms," click Manage passwords.
  4. Under "Saved passwords,"
  5. You can see the all password 

Thursday, March 3, 2016

Show execution plan for stored procdure

SET SHOWPLAN_ALL ON
GO

-- FMTONLY will not exec stored proc

SET FMTONLY ON
GO

exec SampleStoredProcedure

GO

SET FMTONLY OFF
GO

SET SHOWPLAN_ALL OFF
GO

How to get estimated execution plan for stored procedure


How to get estimated execution plan for stored procedure ?

SET FMTONLY ON will give the plan.

Example

SET SHOWPLAN_ALL ON
GO

SET FMTONLY ON
GO

Exec Sample procedure

GO

SET FMTONLY OFF
GO
 
SET SHOWPLAN_ALL OFF
GO

Boost Stored Procedure’s Performance

1.       SET NOCOUNT ON/OFF in the stored procedures are help to improve the performance

Eg.
CREATE PROCEDUR dbo.SampleProcedure
AS
SET 
NOCOUNT ON;
--Write code here
SELECT FirstColumn FROM dbo.SampleTable

SET NOCOUNT OFF;
GO


2.       Schema name with table name and stored procedure name can improve the performance
SELECT * FROM dbo. SampleTable -- Preferred use
EXEC dbo. SampleProcedure -- Preferred use

3.       Don’t use SELECT * in any case. Use the column name 

4.       Don’t use SELECT *  Use IF EXISTS (SELECT 1) for checking

5.       Short Transaction block will help you to improve the transaction

6.       Avoid using SQL Server cursors 

7.       Use the sp_executesql instead of the EXECUTE or exec

Do not use the prefix “sp_”, server will search the system procedure list.