Sunteți pe pagina 1din 3

1. How to reduce the performance issue in html?

Ans: 1. if file is in jpeg then convert it into png


2. if image size which we are showing is less and on server it is more then
resize the image and upload it.

2. Tooltip text
Ans: When we bring the mouse on image then text will come under image that is
calles tool tip text.

3. Types of list in html


Ans: 1. ol (order list)
2. ui (unorder list)
3. dl (definition list)
4. nested ol/ui

1. ol
1. _ _ _ _ _ _
2. _ _ _ _ _ _
3. _ _ _ _ _ _

-------------------------
A. _ _ _ _ _ _
B. _ _ _ _ _ _
C. _ _ _ _ _ _

-------------------------
a. _ _ _ _ _ _
b. _ _ _ _ _ _
c. _ _ _ _ _ _

4. UL is used for sub-menu under menu.


OL is used for

5. Linking a page has 6-7 pages


6. For one character space - &nbsp is used (nbsp - Non line breaking space)
7. For linking pages <a></a> is used. Here "a is anchor tab"
8. <tr></tr> - table row
9. <th></th> - table heading
10.<td></td> - table data

11. According to content writing policy


If the lenth of content is less then 130 character then each word should have first
character as capital
If the length of content is more then 130 character then follow grammar policy.

12. Cellspacing increase the size of tr.


13. Colspan - merging two column together
rowspan - merging two row together

14. Two types of alignment


Align - Left, Center, Right (Horizontal alignment)
Valign - Top, Middle, Bottom (Vertical alignment)

We cant use both horizontal and vertical alignment together

15. Form controls( or tag in html) include


a. Textbox
b. Dropdown list
c. Radio button
d. Check box
e. Browse option (to upload photo)

16. <input type = "text"> - input is tag, type is attribute and "text" is value
All attributes are pre-defined (already available in library)
Value are user defined

17. Difference between radio button and checkbox?


Ans Radio button - We can select only one.
Check bix - We can select multilpe value.

18. Don't use extra spaces after '='.

19. HTML has two version


--> Html4 - Frameset belongs to this.
--> Html5 - iframe belongs to this.

20. By default index.html file has highest priority of running.

CSS
Inline CSS
1. Types of CSS - Code will remain same only place will change
a.inline (2% used in industry)
b.internal (10% used in industry)
c.external (75% used in industry)
d.import (13% used in industry)

2. CSS - It is Cascading Style Sheet - Just to change look and


feel of page.

3. There are three types of border


a. Solid
b. Dotted
c. Dashed

4. Margin property is used for position of div


It reflects outside of the division
margin:auto -> center
margin:50px -> 50px from top,bottom,left,right
margin-top: 5px -> 5px from top
margin-left: 5px -> 5px from left
margin-right: 5px -> 5px from right
margin-bottom: 5px -> 5px from bottom

5. Float having two property: "float:left" and "float:right"


Float left - will change the default nature of block level element to inline
element
- To organize the element from right side
Float right - will change the default nature of block level element to inline
element
- To organize the element from left side
6. Padding
It reflects inside of the division.
It has 4 property :-
1. padding:10px - all side
2. padding-top:10px - only top
3. padding-right:10px - only right
4. padding-left:10px - only left
5. padding-bottom:10px - only bottom

Que- What is the difference between padding and margin?


Que- What is the difference between height and mean-height?

7. Disadvantagse of Inline CSS


1. Changes will be difficult (because code is repeated many times, if in
future we need to change any thing we will have to make changes at each code).
2. Disk space misuse (it will take more storage).
3. Loading time will be more(If file size is more loading time will be more).
4. Google indexing will take long time.

Internal CSS
1. Syntax
selectors {property:value;
property:value;
property:value; }

2. # is used for id.


.abc is used for class

3. If you are using particular structure(or element)then we will use "id".


If you are using particular structure multilple times then we will use "class".

S-ar putea să vă placă și