Q #21) What is a style sheet?
A style sheet is used to build a consistent, transportable, and well-designed style template. You can add these templates on several different web pages. It describes the look and formatting of a document written in markup language.
Q #22) Can you create a multi-colored text on a web page?
Yes. To create a multicolor text on a web page you can use <font color =”color”> </font> for the specific texts you want to color.
Q #23) Is it possible to change the color of the bullet?
The color of the bullet is always the color of the first text of the list. So, if you want to change the color of the bullet, you must change the color of the text.
Q #24) Explain the layout of HTML?
HTML layout specifies a way in which the web page is arranged.
Every website has a specific layout to display content in a specific manner.
Following are different HTML5 elements which are used to define the different parts of a webpage.
<header>: It is used to define a header for a document or a section.
<nav>: It is used to define a container for navigation links
<section>: It is used to define a section in a document
<article>: It is used to define an independent, self-contained article
<aside>: It is used to define content aside from the content (like a sidebar)
<footer>: It is used to define a footer for a document or a section
Q #25) What is a marquee?
Marquee is used to put the scrolling text on a web page. It scrolls the image or text up, down, left or right automatically. You should put the text which you want to scroll within the <marquee>……</marquee> tag. More details.
Q #26) How many tags can be used to separate a section of texts?
Three tags are used to separate the texts.
<br> tag – Usually <br> tag is used to separate the line of text. It breaks the current line and conveys the flow to the next line
<p> tag – The <p> tag contains the text in the form of a new paragraph.
<blockquote> tag – It is used to define a large quoted section. If you have a large quotation, then put the entire text within <blockquote>………….</blockquote> tag.
Q #27) How to make a picture of a background image of a web page?
To make a picture a background image on a web page, you should put the following tag code after the </head> tag.
<body background = “image.gif”>
Here, replace the “image.gif” with the name of your image file which you want to display on your web page.
Q #28) What are empty elements?
HTML elements with no content are called empty elements. For example: <br>, <hr> etc.
Q #29) What is the use of a span tag? Give one example.
The span tag is used for following things:
For adding color on text
For adding background on text
Highlight any color text
Example:
<p>
<span style=”color:#ffffff;”>
In this page we use span.
</span>
</p>
Q #30) What is the use of an iframe tag?
An iframe is used to display a web page within a web page.
Syntax:
<iframe src=”URL”></iframe>
Example:
<iframe src=”demo_iframe.html” width=”200px” height=”200px”></iframe>
Target to a link:
<iframe src=”http://www.rajeshshuklacatalyst.com” name=”iframe_a”></iframe>
Q #31) What are the entities in HTML?
The HTML character entities are used as a replacement for reserved characters in HTML. You can also replace characters that are not present on your keyboard by entities. These characters are replaced because some characters are reserved in HTML.