Docsity

HTMl Important Notes*, Study notes of Computer science

Toggle sidebar
bg1
HTML COMPLETE EXAM REVISION NOTES
MAHARASHTRA BOARD • CLASS 12
Exam-oriented guide for a 50-mark examination
Prepared primarily from your supplied CHAP 4. HTML PDF.
Simple English • comparison tables • model answers • programs • practice questions
Suggested 2-hour revision plan Time
Quick definitions and tags 10 min
Distinguish between 25 min
Short answers 25 min
Long answers 25 min
Programs and outputs 25 min
Practice + final sheet 10 min
These are useful revision topics based on your notes, not guaranteed exam questions. Legacy tags and attributes are included
because they appear in the supplied chapter; some are obsolete in modern HTML.
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download HTMl Important Notes* and more Study notes Computer science in PDF only on Docsity!

HTML COMPLETE EXAM REVISION NOTES

MAHARASHTRA BOARD • CLASS 12

Exam-oriented guide for a 50-mark examination

Prepared primarily from your supplied CHAP 4. HTML PDF.

Simple English • comparison tables • model answers • programs • practice questions

Suggested 2-hour revision plan Time

Quick definitions and tags 10 min

Distinguish between 25 min

Short answers 25 min

Long answers 25 min

Programs and outputs 25 min

Practice + final sheet 10 min

These are useful revision topics based on your notes, not guaranteed exam questions. Legacy tags and attributes are included

because they appear in the supplied chapter; some are obsolete in modern HTML.

Table of Contents

Section Contents

1 Distinguish Between — 11 comparisons

2 Important Short Questions — 35+ answers

3 Important Long Questions — 8 model answers

4 HTML Programs — 7 programs with explanation and output

5 Quick Revision — tags and attributes

6 Practice Section — 20 questions

7 Final One-Page Revision Sheet

Study tip: Learn definitions first, then comparison tables, then practise writing each program without looking.

HTML vs DHTML

Point HTML DHTML

Full form Hyper Text Markup Language. Dynamic Hyper Text Markup Language.

Purpose Structures webpage content. Describes dynamic and interactive behaviour.

Logic HTML alone does not provide loops/calculations. Uses scripting and related technologies.

Technologies HTML tags and attributes. HTML with CSS, JavaScript and DOM concepts.

Result Defines structure/content. Can change content dynamically.

VBScript vs JavaScript

Point VBScript JavaScript

Basis Visual Basic-based scripting language. Widely used web scripting language.

Use Small scripts in environments supporting it. Interactive web scripts.

Placement Depends on supported environment. Can be in or using 2. Important Short Questions — Answers Included

1. What is HTML?

HTML stands for Hyper Text Markup Language. It is a markup language used to create and structure webpages using tags.

2. What is Hyper Text?

Hyper Text is text containing links to other text or webpages.

3. What is markup?

Markup is tag-based instruction that tells a browser how webpage content should be displayed.

4. Who invented HTML?

The supplied notes state that HTML was invented by Tim Berners-Lee.

5. Define webpage.

A webpage is a document, commonly an HTML file, displayed in a web browser.

6. Define website.

A website is a collection of related, interlinked webpages.

7. What is a web browser? Give examples.

A browser is software used to view webpages. Examples in the notes include Google Chrome and Internet Explorer.

8. What is a web server?

A web server is a computer or application that sends webpages or web content in response to requests.

9. Write four advantages of HTML.

HTML is easy and flexible; provides formatting; is platform independent; supports hyperlinks; and pages are easy to update.

10. Write three disadvantages of HTML alone.

HTML alone cannot perform calculations or programming logic, has no special debugging tool by itself, and needs scripting for

interactivity.

11. What is an HTML editor?

A text-editing application used to write HTML code. The notes list Notepad and text editors.

12. What is an HTML tag?

Markup written inside angle brackets, for example

or

, used to define an HTML element.

13. What are start and end tags?

A start tag begins an element, e.g.

; an end tag closes it, e.g.

.

14. What are empty tags? Give examples.

Empty tags do not wrap text content and need no separate closing tag in the traditional syntax. Examples: , , .

15. Are HTML tags case-sensitive?

No. HTML tag names are not case-sensitive; and have the same meaning.

16. What is the extension of an HTML file?

The common extensions are .html and .htm.

17. What is the use of

?

It defines a paragraph and is normally written as

...

.

18. What are heading tags?

HTML has six heading levels, through . is largest and smallest by default.

19. State the uses of , and .

displays bold text, italic text and underlined text.

20. Explain and .

displays subscript, e.g. H2O; displays superscript, e.g. x squared.

21. What is ?

It displays preformatted text, preserving spaces and line breaks, usually in a monospace font.

**3. Important Long Questions — Model Answers

  1. Explain the basic structure of an HTML document.**

An HTML document has a standard structure. is the root element. contains document information. sets the

browser-tab title. <body> contains visible content such as headings, paragraphs, links, images and tables. Modern HTML

documents begin with a doctype declaration.

Example code:

<!DOCTYPE html> <html> <head> <title>My First Page

Welcome

This is my first HTML page.

Expected output: A large Welcome heading and a paragraph appear on the webpage.

2. Explain the types of lists in HTML.

An ordered list uses and when sequence matters; the notes list type values 1, A, a, I and i. An unordered list uses

and for bullet points such as disc, circle or square. A definition list uses , with for a term and for its description.

Example code:

RedGreenBlue PenBook HTMLHyper Text Markup Language

Expected output: An alphabetically labelled list, a bulleted list and a definition term with description appear.

3. Explain HTML tables and their attributes.

A table presents data in rows and columns. creates it; gives its title; creates a row; creates a heading

cell; creates a data cell. The supplied notes cover border, bordercolor, align, bgcolor, colspan, rowspan, cellspacing and

cellpadding. Some are legacy attributes; CSS is preferred for modern styling.

Example code:

Student Marks NameMarks Swati82 Amar72

Expected output: A bordered Student Marks table with Name and Marks columns.

4. Explain hyperlinks and the tag.

A hyperlink connects a webpage or resource to another. The anchor tag creates the link and its important attribute is href,

which specifies the destination URL or file path. The clickable content can be text or an image. Default links commonly appear

blue and underlined, depending on browser styling.

Example code:

Visit Example

Expected output: Visit Example is clickable. Clicking the thumbnail opens photo.jpg if available.

5. Explain image insertion in HTML.

The element displays an image and is an empty element. src specifies the image path/URL; width and height specify

dimensions; alt gives alternative descriptive text. The image file must exist at the path used in src.

Example code:

Expected output: computer.jpg appears at the specified size if the file exists.

6. Explain DHTML and its components.

DHTML stands for Dynamic Hyper Text Markup Language. It is not a separate programming language; it refers to technologies

used together to make pages dynamic. HTML structures content, CSS controls presentation, JavaScript adds logic, and the DOM

lets scripts access and change page elements. Examples include changing text or showing/hiding content.

Example code:

Original text

Change Text

Expected output: Clicking the button changes Original text to Text changed!.

7. Explain JavaScript and its uses.

JavaScript is a scripting language used to make webpages interactive. It is written inside tags and may be

placed in the or . Uses include responding to clicks, changing page content, validating form inputs, performing

calculations and checking conditions.

Example code:

Click the button.

Click Me

Expected output: Clicking the button changes the paragraph to Hello!.

8. Explain HTML attributes with examples.

Attributes provide extra information about an HTML element and are written in the start tag, usually as name="value". href

specifies a link destination; src specifies an image path; alt describes an image; width and height set image dimensions; rowspan

and colspan control table cell spans. The notes also teach align, bgcolor and bordercolor as legacy attributes.

Example code:

Centered paragraph (legacy)

Open website

Expected output: A paragraph, clickable link and image (if logo.png exists) appear.

Program 5: Table using colspan

Colspan

Colspan Program Computer Science Computer Science - IComputer Science - II

Explanation: colspan="2" makes the heading cell cover two columns horizontally.

Expected output: Computer Science heading appears above two subject cells.

Program 6: Hyperlink and image

Link and Image

Open Google

Explanation: creates the link; displays the image. Keep computer.jpg in the same folder for this example.

Expected output: A clickable Open Google link and the image if its file exists.

Program 7: Marquee text (legacy syllabus example)

Marquee

Welcome to my webpage

Explanation: The supplied notes teach and direction for scrolling text. It is obsolete in modern HTML.

Expected output: In supporting legacy browsers, text scrolls from right to left.

5. Quick Revision — Important Tags and Attributes

Tag / Attribute Use Example

Root element of document. ...

Document information. ...

Browser-tab title. <title>My Page

Visible webpage content. ...

to Six heading levels. Title

Paragraph.

Hello

/ / Bold / italic / underlined text. Text

/ Line break / horizontal rule. FirstSecond

/ Subscript / superscript. H2O / x squared

Preformatted text. A B

/ / / Emphasis / inserted / deleted / highlighted. Note

Displays an image.

src / alt Image path / alternative description. src="photo.jpg"

width / height Image dimensions. width="200" height="100"

/ href Hyperlink / destination. Open

/ / Ordered / unordered list / item. One

/ / Definition list / term / description. HTMLMarkup language

/ Table / table title. Marks

/ / Row / heading cell / data cell. 1

border / bgcolor / align Legacy table border, background, alignment.

rowspan / colspan Span rows vertically / columns horizontally. rowspan="2"; colspan="2"

cellspacing / cellpadding Space between cells / inside cell. cellspacing="5"

Legacy scrolling element; obsolete. Hi

Modern HTML note: align, bgcolor, bordercolor, cellspacing, cellpadding, big and marquee are legacy syllabus topics. CSS is

preferred for styling and spacing; marquee is obsolete.

7. Final One-Page Revision Sheet

KEY DEFINITIONS

Term Definition

HTML Hyper Text Markup Language; used to structure webpages with tags.

URL Uniform Resource Locator; address of a web resource.

DHTML Dynamic Hyper Text Markup Language; HTML with scripting and related technologies for dynamic pages.

Browser Software used to view webpages.

Web server Computer/application that sends web content in response to requests.

Attribute Extra information in a start tag, usually name="value".

Hyperlink Clickable text or image that opens another resource.

TAG GROUPS

Topic Remember

Text –,

, , , , , , , , ,

Links/images link;

Lists / contain ; contains and

Tables contains rows ; rows contain or

Scripting

DO NOT CONFUSE THESE

Term Meaning

rowspan Vertical — spans rows.

colspan Horizontal — spans columns.

cellspacing Gap between cells.

cellpadding Space inside a cell, between border and content.

/ Heading cell / data cell.

/ Line break / horizontal rule.

src / href Image source / hyperlink destination.

PROGRAM CHECKLIST: 1. Close paired tags. 2. Nest tags correctly. 3. Quote attribute values. 4. Put list items inside lists. 5. Put

cells inside rows. 6. Check rowspan/colspan. 7. Verify image paths. 8. Save as .html or .htm and open in a browser.

This sheet summarises the main terms and examples in your supplied HTML chapter. Review the long answers and practise

writing each program.