Computer Applications
Define the following CSS attributes:
(i) outline
(ii) padding
(iii) float
CSS
5 Likes
Answer
(i) outline — An outline attribute defines an outline which is drawn around elements, outside the borders, to make the elements stand out. It is defined in the following way:
outline : [outline-color] [outline-style] [outline-width]
For example,
P
{
outline-style : solid;
outline-color : red;
outline-width : thin;
}
(ii) padding — Padding attribute defines the inner distance between the border and the content of the element. It is defined in the following way:
H1
{
padding : 20px 20px 20px 20px ;
}
(iii) float — The float attribute defines the behaviour of floatable elements on an HTML page. The float attribute can have the following values — none, left or right. It is defined in the following way:
img
{
float : left;
}
Answered By
3 Likes
Related Questions
Write the HTML code to generate the following web page.

What are HTML forms? Mention its three attributes.
Yamini is the class coordinator of a school. She has to prepare a table of the names of students, class and the subjects they are good at. Help Yamini to generate the code for displaying this table.
Roll_No Name Class Subject 1 Neha Vth Maths 2 Amit 10th English 3 Sneha IIIrd G.K. Write the HTML code to generate the web page as shown below, considering the specifications that follow. You can write the code for given specifications.

(i) Active link color is Green and Visiting link color is Red.
(ii) Image is from the file "computer.jpg".
(iii) Use horizontal rule wherever required.
(iv) Use ordered and unordered lists wherever required.
(v) The pages are linked as follows:
Page Link Super Computers Super.html Mainframe Computers Main.html Mini Computers Mini.html Micro Computers Micro.html Desktops Desk.html Laptops Laptop.html PDA PDA.html Note: You can use any other attributes that are not mentioned above to produce a similar output.