Internet Technology and Web Design Chapter 09 HTML Programming Basics Notes Set 01

Advanced Study Material for Computer Science: Web Design

Access comprehensive study materials and useful resources for Web Design using the Internet Technology and Web Design Chapter 09 HTML Programming Basics Notes Set 01. Designed to align with the 2026-27 academic guidelines, these advanced resources help Computer Science students reinforce core concepts beyond standard textbooks.

Practice Computer Science Resources: Web Design

View or download the dedicated Internet Technology and Web Design Chapter 09 HTML Programming Basics Notes Set 01 resource below. Engaging with these advanced study guides under focused conditions ensures continuous academic progress and mastery of the 2026-27 curriculum for Web Design.

This page starts the HTML chapter with the learning objectives, the history of HTML from GML and SGML, and the popular HTML editors. It then explains the structure of a basic HTML document, the common tags (head, title, paragraph, line break, centre, horizontal line, pre and non-breaking space) and how attributes such as id, title, class, style and dir are written, followed by the text formatting tags such as bold, italic, sub, sup, div, span and comments.

Objectives

At the end of the course the user will be able to

1. Understand the concept of HTML page structure
2. Understand the process of HTML Text
3. Know the basics of HTML links
4. Understand the concept of document tables
5. Know the process of HTML frames
6. Understand the process HTML images
7. Know the basic operations of multimedia

Introduction to HTML

1. HTML is the acronym for Hyper Text Markup Language.
2. HTML is the basic tool for designing a web page.
3. It is a documentation language to mark the headings, title, table and forms.
4. HTML is not case sensitive and can be easily updated after the file is created.
5. To format a simple text file into HTML, the user creates tags that start and finish with angle brackets.
6. To end the formatting or change to another format, type the first angle bracket, a backslash, then repeats the command and close the bracket.
7. For example, <H1> Understanding HTML </H1> is the code used to create the heading.

HTML History

1. IBM wanted to set a documentation system in which we can mark the title, headings, paragraphs and font type selections in the 1980s.
2. They came out with a set of mark-up system called it General Markup Language (GML).
3. In 1986, the International Organization for Standardization (ISO) took up this concept and standardized it as Standard Generalized Markup Language (SGML).
4. SGML is one of the early markup language. SGML is a system for organizing and tagging elements of a document.
5. SGML itself does not specify any particular formatting, rather, it specifies the rules for tagging elements. These tags can then be interpreted to format elements in different ways.
6. In 1989 Tim Berners Lee and his team in the European Laboratory for Particle Physics (CERN) designed the present form of the documentation language and called it HTML.

World Wide Web

1. A web page is a document stored in the World Wide Web.
2. Web pages are created using HTML. Each page contains the data to be included in the web page and the HTML tags.
3. The web browser understands these tags and displays the corresponding web page.
4. We browse the World Wide Web using a web browser.
5. All text, graphics and design elements of a web page are "tagged" with codes that instruct the web browser how to display the files.
6. You can recognize these files easily because they contain the file extension of 'html' or 'htm'.
7. Just consider the following hierarchy of HTML document.

Document Root element:<html> Element:<head> Element:<body> Element:<title> Text:"My title" Element:<a> Element:<h1> Attribute:"href" Text:"My link" Text:"My header"

FIG 9.1 : Hierarchy of HTML Document

HTML Editors

1. An HTML editor is a software application for creating web pages.
2. Although the HTML markup of a web page can be written with any text editor, specialized HTML editors can offer convenience and added functionality.
3. For example, many HTML editors work not only with HTML, but also with related technologies such as CSS, XML and JavaScript.
4. In some cases they also manage communication with remote web servers via FTP and WebDAV.
5. Some commonly used HTML Editors are listed here under,

Adobe Dreamweaver

It is a web development application available for both MAC and Windows operating system. Recent versions have incorporated support for web technologies such as CSS, JavaScript and various server-side scripting languages and frameworks including ASP.NET, ColdFusion, Java Server Pages (JSP), and PHP.

Visual Web Developer Express

It is a freeware web development tool that allows developers to evaluate the web development and editing capabilities of the other Visual Studio 2008 editions at no charge. Its main function is to create ASP.NET websites. It has a WYSIWYG (What You See Is What You Get) interface, drag-and-drop user interface designer, enhanced HTML & code editors; a data base explorer; support for other web technologies (e.g., CSS, JavaScript, XML).

Microsoft FrontPage

It is also known as Microsoft Office FrontPage, is a WYSIWYG HTML editor and web site administration tool from Microsoft for the Microsoft Windows line of operating systems. It was branded as part of the Microsoft Office suite from 1997 to 2003.

Overview of HTML Markup

1. Hypertext refers to the way in which web pages (HTML documents) are linked together.
2. Thus the link available on a web page are called Hypertext.
3. As its name suggests, HTML is a Markup Language which means you use HTML to simply "Markup" a text document with tags that tell a web browser how to structure it to display.
4. Originally, HTML was developed with the intent of defining the structure of documents like headings, paragraphs, lists and so forth to facilitate the sharing of scientific information between researchers.
5. Now, HTML is being widely used to format web pages with the help of different tags available in HTML language.
6. A markup language such as HTML is simply a collection of codes elements in this case that are used to indicate the structure and format of a document.
7. The codes have meaning that is interpreted by a formatting program, often a Web browser, which renders the document.
8. Elements in HTML consist of alphanumeric tags within angle brackets.
9. These tags usually come in pairs, but exceptions do exist.

Basic HTML Document

In its simplest form, following is an example of an HTML document,

<!DOCTYPE html>
<html>
<head>
<title>This is document title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>Document content goes here.....</p>
</body>
</html>

1. Save the file as mypage.html. Start your Internet browser. Select Open (or Open Page) in the File menu of your browser.
2. A dialog box will appear. Select Browse (or Choose File) and locate the html file you just created - mypage.html - select it and click Open.
3. Now you should see an address in the dialog box, for example C:\MyDocuments\mypage.html.
4. Click OK, and the browser will display the page.

Output: The title bar shows "This is document title", the page shows the large heading "This is a heading" and below it the text "Document content goes here....." (FIG 9.2: Output of Sample HTML Program).

Basic HTML Tags

1. The document enclosed within the HTML Tags is identified as a web page.
2. <HTML> is almost the first tag in an HTML page and </HTML> tag is the last tag.
3. Everything else in the web page goes between these two tags and is technically part of the <HTML> element.
4. As told earlier, HTML is a markup language and makes use of various tags to format the content.
5. These tags are enclosed within angle braces <Tag Name>.
6. Except few tags, most of the tags have their corresponding closing tags.
7. For example <html> has its closing tag </html> and <body> tag has its closing tag </body> tag etc.
8. Any formatted text document is composed of a set of elements such as paragraphs, headings and lists.
9. Each element has to be surrounded by control information which tells the presentation or printing software when to switch on a piece of formatting and when to switch it off.
10. In HTML, formatting is specified by using tags.
11. For instance, the following example sets the text to the style h1 and switches that style off before processing any more of the document.
12. A number of points should be noted about HTML tags.

1. Tags are delimited by angled brackets, <h1>.
2. In XHTML tags are case sensitive, for example, <HEAD> and <head> are not equivalent.
3. In HTML up to version 4 tags were not case sensitive, XHTML is case sensitive and furthermore, tags must be in lower case letters.
4. Each element is terminated by an end tag.
5. There are a few exceptions to this rule generally elements which never contain content.
6. Some characters have to be replaced in the text by escape sequences.
7. If < was not escaped the software would attempt to process anything that followed it as part of a tag.
8. Therefore if you want to include such a character in your code you must replace it with the escape sequence.
9. White space, tabs and newlines are ignored by the browser, they can be used to make the HTML source more readable without affecting the way that the page is displayed.
10. Actually they are not ignored, but multiple white spaces are replaced by a single space, while newlines and tabs are treated as spaces.
11. If a browser does not understand a tag it will usually ignore it.

<h1>Understanding HTML</h1>

1. To learn HTML, you will need to study various tags and understand how they behave while formatting a textual document.
2. Learning HTML is simple as users have to learn the usage of different tags in order to format the text or images to make a beautiful web page.
3. An HTML element is defined by a starting tag. If the element contains other content, it ends with a closing tag, where the element name is preceded by a forward slash.
4. So here <p>....</p> is an HTML element, <h1>...</h1> is another HTML element.
5. There are some HTML elements which don't need to be closed, such as <img.../>, <hr /> and <br /> elements.
6. These are known as void elements.
7. HTML documents consist of a tree of these elements and they specify how HTML documents should be built, and what kind of content should be placed in what part of an HTML document.

TagNameDescription
<A>AnchorMake Hyperlinks
<B>BoldBold the text
<BODY>Body of HTML DocumentWhere to start the document and place the HTML codes
<BR>Line BreakForce to change line
<CENTER>CenterCenter alignment
<EM>EmphasisEmphasis the content
<FONT>FontChange font set up
<FORM>FormInsert a form inside the web page
<H1>Heading 1Heading size
<HEAD>Heading of HTML documentContains information about the page
<HR>Horizontal ruleCreate a horizontal line
<HTML>Hypertext markup languageBegins the html document
<I>ItalicItalic the text
<IMG>ImageImage
<INPUT>Input fieldInsert a input field
<LI>List itemCreate a listed item in an unordered or ordered list
<MENU>MenuInsert a menu in a web page
<OL>Ordered listNumbered the list
<P>ParagraphCreate a line break and a space between lines.
<TABLE>TableInsert a table inside a web page
<TD>Table dataThe cell of a table
<TH>Table headerThe header of a table
<TITLE>Document titleThe title in the title bar of the browser
<TR>Table rowThe row of a table
<U>UnderlineUnderline the text
<UL>Unordered listBullets the list
<STRIKE>Strike the textFor making the text appears stroked out
<SUB>SubscriptFor making the text subscript
<SUP>SuperscriptFor making the text superscript
<DFN>DefinitionFor displaying text as a definition
<CITE>CitationsFor displaying citations and references

FIG 9.3 : List of Tags

Head Tags

1. The Head tags are used to store information about the web page such as the title of the page.
2. Any document starts with a heading. You can use different sizes for your headings.
3. HTML also has six levels of headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>.
4. While displaying any heading, browser adds one line before and one line after that heading.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Heading Example</title>
</head>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</html>

Output: Six headings are displayed, from the largest (heading 1) to the smallest (heading 6).

Title Tags

1. The Title tags are used to enter a Title for the web page.
2. This tag contains the title of the HTML document, which will appear in the web browser's title bar and is used by search engines to refer to the document.
3. Each <HEAD> element should include a <TITLE> element.

Paragraph Tags

1. The <p> tag offers a way to structure your text into different paragraphs.
2. Each paragraph of text should go in between an opening <p> and a closing </p> tag.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Paragraph Example</title>
</head>
<body>
<p>Here is a first paragraph of text.</p>
<p>Here is a second paragraph of text.</p>
<p>Here is a third paragraph of text.</p>
</body>
</html>

Output: The three sentences appear as three separate paragraphs.

Line Break Tags

1. Whenever you use the <br /> element, anything following it starts from the next line.
2. This tag is an example of an empty element, where you do not need opening and closing tags, as there is nothing to go in between them.
3. The <br /> tag has a space between the characters br and the forward slash.
4. If you omit this space, older browsers will have trouble rendering the line break, while if you miss the forward slash character and just use <br> it is not valid in XHTML.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Line Break  Example</title>
</head>
<body>
<p>Hello<br />
You delivered your assignment ontime.<br />
Thanks<br />
Mahnaz</p>
</body>
</html>

Output: The four lines Hello, You delivered your assignment ontime., Thanks and Mahnaz appear one below the other.

Centering Content

You can use <center> tag to put any content in the center of the page or any table cell.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Centring Content Example</title>
</head>
<body>
<p>This text is not in the center.</p>
<center>
<p>This text is in the center.</p>
</center>
</body>
</html>

Output: The first sentence is at the left and the second sentence is shown in the centre of the page.

Horizontal Lines

Horizontal lines are used to visually break up sections of a document. The <hr> tag creates a line from the current position in the document to the right margin and breaks the line accordingly.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Horizontal Line Example</title>
</head>
<body>
<p>This is paragraph one and should be on top</p>
<hr />
<p>This is paragraph two and should be at bottom</p>
</body>
</html>

Output: A horizontal line separates the two paragraphs.

1. Again <hr /> tag is an example of the empty element, where you do not need opening and closing tags, as there is nothing to go in between them.
2. The <hr /> element has a space between the characters hr and the forward slash.
3. If you omit this space, older browsers will have trouble rendering the horizontal line, while if you miss the forward slash character and just use <hr> it is not valid in XHTML.

Preserve Formatting

1. Sometimes you want your text to follow the exact format of how it is written in the HTML document. In those cases, you can use the preformatted tag <pre>.
2. Any text between the opening <pre> tag and the closing </pre> tag will preserve the formatting of the source document.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Preserve Formatting Example</title>
</head>
<body>
<pre>
function testFunction( strText ){
   alert (strText)
}
</pre>
</body>
</html>

Output: The three lines of the function are displayed in a fixed-width font exactly as typed, with the same line breaks and indentation.

Non-breaking Spaces

1. Suppose you want to use the phrase "12 Angry Men." Here you would not want a browser to split the "12, Angry" and "Men" across two lines.
2. In cases where you do not want the client browser to break text, you should use a non-breaking space entity &nbsp; instead of a normal space.
3. For example, when coding the "12 Angry Men" in a paragraph, you should use something similar to the following code:

Example program

<!DOCTYPE html>
<html>
<head>
<title>Nonbreaking Spaces Example</title>
</head>
<body>
<p>An example of this technique appears in the movie "12&nbsp;Angry&nbsp;Men."</p>
</body>
</html>

Output: The paragraph reads: An example of this technique appears in the movie "12 Angry Men."

HTML Tag versus Element

1. An HTML element is defined by a starting tag. If the element contains other content, it ends with a closing tag.
2. For example <p> is starting tag of a paragraph and </p> is closing tag of the same paragraph but <p> this is paragraph</p> is a paragraph element.

Nested HTML Elements

It is very much allowed to keep one HTML element inside another HTML element,

Example program

<!DOCTYPE html>
<html>
<head>
<title>Nested Elements Example</title>
</head>
<body>
<h1>This is <i>italic</i> heading</h1>
<p>This is <u>underlined</u> paragraph</p>
</body>
</html>

Output: The heading shows the word italic in italics and the paragraph shows the word underlined with an underline.

HTML Attributes

1. An attribute is used to define the characteristics of an HTML element and is placed inside the element's opening tag.
2. For example, in <p lang="en-us">Paragraph in English</p>, lang is the attribute name and "en-us" is the attribute value (FIG 9.4: Attributes of HTML Program).
3. Attributes names and attribute values are case sensitive. However, the World Wide Web consortium (W3C) recommends lowercase attributes/attribute values in their HTML4 recommendation.
4. All attributes are made up of two parts. They are, Name and Value.

Name Attribute

The Name is the property you want to set. For example, the paragraph <p> element in the example carries an attribute whose name is align, in which you can use to indicate the alignment of paragraph on the page.

Value Attribute

The Value is what you want the value of the property to be set and always put within quotations. The below example shows three possible values of align attribute. There are such as, Left, Right and Center.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Align Attribute  Example</title>
</head>
<body>
<p align="left">This is left aligned</p>
<p align="center">This is center aligned</p>
<p align="right">This is right aligned</p>
</body>
</html>

Output: The three paragraphs are shown at the left, in the centre and at the right of the page.

Core Attributes

The four core attributes that can be used on the majority of HTML elements (although not all) are, id, title, class and style.

The id attribute

1. The id attribute of an HTML tag can be used to uniquely identify any element within an HTML page. There are two primary reasons that you might want to use an id attribute on an element.
2. If an element carries an id attribute as a unique identifier it is possible to identify just that element and its content.
3. If you have two elements of the same name within a web page (or style sheet), you can use the id attribute to distinguish between elements that have the same name.

Example

<p id="html">This para explains what is HTML</p>
<p id="css">This para explains what is Cascading Style Sheet</p>

The title attribute

1. The title attribute gives a suggested title for the element. The syntax for the title attribute is similar as explained for id attribute.
2. The behavior of this attribute will depend upon the element that carries it, although it is often displayed as a tooltip when cursor comes over the element or while the element is loading.

Example Program

<!DOCTYPE html>
<html>
<head>
<title>The title Attribute Example</title>
</head>
<body>
<h3 title="Hello HTML!">Titled Heading Tag Example</h3>
</body>
</html>

Output: The heading "Titled Heading Tag Example" is shown and the tooltip "Hello HTML!" appears when the pointer is placed over it.

The class attribute

1. The class attribute is used to associate an element with a style sheet, and specifies the class of element.
2. You will learn more about the use of the class attribute when you will learn cascading style sheet (CSS).
3. The value of the attribute may also be a space separated list of class names.

Example program

class="className1 className2 className3"

The style attribute

The style attribute allows you to specify cascading style sheet (CSS) rules within the element.

Example program

<!DOCTYPE html>
<html>
<head>
<title>The style Attribute</title>
</head>
<body>
<p style="font-family:arial; color:#FF0000;">Some text...</p>
</body>
</html>

Output: The text "Some text..." is shown in red.

At this point of time, we are not learning CSS, so just let's proceed without bothering much about CSS. Here you need to understand what are HTML attributes and how they can be used while formatting content.

Internationalization Attributes

There are three internationalization attributes, which are available for most (although not all) XHTML elements: dir, lang and xml:lang.

The dir attribute

The dir attribute allows you to indicate to the browser the direction in which the text should flow. The dir attribute can take one of two values, as you can see in the table that follows.

ValueMeaning
ltrLeft to right (default value)
rtlRight to left (for languages such as Hebrew or Arabic that are read right to left.

FIG 9.5: The dir attribute value

Example program

<!DOCTYPE html>
<html dir="rtl">
<head>
<title>Display Directions</title>
</head>
<body>
This is how IE 5 renders right-to-left directed text.
</body>
</html>

Output: The sentence is displayed from the right side of the page.

1. When dir attribute is used within the <html> tag, it determines how text will be presented within the entire document.
2. When used within another tag, it controls the text's direction for just the content of that tag.

The lang Attribute

1. The lang attribute allows you to indicate the main language used in a document, but this attribute was kept in HTML only for backwards compatibility with earlier versions of HTML.
2. This attribute has been replaced by the xml:lang attribute in new XHTML documents.
3. The values of the lang attribute are ISO-639 standard two-character language codes. Check HTML Language Codes: ISO 639 for a complete list of language codes.

Example program

<!DOCTYPE html>
<html lang="en">
<head>
<title>English Language Page</title>
</head>
<body>
This page is using English Language
</body>
</html>

The xml:lang Attribute

The xml:lang attribute is the XHTML replacement for the lang attribute. The value of the xml:lang attribute should be an ISO-639 language code as mentioned in previous section.

Generic Attributes

Here's a table of some other attributes that are readily usable with many of the HTML tags.

AttributeOptionsFunction
alignright, left, centerHorizontally aligns tags
valigntop, middle, bottomVertically aligns tags within an HTML element.
bgcolornumeric, hexidecimal, RGB valuesPlaces a background color behind an element
backgroundURLPlaces a background image behind an element
idUser DefinedNames an element for use with Cascading Style Sheets.
classUser DefinedClassifies an element for use with Cascading Style Sheets.
widthNumeric ValueSpecifies the width of tables, images, or table cells.
heightNumeric ValueSpecifies the height of tables, images, or table cells.
titleUser Defined"Pop-up" title of the elements.

FIG 9.6: Generic attribute

AttributesValueDescription
AlignTop, bottom, middle, left, rightSpecifies the alignment of an image according to surrounding elements
AltTextSpecifies an alternate text for an image
BorderPixelsSpecifies the width of the border around an image.
CrossoriginAnonymous, use-credentialsAllow images from third party sites that allow cross sign access to be used with canvas
HeightPixelsSpecifies the height of an image.
HspacePixelsSpecifies the whitespace on left and right side of an image
IsmapIsmapSpecifies an image as a server side image map
LongdesUrlSpecifies the URL to a document that contains a long description of an image
SrcUrlSpecifies the URL of an image
Usemap#mapnameSpecifies an image as a client side image map
VspacePixelsSpecifies the white space on top and bottom of an image
WidthPixelsSpecifies the width of an image

FIG 9.7: Attributes Value and description

HTML Text

1. The text on HTML page can be altered in a number of ways.
2. The actual font used can be changed to attempt to force the browser to use a specific font and the look of the text can be changed for emphasis.
3. Web page authors who are worried about issues of usability and who want to create pages which work across different types of device frown upon the elements in this section.
4. It is a really good idea to use styles wherever possible.
5. The forthcoming XHTML 2 recommendation even suggests that the style attribute will disappear, to be replaced by a new element.
6. Unfortunately many HTML editing tools still use the elements and attributes listed here so the chances are that you will come across these at some point.
7. Be aware that whenever you are able to write your code by hand, or if you have user configurable tool, you should use styles.
8. If you use a word processor, you must be familiar with the ability to make text bold, italicized, or underlined; these are just three of the ten options available to indicate how text can appear in HTML and XHTML.

Bold Text

Anything that appears within <b>...</b> element, is displayed in bold.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Bold Text Example</title>
</head>
<body>
<p>The following word uses a <b>bold</b> typeface.</p>
</body>
</html>

Output: The word bold is shown in bold letters.

Italic Text

Anything that appears within <i>...</i> element is displayed in italicized.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Italic Text Example</title>
</head>
<body>
<p>The following word uses a <i>italicized</i> typeface.</p>
</body>
</html>

Output: The word italicized is shown in italics.

Underlined Text

Anything that appears within <u>...</u> element, is displayed with underlined.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Underlined Text Example</title>
</head>
<body>
<p>The following word uses a <u>underlined</u> typeface.</p>
</body>
</html>

Output: The word underlined is shown with a line under it.

Strike Text

Anything that appears within <strike>...</strike> element is displayed with strike through, which is a thin line through the text.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Strike Text Example</title>
</head>
<body>
<p>The following word uses a <strike>strikethrough</strike> typeface.</p>
</body>
</html>

Output: The word strikethrough has a thin line through it.

Monospaced font

1. The content of a <tt>...</tt> element is written in monospaced font.
2. Most of the fonts are known as variable-width fonts because different letters are of different widths (for example, the letter 'm' is wider than the letter 'i').
3. In a monospaced font, however, each letter has the same width.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Monospaced Font Example</title>
</head>
<body>
<p>The following word uses a <tt>monospaced</tt> typeface.</p>
</body>
</html>

Output: The word monospaced is shown in a fixed-width font.

Superscript Text

The content of a <sup>...</sup> element is written in superscript; the font size used is the same size as the characters surrounding it but is displayed half a character's height above the other characters.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Superscript Text Example</title>
</head>
<body>
<p>The following word uses a <sup>superscript</sup> typeface.</p>
</body>
</html>

Output: The word superscript is raised above the line.

Subscript Text

The content of a <sub>...</sub> element is written in subscript; the font size used is the same as the characters surrounding it, but is displayed half a character's height beneath the other characters.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Subscript Text Example</title>
</head>
<body>
<p>The following word uses a <sub>subscript</sub> typeface.</p>
</body>
</html>

Output: The word subscript is lowered below the line.

Inserted Text

Anything that appears within <ins>...</ins> element is displayed as inserted text.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Inserted Text Example</title>
</head>
<body>
<p>I want to drink <del>cola</del> <ins>wine</ins></p>
</body>
</html>

Output: The word cola is struck through and the word wine is underlined.

Deleted Text

Anything that appears within <del>...</del> element is displayed as deleted text.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Deleted Text Example</title>
</head>
<body>
<p>I want to drink <del>cola</del> <ins>wine</ins></p>
</body>
</html>

Output: The word cola is struck through and the word wine is underlined.

Larger Text

The content of the <big>...</big> element is displayed one font size larger than the rest of the text surrounding it.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Larger Text Example</title>
</head>
<body>
<p>The following word uses a <big>big</big> typeface.</p>
</body>
</html>

Output: The word big is shown in a larger size.

Smaller Text

The content of the <small>...</small> element is displayed one font size smaller than the rest of the text surrounding it.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Smaller Text Example</title>
</head>
<body>
<p>The following word uses a <small>small</small> typeface.</p>
</body>
</html>

Output: The word small is shown in a smaller size.

Grouping Content

1. The <div> and <span> elements allow you to group together several elements to create sections or subsections of a page.
2. For example, you might want to put all of the footnotes on a page within a <div> element to indicate that all of the elements within that <div> element relate to the footnotes.
3. You might then attach a style to this <div> element so that they appear using a special set of style rules.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Div Tag Example</title>
</head>
<body>
<div id="menu" align="middle" >
<a href="/index.htm">HOME</a> |
<a href="/about/contact_us.htm">CONTACT</a> |
<a href="/about/index.htm">ABOUT</a>
</div>

<div id="content" align="left" bgcolor="white">
<h5>Content Articles</h5>
<p>Actual content goes here.....</p>
</div>
</body>
</html>

Output: The links HOME, CONTACT and ABOUT appear in a menu line at the top and the heading Content Articles with the text "Actual content goes here....." appears below it.

1. The <span> element, on the other hand, can be used to group inline elements only.
2. So, if you have a part of a sentence or paragraph which you want to group together, you could use the <span> element as follows.

Example program

<!DOCTYPE html>
<html>
<head>
<title>Span Tag Example</title>
</head>
<body>
<p>This is the example of <span style="color:green">span tag</span> and the
<span style="color:red">div tag</span> alongwith CSS</p>
</body>
</html>

Output: The words span tag are shown in green and the words div tag are shown in red.

These tags are commonly used with CSS to allow you to attach a style to a section of a page.

Comment Lines

1. HTML programming language has the facility to include comment lines for the reference of the programmer.
2. The comment will not appear in the web page. We include comments using the <!-- ...... --> tag.
3. The general format is,

<!-- Write your comments here -->

Example

<!-- This part illustrates the product profile of the company -->

Useful Resources and Notes for Computer Science Web Design

Quick Revision Material for Web Design

Access comprehensive study material for Web Design, including revision notes, concept maps, and high-probability questions. These resources are designed in alignment with the latest 2026 CBSE syllabus for Computer Science to support effective exam preparation.

Expert Notes and Solved Exam Questions

Each resource draws directly from authorized textbooks to maintain academic accuracy. Evaluating solved examples allows students to master the formal presentation and answer-writing standards expected in upcoming school exams.

Additional Study Resources for

Wrap up your chapter revision by testing your knowledge against standard objective question formats. Explore our full library of free, up-to-date sample papers and online assessments to secure top grades in your CBSE examinations.

FAQs

Where can I find the most advanced study material for [current-page:node:field_board] [current-page:node:field_class] Computer Science for 2026-27?

The latest 2026-27 advanced study resources for Computer Science are available for free on StudiesToday.com which includes NCERT Exemplars, high-order thinking skills (HOTS) questions, and deep-dive concept summaries.

What does the 2026-27 Computer Science study package for [current-page:node:field_class] include?

Our exhaustive Computer Science package includes chapter wise revision notes, solved practice sheets, important formulas and Concept Maps to help in better understanding of all topics.

Is this study material enough for both [current-page:node:field_board] exams and competitive tests?

Yes. For , our resources have been developed to help you get better marks in school exams and also build fundamental strength needed for entrance tests including Competency Based learning.

How should [current-page:node:field_class] students use this Computer Science material for maximum marks?

in , students should use Active Recall method, read the concept summary, then solve the Important Questions section without looking at the answers and then check your answers.

Can I download [current-page:node:field_class] Computer Science study notes in PDF for offline use?

All Computer Science study materials are provided in mobile-friendly PDF. You can download and save them on your device.

Are the [current-page:node:field_class] Computer Science resources updated for the latest NEP guidelines?

Yes, our team has ensured that all Computer Science materials for are strictly aligned with the National Education Policy (NEP) 2020 and the latest 2026-27 syllabus.