HTML Notes For Class 10 Cbse
HTML Notes For Class 10 Cbse
HTML Notes For Class 10 Cbse
4) What are some of the common lists that can be used when designing
a page?
You can insert any or a combination of the following list types:
ordered list
unordered list
definition list
menu list
directory list
Each of this list types makes use of a different tag set to compose
11) How do you create links to sections within the same page?
Links can be created using the <a> tag, with referencing through the
use of the number (#) symbol. For example, you can have one line as
<a href=#topmost>BACK TO TOP</a>, which would result in the
words BACK TO TOP appearing on the webpage and links to a
bookmark named topmost. You then create a separate tag command
like <a name=topmost> somewhere on the top of the same webpage
so that the user will be linked to that spot when he clicked on BACK
TO TOP.
12) Is there any way to keep list elements straight in an html file?
By using indents, you can keep the list elements straight. If you indent
each subnested list in further than the parent list that contains it, you
can at a glance determine the various lists and the elements that it
contains.
13) If you see a web address on a magazine, to which web page does it
point?
Every web page on the web can have a separate web address. Most of
these addresses are relative to the top-most web page. The published
web address that appears within magazines typically points this top-
most page. From this top level page, you can access all other pages
within the web site.
17) If the users operating system does not support the needed
character, how can the symbol be represented?
In cases wherein their operating system does not support a particular
character, it is still possible to display that character by showing it as
an image instead.
18) How do you change the number type in the middle of a list?
The <li> tag includes two attributes type and value. The type
attribute can be used to change the numbering type for any list item.
The value attribute can change the number index.
22) Why are there both numerical and named character entity values?
The numerical values are taken from the ASCII values for the various
characters, but these can be difficult to remember. Because of this,
named character entity values were created to make it easier for web
page designers to use.
23) Write a HTML table tag sequence that outputs the following:
50 pcs 100 500
10 pcs 5 50
Answer:
<table>
<tr>
<td>50 pcs</td> <td>100</td> <td>500</td>
</tr>
<tr>
<td>10 pcs</td> <td>5</td> <td>50</td>
</tr>
</table>
27) What if there is no text between the tags or if a text was omitted
by mistake? Will it affect the display of the html file?
If there is no text between the tags, then there is nothing to format, so
no formatting will appear. Some tags, especially tags without a closing
tag like the <img> tag, do not require any text between them.
29) How do you create a link that will connect to another web page
when clicked?
To create hyperlinks, or links that connect to another web page, use the
href tag. The general format for this is: <a href=site>text</a>
Replace site with the actual page url that is supposed to be linked to
when the text is clicked.
30) What other ways can be used to align images and wrap text?
Tables can be used to position text and images. Another useful way to
wrap text around an image is to use style sheets.
31) Can a single text link point to two different web pages?
No. The <a> tag can accept only a single href attribute, and it can point
to only a single web page.
32) What is the difference between the directory and menu lists and
the unordered list?
The key differences is that the directory and menu lists do not include
attributes for changing the bullet style.
35) Do <th> tags always need to come at the start of a row or column?
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.
Although <th> tags are mainly used for headings, they do not need to
be used exclusively for headings.
36) What is the relationship between the border and rule attributes?
Default cell borders, with a thickness of 1 pixel, are automatically
added between cells if the border attribute is set to a nonzero value.
Likewise, If the border attribute is not included, a default 1-pixel border
appears if the rules attribute is added to the <table> tag.
37) What is a marquee?
A marquee allows you to put a scrolling text in a web page. To do this,
place whatever text you want to appear scrolling within the <marquee>
and </marquee> tags.
38) How do you create a text on a webpage that will allow you to send
an email when clicked?
To change a text into a clickable link to send email, use the mailto
command within the href tag. The format is as follows:
<A HREF=mailto:youremailaddress>text to be clicked</A>
39) Are <br> tags the only way to separate sections of text?
No. The <br> tag is only one way to separate lines of text. Other tags,
like the <p> tag and <blockquote> tag, also separate sections of text.
40) Are there instances where text will appear outside of the browser?
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.
43) Can I specify fractional weight values such as 670 or 973 for font
weight?
Implementation largely depends on the browser, but the standard does
not support fractional weight values. Acceptable values must end with
two zeroes.
44) What is the hierarchy that is being followed when it comes to style
sheets?
If a single selector includes three different style definitions, the
definition that is closest to the actual tag takes precedence. Inline style
takes priority over embedded style sheets, which takes priority over
external style sheets.
46) What happens if you open the external CSS file in a browser?
If you try to open the external CSS file in a browser, the browser cannot
open the file, because the file has a different extension. The only way
to use an external CSS file is to reference it using <link/> tag within
another html document.
47) How do you make a picture into a background image of a web page?
To do this, place a tag code after the </head> tag as follows:
<body background = image.gif>
Replace image.gif with the name of your image file. This will take the
picture and make it the background image of your web page.
50) What happens if the number of values in the rows or cols attribute
doesnt add up to 100 percent?
The browser sizes the frames relative to the total sum of the values. If
the cols attribute is set to 100%, 200%, the browser displays two
vertical frames with the second being twice as big as the first.