HTML and CSS (1)
HTML and CSS (1)
HTML
Image map lets you link to many different web pages using a single
image. You can define shapes in images that you want to take part
in an image mapping.
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”.
[email protected] 1
4. Write an HTML table tag sequence that outputs the
following:
10 pcs 5 50
[email protected] 2
5. What is the advantage of grouping several checkboxes
together?
If two sets of HTML tags are overlapped, only the first tag will be
recognized. You will find this problem when the text does not
display properly on the browser screen.
[email protected] 3
Replace “site” with the actual page URL that is supposed to be
linked to when the text is clicked.
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.
To change text into a clickable link to send an email, use the mailto
command within the href tag. The format is as follows:
[email protected] 4
12. 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.
The default color for normal and active links is blue. Some browsers
recognize an active link when the mouse cursor is placed over that
link; others recognize active links when the link has the focus. Those
that don’t have a mouse cursor over that link is considered normal
link.
[email protected] 5
14. How do you make a picture into a background image of a
web page?
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.
Frames can make navigating a site much easier. If the main links to
the site are located in a frame that appears at the top or along the
edge of the browser, the content for those links can be displayed in
the remainder of the browser window.
<Video> and <Audio> are new tags which are included in HTML5
version. They are mainly used as a replacement for Flash,
Silverlight, and similar technologies to play multimedia items.
[email protected] 6
17. Do you know which are two semantic tags are included in
the HTML5 version?
The <article> and <section> tags are two new tags that are
included in HTML5. Articles can be composed of multiple sections
that can have multiple articles. An article tag represents a full block
of content which is a section of a bigger whole.
Session Storage:
[email protected] 7
It stores data of the current session only. It means that the data
stored in session storage clear automatically when the browser is
closed.
Local Storage:
[email protected] 8
Controlling the display.
1. <select>
2. <list>
3. <dropdown>
4. <option>
#CSS
1. What are the limitations of CSS?
Limitations are:
[email protected] 9
2. In how many ways can a CSS be integrated as a web
page?
This box defines the design layout of the elements CSS. The
elements are:
CSS: