HTML

{
  "iq":[{"id":"1",
    "q":"What is HTML?",
    "answer":"HTML stands for Hypertext Markup Language.It consists of tags which are used to define content and web page formatting."
  },
    {"id":"2",
      "q":"What is DOCTYPE? ",
      "answer":"DOCTYPE stands for Document Type Declarations.\n\nDOCTYPE is used to specify the web browsers that which types of documents(such as SGML or XML Documents) it will receive.\n\n<!DOCTYPE> is declared above the <html> tag. "
    },
    {"id":"3",
      "q":"What are the different versions of HTML?",
      "answer":"HTML has many versions since it inceptions during 1990’s. HTML version are HTML, HTML+, HTML 2.0, HTML 3.2, HTML 4.0 and the\n\nlatest version HTML 5."
    },

    {"id":"4",
      "q":"What are HTML Tags?",

      "answer":"HTML tags similar to keywords which has specifies function,\n\nfor example, for paragraph we can use HTML tag(<p>). HTML tags mostly comes in pair like, <p>, </p>."
    },
    {"id":"5",
      "q":"How do you insert a comment in html?",
      "answer":" Comments in html begins with “<!–“   and ends with “–>” "
    },
    {"id":"6",
      "q":"Do all character entities display properly on all systems?",
      "answer":"No, there are some character entities that cannot be displayed when the operating system that the browser is running on does not support the characters. When that happens, these characters are displayed as boxes. "
    },

    {"id":"7",
      "q":"What is difference between HTML and XHTML?",
      "answer":"1. HTML is application of Standard Generalized Markup Language(SGML) whereas XML is application of Extensible Markup Language(XML).\n\n2. HTML is a static Web Page whereas XHTML is dynamic Web Page.\n\n3. HTML allows programmer to perform changes in the tags and use attribute minimization whereas XHTML when user need a new markup tag then user can define it in this.\n\n4. HTML is about displaying information whereas XHTML is about describing the information."
    },

    {"id":"8",
      "q":" Explain Cell Padding and Cell Spacing.",
      "answer":"Cell Padding : It refers to the gap or space between the cell content and cell border or cell wall.\n\nCell Spacing : It refers to the gap between the two cells of same tables.\n\nIn HTML cell spacing and padding both are used with Table Border layout."
    },
    {"id":"9",
      "q":"How many types CSS can be include in HTML?",

      "answer":"There are three ways to include the CSS with HTML:\n\n1. Inline CSS : It is used when only small context is to be styled.\n\n- To use inline styles add the style attribute in the relevant tag.\n\n\n2. External Style Sheet : Is used when the style is applied to many pages.\n\n- Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section:\n\n<head>\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"mystyle.css\" />\n\n</head>\n\n\n3. Internal Style Sheet : Is used when a single document has a unique style.\n\n- Internal styles sheet needs to put in the head section of an HTML page, by using the <style> tag, like this:\n\n<head>\n\n<style type=\"text/css\">\n\nhr {color:sienna}\n\np {margin-left:20px}\n\nbody {background-image:url(\"images/back40.gif\")}\n\n</style>\n\n</head>"
    },

    {"id":"10",
      "q":"Does HTML support Javascripts?",
      "answer":"Yes, HTML supports JavaScripts. We can use JavaScript anywhere in the HTML Coding. Mainly there are four sections where we can add JavaScript in HTML.\n\n1. Head Section : We can add JavaScript in Head section of HTML.\n\n<head>…..Javascript…. </head>\n\n2. Body Section : <body>….. Javascript…</body>\n\n3. Head and Body both : We can add Javascript in both head and body section.\n\n<body….Javascript…</body> and <head>…..Javascript…. </head>\n\n4. External File : Script in and external file and then include in <head> ….. </head> section."
    },

    {"id":"11",
      "q":"What is Application Cache in HTML5?",

      "answer":"Yet HTML5 has many new special elements and attributes but one of the best feature of HTML5 is \"Application Cache\", that enables us to make a offline session of a web application. It allows to fetch few or all the content of a website such as HTML files, Images, JavaScript, CSS ...etc. This features speeds up the site performance. This is achieved with the help of a file, defined as follows:\n\n<! doctype html>\n\n<html manifest=\"example.appcache\">\n\n....\n\n....\n\n.....\n\n</html>"
    },

    {"id":"12",
      "q":" What is HTML Element?",
      "answer":"An HTML element is everything from starting to the ending of HTML tags. For example,\n\n<p> This is an HTML Element</p>, in this example, from starting tag to ending tag everything is HTML element and “This is an HTML Element” is Element Content."
    },
    {"id":"13",
      "q":"What is HTML Attribute?",
      "answer":"HTML attribute adds additional information to the HTML Elements.\n\nFor example, <font size=”5” color=\"blue\">, here size and color are html attributes."
    },

    {"id":"14",
      "q":"What is Hyperlinks?",
      "answer":"Hyperlinks are used to navigate to new document with the help of text, image or with group of words."
    },

    {"id":"15",
      "q":" Names some of the Web Browsers?",
      "answer":" Some of the most famous web browsers are Google Chrome, Mozilla Firefox, Opera Browser, Safari and Netscape etc."
    },

    {"id":"16",
      "q":"What is WWW? ",
      "answer":"WWW stands for World Wide Web. It is the inter-connection of all the links called as internet."
    },

    {"id":"17",
      "q":"What are the web standards?",
      "answer":"Web standards are standards specified for the internet or World Wide Web aspects for improving internet usability by all major OS and browsers. "
    },
    {"id":"18",
      "q":" What is the HTML tag for Break?",
      "answer":"HTML tag for break is <br>. The HTML break tag is used to insert a line break."
    },

    {"id":"19",
      "q":"How to create Tables using HTML?",
      "answer":" HTML tables are created using tags <table>. To divide a HTML table, we have to use <tr>, which is table row. Likewise we <td> and <th>."
    },

    {"id":"20",
      "q":"How do you insert a copyright symbol on a browser page?",
      "answer":"To insert the copyright symbol, you need to type &copy; or & #169; in an HTML file."
    },
    {"id":"21",
      "q":"What is the use of using alternative text in image mapping?",
      "answer":"When you use image maps, it can easily become confusing and difficult to determine which hotspots corresponds with which links. Using alternative text lets you put a descriptive text on each hotspot link.  "
    },
    {"id":"22",
      "q":"Does a hyperlink apply to text only?",
      "answer":"No, hyperlinks can be used on text as well as images.That means you can convert an image into a link that will allow user to link to another page when clicked.Just surround the image within the <a href=” “>…</a> tag combinations. "
    },

    {"id":"23",
      "q":"How to change font size?",
      "answer":"HTML webpage font size can be varied according to the usage. HTML tag for changing the size of the font is <font size=”4”>."
    },{"id":"24",
      "q":" How to open a link in new tab or window?  ",
      "answer":"To open a link in new tab or window, we have to use the following html code:\n\n<a href=http://www.Trendingdevelopers.com” target=”_blank”>Welcome to Trendingdevelopers.com!</a>"
    },{"id":"25",
      "q":"How to change background color using HTML? ",
      "answer":"The back ground color of HTML can be change attribute bgcolor in the <body> tag.\n\nExample:\n\nPHP\n\n<html>\n\n<body bgcolor=\"#FF00FF\">\n\n<h1>Welcome to Trendingdevelopers.com</h1>\n\n<p>Hello Job Seekers<p>\n\n</body>\n\n</html>"
    },{"id":"26",
      "q":"What are the different types of Headings supported by HTML?",
      "answer":"HTML headings are important to highlight the contents of the documents. HTML supports 6 heading starting from <h1> to <h6>."
    },{"id":"27",
      "q":"Explain marquee tag.",
      "answer":"Marquee tag is used when we want that some text or content move in the web page whether horizontally or vertically.\n\nSyntax of Marquee tag:\n\n<marquee>text</marquee>\n\nAttribute of Marquee tag are: bgcolor, direction, height, width, vspace etc. "
    },{"id":"28",
      "q":"What are new Media Elements in HTML5? ",
      "answer":" <audio> tag : For playing audio.\n\n<video> tag : For playing video.\n\n<source> tag : For media resources for media elements.\n\n<embed> tag : For embedded content.\n\n<track> tag : For text tracks used in media players."
    },{"id":"29",
      "q":"What is CSS?",
      "answer":"CSS stands for Cascading Style Sheets. By using CSS with HTML we can change the look of the web page by changing the font size and color of the font. CSS plays an important role in building the website. Well written CSS file can be used to change the presentation of each web page. By including only one CSS file. It gives web site developer and user more control over the web pages."
    },{"id":"30",
      "q":"What is difference between HTML and HTML5? ",
      "answer":"Document of HTML is very large as compare to the HTML5.\n\nAudio and Video tags are not present in HTML whereas HTML5 contains audio and video tags.\n\nVector technology is not integral part of HTML whereas HTML5 Vector technology is the integral part of it.\n\nHTML supported by all old browsers whereas HTML5 is supported by new browser.\n\nIn HTML web sockets are not available whereas in HTML5 Full duplex communication channel is present."
    },{"id":"31",
      "q":"How to insert Javascript in HTML? ",
      "answer":"We can insert JavaScript in HTML using <Script tag>.\n\nJavaScript can be enclosed in <script type = text/javascript> and ending with </script>.\n\n\n\nExample:\n\n<html>\n\n<body>\n\n<script type=\"text/javascript\">\n\n...JavaScript….\n\n</script>\n\n</body>\n\n</html>"
    },{"id":"32",
      "q":"What is the importance of Doctype in HTML?",
      "answer":"Doctype tag is not a HTML tag, it is just an instruction that is passed to the web browser to check for the information that is being provided by the markup language in which the page is written. Doctype is sometimes referred as Document type definition (DTD) that describes some rules that has to be followed while writing the markup language so to make the web browser understand the language and the content correctly. Doctype is very important to be placed in the beginning of the HTML and before the <HTML> tag to allow easy rendering of the pages that are used.  "
    },{"id":"33",
      "q":"What are the different types of entities in HTML?",
      "answer":"The different types of entities that are present in HTML are < (less than) or > (greater then). It allows the special or the reserved characters are matched with the source code and then it is saved.\n\nThe sample code is being given by:\n\n&entity_name;\n\nOR\n\n&#entity_number;\n\nThere is always a concept associated with it that will create more simpler provision to avoid the spaces that are being coming in between the characters or the text."
    },{"id":"34",
      "q":"How to create emails links?",
      "answer":"To HTML create email links using <a href>\n\nExample:\n\n<a href=\"mailto:youremail@domain.com\">Send Email</a>"
    },{"id":"35",
      "q":"How to redirect using HTML?",
      "answer":"Using HTML, we can redirect users to different webpage.\n\n<meta http-equiv=\"refresh\" content=\"0; url=http://www.trendingdevelopers.com\" />"
    },
    {"id":"36",
      "q":"Explain HTML blocks?",
      "answer":"HTML blocks can be defined by HTML tags like <span> and <div>."
    },
    {"id":"37",
      "q":"What is the difference between <div> and <span> elements?",
      "answer":"<div> tags are used to define section in document block wise whereas <span> tag is used to define section in documents inline."
    },
    {"id":"38",
      "q":"How to change the size of image?",
      "answer":"HTML image size can be change with the help of attributes as given the below example:\n\n<img src=”trendingdevelopers.png” alt=”td” height=\"450\" width=\"300\">"
    },
    {"id":"39",
      "q":"How to create frames?",
      "answer":"HTML frames can be created by using <frame> tag within a frameset(<frameset>). HTML <frame> tag defines a particular window within frameset."
    },
    {"id":"40",
      "q":"What is the difference between get and post method?",
      "answer":"HTML methods sends request using get an post method.\n\nGET post request data from the server and POST is used to submit data to the server."
    },
    {"id":"41",
      "q":"What is iframes? Why is recommended to avoid iframes?",
      "answer":"<Iframe> tags are used to embedded documents within current HTML document.\n\nHTML 5 does not support <iframe> any more. So it is recommend not ti use iframe in HTML any more."
    },
    {"id":"42",
      "q":"What are the different ways to use different colors for different links or same link?",
      "answer":"The presentation is being done by CSS that is used with the HTML, to give the style to the HTML content. This is called as style sheet. The links can be specified in different colors by the following way:\n\na:link {color: blue; background: white}\n\na:visited {color: purple; background: white}\n\na:active {color: red; background: white}\n\nThis is the CSS properties that is being defined to set the color for the links that are active, visited and normal link. User can use the class attribute in the tags like <a> to use it and see the change in the link color. It is shown as:\n\n<a class=\"exp\" href=\"[URL]\">example of the link</a>\n\n\nThe style sheet can be modified according to the code that is being written. The coding will include:\n\na.exp:link {color: yellow; background: black}\n\na.exp:visited {color: white; background: black}\n\na.exp:active {color: red; background: black}"
    },
    {"id":"43",
      "q":"How to upload files using HTML to website?·   ",
      "answer":" The uploading of files requires some necessary configuration like :An HTTP server that acts as a transaction between the user and the server. Access to the directory of cgi-bin that consists of the receiving script.\n\nThere are some scripts that are already available. Form for the implementation and the coding of it will be like:\n\n<form method=\"post\" enctype=\"multipart/form-data\" action=\"11111up.cgi\">\n\nThe form that has to be uploaded will be done by the following given code:\n\n<input type=file name=upload><br>\n\nThis tag will contain the file name that has to be uploaded on the website.\n\nAny remarks about the file will be written like:\n\n<input type=text name=remark><br>\n\n<input type=submit value=Press> This form will allow user to upload their own file in an easy way.\n\n</form>."
    },
    {"id":"44",
      "q":"You want only a vertical scrollbar and no horizontal scrollbar on your page. How would you do it?",
      "answer":"-This can be done by defining the frame with SCROLLING = auto and having content to just fit into this frame.\n\nSCROLLING=\"yes\" gets the scroll bar on both the sides, even when not needed.\n\nSCROLLING=\"no\" doesn’t get the scrollbars at all, even when they are needed."
    },
    {"id":"45",
      "q":"What is a <dl> tag in HTML?",
      "answer":"<dl> is a definition list tag used in HTML.\n\nIt is used with <dt> and <dd>.\n\n<dt> list the item while <dd> describes it."
    },
    {"id":"46",
      "q":"What are empty HTML elements?",
      "answer":"HTML elements with no content are called empty elements.\n\nFor eg: <br> "
    },
    {"id":"47",
      "q":"Can you change the color of bullets?",
      "answer":"The bullet color is always the same as that of the first character in the list litem. If you surround the <li> and the first character with a set of <font> tags with the color attribute set, the bullet color and the first character will be a different color from the text."
    },
    {"id":"48",
      "q":" What are the limits of the text field size?",
      "answer":"The default size for a text field is around 13 characters, but if you include the size attribute,you can set the size value to be as low as 1. The maximum size value will be determined by the browser width.\n\nIf the size attribute is set to 0, the size will be set to the default size of 13 characters.."
    },
    {"id":"49",
      "q":"Do <th> tags always need to come at the start of a row or column?",
      "answer":"Any <tr> tag can be changed to a <th> tag. This causes the text contained within the <th> tag to be displayed as bold in the browser.\n\nAlthough <th> tags are mainly used for headings, they do not need to be used exclusively for headings."
    },
    {"id":"50",
      "q":"What are the limits of the text field size? ",
      "answer":"The default size for a text field is around 13 characters,but if you include the size attribute,you can set the size value to be as low as 1. The maximum size value will be determined by the browser width.\n\nIf the size attribute is set to 0, the size will be set to the default size of 13 characters."
    },
    {"id":"51","q":"Are there instances where text will appear outside of the browser? " ,
      "answer":"By default, the text is wrapped to appear within the browser window. However, if the text is part of a table cell with a defined width, the text could extend beyond the browser window."
    },

    {"id":"52",
      "q":"Can several selectors with class names be grouped together?",
      "answer":"You can define several selectors with the same style definition by separating them with commas. This same technique also works for selectors with class names. "
    },
    {"id":"53",
      "q":" Tell me two benefits of HTML5 Web Storage",
      "answer":"Two main benefits of HTML5 Web Storage:\n\nIt can store up to 10 MB data which is certainly more than what cookies have.\n\nWeb storage data cannot be transferred with the HTTP request. It helps to increase the performance of the application.   "
    },{"id":"54",
      "q":"What are two types of Web Storage in HTML5?",
      "answer":"Two storage types of HTML5 are:\n\nSession Storage:\n\nIt stores data of current session only. It means that the data stored in session storage clears automatically when the browser is closed.\n\n\nLocal Storage:\n\nLocal storage is another type of HTML5 Web Storage. In local storage, data is not deleted automatically when the current browser window is closed.."
    },{"id":"55",
      "q":"What is the Application Cache in HTML5 and why it is used? ",
      "answer":"The Application Cache concept means that a web application is cached. It can be accessible without the need for internet connection."
    }
  ]

}