Correct Answer: When we add many spaces in the content then HTML remove all space except one space this is Non Breaking Space To overcome this problem we use ? ? Suppose we want to add 3 space between two words then we have to use &nbp three time
Correct Answer: Marquee tag: Marquee tag is used when we want that some text or content move in the web page whether horizontally or vertically Syntax of Marquee tag: Attribute of Marquee tag are: bgcolor, direction, height, width, vspace etc
6. What is the Use of SPAN in HTML and give one example?
Correct Answer: The tag is used to group inline-elements in a document The tag provides no visual change by itself The tag provides a way to add a hook to a part of a text or a part of a document EX :
Correct Answer: The differences between HTML and HTML5 are: - Document of HTML is very large as compare to the HTML5 - Audio and Video tags are not present in HTML whereas HTML5 contains audio and video tags - Vector technology is not integral part of HTML whereas HTML5 Vector technology is the integral part of it - HTML supported by all old browsers whereas HTML5 is supported by new browser - In HTML web sockets are not available whereas in HTML5 Full duplex communication channel is present
Correct 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 tag to allow easy rendering of the pages that are used
10. Differentiate different types of Doctypes from one another.
Correct Answer: Doctype helps the web browser to correctly render the web pages There are different types of Doctype that are available and they are as follows: => Strict Doctype: it consists of all the HTML elements and it is also known as DTD (Document type definition) but it doesn't include the presentational and deprecated elements ie font, center, etc Framesets related elements are also not allowed in this For example: => Transitional Doctype: it consists of all the HTML elements and attributes It is also known as DTD (Document type definition) It includes the presentational and deprecated elements ie font, center, etc Framesets related elements are also not allowed in this For example: => Frameset Doctype: it consists of all the HTML elements and attributes It is also known as DTD (Document type definition) It includes the presentational and deprecated elements ie font, center, etc Framesets related elements are also allowed in this For example: