You are on page 1of 5

Web Designing

Assignment
Term-1
Module (HTML)-1
Q-1 Are the HTML tags and elements the same thing?
 No, HTML tags and elements the same thing.
Q-2 What are tags and attributes in HTML?
 Attributes are introduction that clarify or modify
elements.
 <> </> start tag and closing tag
Q-3 What are void elements in HTML?
 Void elements are those tags which have does not
have closing tags means its self-closing.
 Example this tags:- link <hr> <br> img
Q-4 What are HTML Entities?
 HTML entities are used for Special characters in
HTML documents.
 Example:-< > , “” {} [] @ # $ % & *
Q-5 What are different types of lists in HTML?
 3 types of lists in HTML:
1.Ordered list
2.Unordered list
3.Description list
Q-6 What is the ‘class’ attribute in HTML?
 The class attribute in HTML is used to assign a class
or group name to an element.
Q-7 What is the difference between the ‘id’ attribute and the
‘class’ attribute of HTML elements?
 The class attributes can be used by multiple HTML
elements and The ID attributes can be used by one
HTML elements within the page.

Q-8 What are the various formatting tags in HTML?


 The various formatting tags in HTML:-

 <pre> - This tag is used to display preformatted text.


 <b> <strong> - This tag is used to make text bold.
 <i> <em> - This tag is used to italicize text.
 <u> <ins> - This tag is used to underline text.
 <del> - This tag is used to strike through text.
 <small> - This tag is used to make text smaller.
 <sub> - This tag is used to create subscript text.
 <sup> - This tag is used to create superscript text.
 <mark> - This tag is used to highlight text.
Q-9 How is Cell Padding different from Cell Spacing?
 Cellpadding:- Cellpadding basically defines the space
present between a table cell’s border and the
content present in it.
 Cellspacing:- Cellspacing basically defines the space
present between individual adjacent cells.
Q-10 How can we club two or more rows or columns into a
single row or column in an HTML table?
 we club two or more rows or columns into a single
row or column in an HTML table we use
ROWSPAN.
 we club two or more rows or columns into a single
row or column in an HTML table we use COLSPAN.
Q-11 What is the difference between a block-level element
and an inline element?
 BLOCK element:- block element is 100% width
cover in web page.
 INLINE element:- inline element is cover in
particular word.
Q-12 How to create a Hyperlink in HTML?
 Buy using in <a></a> tag.
 Example:- <a
href=”https://youtube.com”>youtube</a>
Q-13 What is the use of an iframe tag?
 iframe tag use embed, audio, video, maps,
website in HTML documents.
Q-14 What is the use of a span tag? Explain with example?
 A <span> element which is used to color a part of
a text
 Ex:- <p>My mother has <span
style="color:blue">blue</span> eyes.</p>
Q-15 How to insert a picture into a background image of a
web page?
 Background image is using the background image
attribute inside the <body> tag.
 Ex:- <body background=”a green.jpeg”>
Q-16 How are active links different from normal links?
 Normal links and active links different colour By
default, a link will appear like this (in all browsers):
An unvisited link is underlined and blue. A visited
link is underlined and purple. An active link is
underlined and red.

Q-17 What are the different tags to separate sections of


text?
 The 3 types of separate sections of text:-
1. <br>:- It is used to separate the line of text.
2. <p>:- This tag is used to write a paragraph of
text.
3. <blockquote>:- This tag is used to define large
quoted sections.
Q-18 What is SVG?
 SVG:- Scalable Vector Graphics
Q-19 What is difference between HTML and XHTML?
 HTML:- Hypertext Markup Language
 XHTML:- Extensible Hypertext Markup Language

Q-20 What are logical and physical tags in HTML?


 Physical and Logical tags are used in HTML for
better visibility and understanding of the text by
the user on the web page.
 Logical Tags are used in HTML to display the text
according to the logical styles.

You might also like