0% found this document useful (0 votes)
2 views

html_notes1

HTML is a markup language used to describe the content and layout of web pages, utilizing markup tags that are not case sensitive. It includes various types of tags, such as container and empty tags, and structural tags that define the document's structure. The document also outlines basic HTML tags and their functions, including formatting tags and attributes associated with the <body> tag.

Uploaded by

muskanparihar873
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

html_notes1

HTML is a markup language used to describe the content and layout of web pages, utilizing markup tags that are not case sensitive. It includes various types of tags, such as container and empty tags, and structural tags that define the document's structure. The document also outlines basic HTML tags and their functions, including formatting tags and attributes associated with the <body> tag.

Uploaded by

muskanparihar873
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

HTML-i

Q1. What is HTML? What are its features?


Ans: HTML – Definition
HTML is a markup language that helps in describing the
content and the layout of a web page or web
document.
Features of HTML:-
 HTML is not a programming language, It is a
Markup Language.
 HTML uses markup tags to describe web pages.
 HTML is not a case sensitive language.
 It is a document-layout and hyperlink-specification
language.
 It tells the browser how to display the contents of a
hypertext document.

Q2. What is Markup language?


Ans. It refers to a sequence of characters or other
symbols that are inserted in a text document. They
indicate how a document should be structured.
Eg.:- HTML, SGML, XML etc.

Q3. Define tag, attribute.


Ans. Tag:- A tag is a coded HTML command that
indicates how a part of the web page should be
displayed.
eg:- <b>,<body>

Attribute:- Attributes are special words used inside the


opening tag to specify additional information about the
concerned tag.
Eg:- align, bgcolor

Q4. List types of tags with examples.


Ans. There are two types of tags:-
1. Container tags 2. Empty tags

Container tags:- Container tags are those tags that


include both an opening and a closing tag. They hold or
contain the text between them .
Eg: <HTML> …. </HTML> , <Hn> … </Hn>

Empty tags:- Empty tags are those tags that have only
an opening tag and no closing tag.
Example:- <BR>,<BASEFONT>,<LINK> are examples of
empty tags.

Q5. What are structural tags?


Ans. Structural tags are the tags that are used to define
the structure of the HTML document.
Some structural tags are.
• <html>
• <head>
 <body>
Q6. What are formatting tags?
Ans. Formatting tags are the tags that are used to
change the appearance of the text in the HTML
document
 <b> Defines bold text
 <big> Defines big text
 <i> Defines italic text
 <small> Defines small text
 <strong> Defines strong text
 <sub> Defines subscripted text
 <sup> Defines superscripted text
 <u> Defines underlined text
 <strike> Defines strike text
Q7. Write the basic structure of HTML webpage.
Ans.

Q8. Explain Body tag and its attribute


Ans. The <body> tag defines the document's body. The
<body> tag contains all the contents of an HTML
document, such as headings, paragraphs, images,
hyperlinks, tables, lists, etc.

Attributes of body tag are:

Bgcolor: Set the background color of a document.


Background: Add a background image to a document.
alink: Set the color of active links in a document .
vlink: Set the color of visited links in a document .
link: Set the color of the color used for hypertext link.
text: It is used to set the foreground or text color of the
pages.
topmargin: sets the top margin of our page. It is used
to leave some blank area from the top edge of the
page.
leftmargin: sets the left margin of our page. It is used
to to leave some blank area from the left edge of the
page.

Q9. List some basic tags


• <B> tag: Make some text bold .
• <I> tag: Make the text italic.
• <U> tag: Underlines the tag.
• <p> tag: The <p> tag defines a paragraph.
Browsers automatically add some space (margin)
before and after each <p> element.

• <br> tag: The <br> tag inserts a single line break.The


<br> tag is an empty tag which means that it has no
end tag.

• <h1>…..<h6> tag: The <h1> to <h6> tags are used


to define HTML headings.<h1> defines the largest
heading. <h6> defines the smallest heading.

• <hr> tag: The <hr> element displays a horizontal rule


that is used to separate content in an HTML page. The
<hr> tag is also an empty tag which means that it has no
end tag.

• <font> tag: The <font> tag is used to specify the font


face, font size, and color of section of web page. It is a
container tag.
• <basefont> tag: The <basefont> tag is used to specify
the font face, font size, and color for the whole web
page. It is an empty tag.

You might also like