Differentiate between cellspacing and cellpadding in HTML table. -Technology

1 Answer

Answer :

Differences between cellpadding and cellspacing are as follows:CellpaddingCellspacingCellpadding is used for formatting purpose which specifies the space needed between the edges of the cells and also in the cell contents.Cellspacing is one also used for formatting purpose but sets space between cells.The general format of specifying cellpaddingin HTML is as follows: <table width= '100' border='2' cellpadding='5'>The general format of specifying cellspacing in HTML is as follows: <table width='100' border='2' cellspacing='20'>The default value of cellpadding attribute is 1.The default value of cellspacing attribute is 2.

Related questions

Description : border, frame, cellspacing, cellpadding, align are the attributes of (a) tag (b) tag -Technology

Last Answer : (c) border, frame, cellspacing, cellpadding, align are the attributes of tag.

Description : Border, cellspacing, cellpadding, align are the attributes of -Technology

Last Answer : Border, cellspacing, cellpadding, align are the attributes of

Description : Which of the following is an attribute of < table > tag? (a) src (b) cellpadding -Technology

Last Answer : (b) cellpadding is an attribute of tag.

Description : Cellspacing is used to create space between different…………… in a table. -Technology

Last Answer : Cellspacing is used to create space between different cells in a table.

Description : The cellspacing attribute tells the browser how much space to include between the walls of the table. -Technology

Last Answer : False cellspacing attribute is used to create space between different cells in a table.

Description : The cellpadding attribute is used with tag. -Technology

Last Answer : False The cellpadding is used with tag.

Description : cellpadding attribute is used with tag. -Technology

Last Answer : False cellpadding attribute is used with tag.

Description : Which attribute of tag is used to merge two or more columns to form a single column? (a) colspan (b) cellspacing -Technology

Last Answer : (a) colspan attribute is used to merge two or more columns to form a single column.

Description : Define cellspacing. -Technology

Last Answer : The cellspacing is used to create space between different cells in a table.

Description : Differentiate between container and empty elements used in HTML. -Technology

Last Answer : Container elements HTML container elements require a starting as well as an ending tags.e-g , , .They affect the text appearing between their starting and ending tags.Empty elements HTML empty elements require just a ... and not an ending tag.e.g. , , .They just carry out the job assigned to them.

Description : Choose the correct HTML code to right align the content inside a table cell. (a) (b) -Technology

Last Answer : (a)

Description : What is the correct HTML code to left align the content inside a table cell? -Technology

Last Answer : (b)

Description : Write HTML code to display a table with border of 5px. -Technology

Last Answer : l2 „

Description : Write the HTML code to create the exact table which is given below: ADMNO SNAME NAME DOB -Technology

Last Answer : The HTML code is ADMNO SNAMENAMEDOB1110MANJITRANJIT4-MAR-1998

Description : Write an HTML code to create the following table: 100 Amit 10 A -Technology

Last Answer : The HTML code is Roll NumberNameClass 100 Amit 10 A 101 Ankit 10 B 102 Arnab 10C Footer 1 Footer 2 Footer 3

Description : What is the use of tag in an HTML table? Give a suitable example. -Technology

Last Answer : The tag creates a table row in an HTML table. A table must have atleast one row and also, it can have as many table rows as you want. A table row is divided into table cells. A table must have atleast one table cell per table row.e.g.CheadXtitle> TR Tag

Description : Observe the following table and write the HTML code to generate it: Question Marks -Technology

Last Answer : The HTML code isquestion< /th >marksl225

Description : Observe the following table and write the HTML code to generate it: Period 1 Period 2 -Technology

Last Answer : The HTML code isPeriodlPeriod2 MathScienceEnglishSST Science< /td >SST

Description : Write the HTML code to generate the following table with the contents exactly in the same format as shown within the table: -Technology

Last Answer : The HTML code is

Description : Write the HTML code to generate the following table on a Web page with the contents and alignment exactly as shown below: -Technology

Last Answer : The HTML code is

Description : Observe the following table and write the HTML code to generate it: Activities -Technology

Last Answer : HTML code is: Acdvities Sr School Maths Club Robotics Club Photography Middle School Gymnastic Yoga Computer Club Primary School Dance Vocal Music Swimming

Description : Write an HTML code to print the following table: -Technology

Last Answer :

Description : To set image as background of an HTML table, you can use………………… attribute. -Technology

Last Answer : To set image as background of an HTML table, you can use backgroundattribute.

Description : Observe the following table and write the HTML code to generate it : -Technology

Last Answer : GenerateHTML code

Description : Write HTML code to display the following table : -Technology

Last Answer : scheduleDuty Chart8 AM10AM12 AM KEVIN KHUSHBOO AMARJEET

Description : HTML is a markup language for describing Web document. HTML uses (a) pre_specified tags (b) user defined tags -Technology

Last Answer : (d) HTML uses fixed tags defined by the language.

Description : HTML is used to create Web pages. -Technology

Last Answer : True HTML is a markup language which is used to create Web pages.

Description : Write HTML code to set the image ‘Pen. jpg’ stored in ‘My Pictures’ folder in C: -Technology

Last Answer : The HTML code is .

Description : HTML is a markup language. Expand the term HTML. -Technology

Last Answer : HyperText Markup Language.

Description : Give examples of a container element in HTML. -Technology

Last Answer : , , .

Description : Give the examples of an empty element in HTML. -Technology

Last Answer : The examples of an empty element in HTML is ,

Description : Write the extension of HTML code file. -Technology

Last Answer : The extension of HTML code file is.html or .htm

Description : While writing HTML code, how do you find out how your Web page would look like? -Technology

Last Answer : For this, open the HTML code file in a Web browser.

Description : Identify the error(s) in the following HTML code. Also, write the correct code. -Technology

Last Answer : The error in the code is that in place of color attribute there should be bgcolor.The correct code is

Description : What is the use of width attribute in HTML? -Technology

Last Answer : Width attribute specifies the width of a horizontal line in pixels or percent. Its default value is 100%.

Description : What is the use of tag in HTML code? Write any two options used with this tag. -Technology

Last Answer : The tag is used to change the size, color and type face of the text on HTML page. It uses attributes such as size, face etc.

Description : Identify the errors and write the correct HTML code 1. -Technology

Last Answer : 1. 2.

Description : Why do we insert comments in an HTML document, even though they are not displayed on a Web page? -Technology

Last Answer : So, that user will be able to understand coding effects and meaning.

Description : What is the method of using comment line in the HTML code? -Technology

Last Answer : In HTML code, the comment line is declared as

Description : What is the method of using headings in HTML? -Technology

Last Answer : provides six levels of headings. is the largest heading level while is the smallest heading level. These headings help us in obtaining a uniform look and feel for the document.

Description : Write the HTML code to display horizontal line of red color. -Technology

Last Answer :

Description : Write the expansions of the following tags used in HTML. 1. -Technology

Last Answer : 1. — Break line2. — Italic3. – Horizontal Rule4. — Underline

Description : Write the expansions of the following tags used in HTML. 1. -Technology

Last Answer : 1. – Anchor tag2. – Comment tag

Description : Which HTML tag is used to insert an image in a page? Write an option used with this tag. -Technology

Last Answer : The tag is used to insert an image in a page. This tag uses the options like src, alt etc.

Description : What are the different forms of list used in HTML? Name any two. -Technology

Last Answer : The different forms of list are ordered list and unordered list.

Description : What are two basic tags in HTML lists? -Technology

Last Answer : and

Description : Find error(s) in the following HTML code segment. Rewrite the correct code. -Technology

Last Answer : There should be type instead of style. So, correct line is

Description : What is the purpose of HTML? -Technology

Last Answer : HTML (HyperText Markup Language) is used to create Web pages and tells the browser how to display them. It designs the basic layout and formatting of Web pages.HTML is made up of elements or tags and attributes, which work together to identify document parts and tell the browser how to display them.

Description : What is an attribute in HTML? -Technology

Last Answer : HTML attribute is a modifier of HTML element. Attributes provide additional information about HTML elements. Attributes are always specified in the start tag of an element, after the element's name. These come in ... is the HTML element, name is the name of an attribute, set to the provided value.

Description : What is the purpose of using HTML tags and attributes for Web designing? -Technology

Last Answer : HTML (HyperText Markup Language) is used to create Web pages. It designs the basic layout and formatting of Web pages by using tags and attributes.The tag’s name tells the tag’s purpose and the attributes that follow the tag name give the additional information of the Web browser.