It is used to embed an image on an HTML page. The tag has two required attributes:
src - Specifies the path to the image
alt - Specifies an alternate text for the image, if the image for some reason cannot be displayed
Syntax
Example
tag
The content inside is typically displayed in italic.
tag
It defines a paragraph. Browsers automatically add a single blank line before and after each
element.
Example:
This is some text in a paragraph.
tag
It defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab. It cannot have more than one
Which of the following is used with the tag as an attribute to specify an alternate text for an image, if the image for some reason cannot be displayed?
auxilliary
duplicate
alt
alternate
SRC
Answer (Detailed Solution Below)
Option 3 : alt
HTML MCQ Question 2 Detailed Solution
Key Points
The required alt attribute specifies an alternate text for an image if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
The scripting technologies not used at server site
JSP
ASP
HTML
PHP
JAVA
Answer (Detailed Solution Below)
Option 3 : HTML
HTML MCQ Question 3 Detailed Solution
Answer: Option 3
Concept:
JSP:
JSP stands for Java Server Pages.Java Server Pages helps software developers to create dynamically generated web pages It was released in 1999 by Sun Microsystems.
PHP:
PHP is an HTML-embedded, server-side scripting language. PHP was created by Rasmus Lerdorf in 1994.
ASP:
ASP stands for Active Server Pages. Active server pages are the server-side scripting engine developed by Microsoft. It can be used to dynamically generate web pages. The default scripting language used by active server pages is VBScript.
HTML:
It is a language used for writing source codes for developing a webpage, inserting content, and other components in it. HTML is a markup language because it is used to distinguish HTML elements from the text. HTML is not a programming language, meaning it doesn’t have the ability to create dynamic functionality. Instead, it makes it possible to organize and format documents, similar to Microsoft Word.
JAVA:
Java is not a scripting language. Java is an OOP programming language while JavaScript is an OOP scripting language.
Explanation:
Hence Option 3 is the correct answer. HTML is not a server-side scripting language.
The ______ is a set of standards that defines how a dynamic web document should be written, how input data should be supplied to the program, and how the output result should be used.
Hyper Text Markup Language
File Transfer Protocol
Hyper Text Transfer Protocol
Common Gateway Interface
None of the above
Answer (Detailed Solution Below)
Option 4 : Common Gateway Interface
HTML MCQ Question 4 Detailed Solution
Common Gateway Interface (CGI) is a set of standards that defines how a dynamic web document should be written, how to input data should be supplied to the program, and how the output result should be used.
CGI is often used to process inputs information from the user and produce the appropriate output.
The only requirement for being able to act as a CGI program is the ability to read from Standard Input (stdin), or the ability to access Environment variables. Access to CGI programs and scripts must be made via the "cgiwrap" process.
CGI stands for Common Gateway Interface and provides an interface between the HTTP server and programs generating web content. These programs are better known as CGI scripts. They are written in a scripting language. The output from a CGI function is sent to the web client (browser) as a part of the web page.
Hence the correct answer is Common Gateway Interface.Additional Information
The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript.
The File Transfer Protocol is a standard communication protocol used for the transfer of computer files from a server to a client on a computer network. FTP is built on a client-server model architecture using separate control and data connections between the client and the server.
In an HTML page, the tag is used to embed an image, and its attribute specifies the path of the image to be displayed.
src
path
source
root
Answer (Detailed Solution Below)
Option 1 : src
HTML MCQ Question 5 Detailed Solution
Key Points
The tag is used to embed an image in an HTML page. src - Specifies the path to the image. alt - Specifies an alternate text for the image, if the image for some reason cannot be displayed.
Syntax:
src Attribute= The required src attribute specifies the path (URL) to the image.
Google Apps is a Web-based and collaborative Software as a Service (SaaS) solution that customizes the proprietary Google platform and brand for businesses of all sizes, including large enterprises.
Opera, Vivaldi, Mozilla Firefox, Google Chrome, Apple Safari are the browsers.
A web browser is a software that assists you in searching for information on World Wide Web.
Which of the following is used with the tag as an attribute to specify an alternate text for an image, if the image for some reason cannot be displayed?
The required alt attribute specifies an alternate text for an image if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
HTML elements with no content are called empty elements. Empty elements can be closed in the start tag.
is an empty element without a closing tag (the tag defines a line break).
Explanation:
An empty element is an element of HTML that do not have any child nodes. — inserts a line break — inserts a horizontal line — used to display images — it’s an input — defines relationships between the documents — changes metadata of your web page — inserts a media source
HTML is a language which is used to create web pages and web applications. There are a numbers of attributes in HTML language and COLSPAN is one of them.
COLSPAN is the attribute of HTML language which defines the number of columns a table cell should span. It can be applied to
HTML, in a full hypertext markup language, is a formatting system for displaying material retrieved over the Internet.
Key Points
First developed by Tim Berners-Lee in 1990, HTML is short for Hypertext Markup Language.
HTML is used to create electronic documents (called pages) that are displayed on the World Wide Web.
It is a language used for writing source codes for developing a webpage, inserting content, and other components in it.
HTML is a markup language because it is used to distinguish HTML elements from the text.
HTML is not a programming language, meaning it doesn’t have the ability to create dynamic functionality. Instead, it makes it possible to organize and format documents, similar to Microsoft Word.
When working with HTML, we use simple code structures (tags and attributes) to mark up a website page. For example, we can create a paragraph by placing the enclosed text within a starting and closingtag.
HTML elements with no content are called empty elements. Empty elements can be closed in the start tag.
is an empty element without a closing tag (the tag defines a line break).
Explanation:
An empty element is an element of HTML that do not have any child nodes.
— inserts a line break
— inserts a horizontal line -- used to display images
— it’s an input
— defines relationships between the documents
— changes metadata of your web page — inserts a media source
— A text with a deleted part, and a new, inserted part:
It is used to embed an image on an HTML page. The tag has two required attributes:
src - Specifies the path to the image
alt - Specifies an alternate text for the image, if the image for some reason cannot be displayed
Syntax
Example
tag
The content inside is typically displayed in italic.
tag
It defines a paragraph. Browsers automatically add a single blank line before and after each
element.
Example:
This is some text in a paragraph.
tag
It defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab. It cannot have more than one
The tag is used to embed an image in an HTML page. src - Specifies the path to the image. alt - Specifies an alternate text for the image, if the image for some reason cannot be displayed.
Syntax:
src Attribute= The required src attribute specifies the path (URL) to the image.
The HTML element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.
The element is the root element and it defines the whole HTML document.
It has a start tag and an end tag .
The element is the root element of the HTML page.
The element contains the document's metadata (including elements such as meta, title, style, script).
Entities are used to display characters that have special HTML meanings, such as "<" and ">".
Statement II: False
Not every request sends the cookies. It depends on the cookie configuration and client-server connection. For example, if your cookie's secure option is set to true then it must be transmitted over a secure HTTPS connection. This means when you see that website with HTTP protocol then these cookies won't be sent by browsers as the secure flag is true.
If the cookie has been expired it will not send by browsers as the secure flag is true.
∴ Hence the correct answer is Neither (a) nor (b) is TRUE.
Active server pages are the server-side scripting engine developed by Microsoft. It can be used to dynamically generate web pages. The default scripting language used by active server pages is VBScript.
Explanation:
VBScript is a client-side programming language. It is used to program ASP and convert it to server-side scripting. Any webpage can be created from server-side and client-side scripting. An example of an ASP script with VBScript is shown as :
DTD stands for document type definition. It is a specific document defining a set of statement which follows SGML rules (standard generalized markup language).
Some points about DTD :
It is used to describe the content in an XHTML document.
It defines the structure of class of documents through attributes and elements.
DTD can be used to prove the validity of XML data.
For the XML, DTD is specified into the definition.