Web7
Web7
Student Module
Grade 11
UNIT 4
Unit Coverage_
This unit is designed to provide you the necessary information andpractice regarding the follow-
ing content coverage:
4.1. Online communication
4.2. Online collaboration
This unit will also assist you to attain the following learning outcomes. Specifically, upon comple-
tion of this unit, you will be able to:
S Enhance online communication and collaboration Unit Overview
In this unit, we delve into the dynamic realm of online communication and collaboration, recogniz-
ing its pivotal role in the landscape of web development. We begin by examining the profound sig-
nificance of effective communication and collaboration, laying the foundation for understanding
their impact on successful web projects.
Key Terms: communication, Collaboration, Email, etiquette, Email Signature, Autoreply, G Suite
Microsoft 365, cloud computing
4.1. Online communication
Effective communication stand as fundamental pillars in the realm of seamless web development,
playing pivotal roles in fostering innovation and productivity. These cornerstones form the basis
MINISTRY OF 180
Grade 11 Web Design and Student
for successful collaboration among web development teams, ensuring that projects progress
smoothly and efficiently. Here's how they contribute to the overall process:
- Shared Understanding:
Effective communication ensures that all team members share a common understanding of project
goals, objectives, and requirements. Collaboration facilitates the exchange of ideas, aligning the
team's vision and reducing the likelihood of misunderstandings.
- Efficient Problem Solving:
Rapid and open communication allows for quick identification and resolution of issues, prevent-
ing potential roadblocks. Collaborative efforts bring together diverse perspectives, enabling cre-
ative problem-solving and innovative solutions.
- Streamlined Workflows:
Well-established communication channels and collaboration tools streamline workflows, reducing
delays and optimizing the development process. Clear communication of tasks and responsibili-
ties ensures that everyone is on the same page, enhancing overall efficiency.
- Innovation through Diversity:
Collaboration brings together individuals with diverse skill sets and perspectives. Effective com-
munication in this environment sparks creativity and innovation, leading to the development of
unique and groundbreaking solutions.
- Optimized Resource Utilization:
Collaboration helps in the effective distribution and utilization of resources, preventing redun-
dancy and optimizing productivity. Communication about resource availability and needs ensures
that the right tools and talents are applied where they are most needed.
- Adaptability to Changes:
Open communication channels allow teams to adapt swiftly to changes in project requirements or
scope. Collaboration ensures that adjustments can be made collectively, leveraging the strengths
of the entire team.
- Continuous Improvement:
MINISTRY OF 181
Grade 11 VVWU I-^V^JLgJLI OIJLU.
Qa Outlook yahoo/mail
OLUUClll
In essence, effective communication and collaboration not only enable the seamless execution of
web development projects but also create an environment conducive to innovation, adaptabil-
ity, and continuous improvement. By recognizing these aspects as cornerstones, teams can un-
lock their full potential and deliver high-quality, cutting-edge solutions in the ever-evolving
landscape of web development.
4.1.1. Functions and features of communication tools
4.1.1.1. Effective communication
Effective communication is crucial for personal and professional success. In today's digital age,
various tools facilitate seamless communication, enabling individuals and teams to stay con-
nected, share information, and collaborate efficiently. Effective communication is essential
for web developers to collaborate with team members, clients, and stakeholders. Various digi-
tal tools facilitate seamless communication, ensuring that projects run smoothly and effi-
ciently. This section explores key communication tools that are crucial for web developers,
including email, messaging apps, video conferencing, and social media platforms.
MINISTRY OF 182
Grade 11 Web Design and Student
© ::: f
= I''1'! Gmail Q. s sarch mail
Com- m.
+ Compose
B- 0 O B ia HAS
oa»; Im A ^
<>I
pose
Q Primary Social ^ Promotions 0 Upd
Category
button □ Inbox 1
tabs
★ Starred Pepe Roni Breakfast? • Weren't you sup 10:03 AM
panel • IT
m IT
B. Messaging Apps:
Messaging apps provide real-time text communication, often with additional features such as
voice and video calls, file sharing, and group chats. Instant messaging platforms enable real-time,
informal communication. Messaging apps enable real-time communication, making it easier for
web developers to discuss project details, solve issues quickly, and share resources. Examples in-
clude Telegram, which allows for organized conversations in channels, and WhatsApp, which
supports group chats and multimedia sharing.
Applications:
• Quick exchanges for urgent matters.
• Group chats for team-wide discussions.
• Sharing files, links, and multimedia content.
MINISTRY OF 183
Grade 11 Web Design and Student
C. Video Conferencing:
Video conferencing tools enable face-to-face communication over the internet, facilitating virtual
meetings, webinars, and online classes. Video conferencing tools are essential for remote web de-
velopers to conduct virtual meetings, collaborate with teams, and present work to clients. Tools
like Zoom, which offers features like screen sharing and breakout rooms, and Microsoft Teams,
which integrates with other Microsoft 365 applications, are widely used in the industry.
Applications:
• Conducting virtual meetings and brainstorming sessions.
• Hosting project presentations.
• Facilitating remote collaboration with a personal touch.
Example Platforms: Zoom, Microsoft Teams, Google Meet
O^ ^
ZOOITI Microsoft Teams Google Meet
D. Social Media Platforms:
Social media platforms allow users to connect, share content, and engage with others online.
These platforms are used for networking, marketing, and staying informed about current events.
Platforms for both professional and casual communication. Social media platforms help web de-
velopers stay updated on industry trends, network with other professionals, and showcase their
work. LinkedIn is particularly useful for professional networking and finding job opportunities,
while platforms like Twitter and Facebook are great for engaging with the developer community
and sharing projects.
Applications:
• Engaging with a broader audience.
• Sharing industry updates and insights.
• Connecting with peers and professionals.
Example Platforms: LinkedIn, Twitter, Facebook and Instagram
Linked
Understanding the nuances of each communication tool empowers web development teams to
choose the most suitable channels for different scenarios. Whether it's the formality of email, the
immediacy of messaging apps, or the richness of video conferencing, leveraging these tools
strategically enhances collaboration and contributes to the overall success of web development
projects.
MINISTRY OF 184
Discussion
Student
Grade 11 Web Design
and
Are there specific purp ; or objectives for which you rely on em
• Are there any specific email etiquette
OnO guidelines or best practices you follo w regularly?
Email is a fundamental tool for web developers, facilitating efficient and formal communication
with clients, team members, and stakeholders. It provides a reliable platform for sharing project
updates, discussing requirements, sending documents, and maintaining a written record of com-
munications. Utilizing email effectively ensures clear and professional interactions, which is cru-
cial for successful project management and client relations. Here are some key ways leaders can
use email in their roles:
Key Ways Web Developers Can Use Email
1. Project Updates:
• Keep clients and team members informed about the progress of ongoing projects.
• Send regular status reports and milestones achieved.
2. Client Communication:
• Discuss project requirements, timelines, and deliverables.
• Address client queries and feedback promptly.
3. Team Collaboration:
• Coordinate tasks and share important information with team members.
• Use email to schedule meetings and set deadlines.
4. Document Sharing:
• Send design mockups, code snippets, and other project-related documents.
• Utilize attachments and links for easy access to shared files.
5. Networking:
• Connect with other professionals in the industry.
• Share your portfolio and seek collaboration opportunities.
4.1.2.1. Email etiquette
Email etiquette in a professional setting refers to the set of guidelines and principles that individu-
als should follow when using email for business or work-related communication. Adhering to
proper email etiquette is crucial for maintaining a positive, respectful, and effective
MINISTRY OF 185
Grade 11 Web Design and Student
M Gmail
Secure, smart,
and easy to use
email
Get more done with Gmed Now integrated wrth Google
Chat, Google Meet, and more, al in one place.
You'll need to input your first and last name and the username you'd like for your email ad-
dress. The username is what comes before "@gmail.com" in your email address (for instance,
in "[email protected],” the username is “example”).
You'll also need to set a strong password. Once you've done all of that, click on "Next."
MINISTRY OF 189
Web design Using HTML
Grade 11 Web Design and Development
Student Module
MARKUP LANGUAGE
Introduction to markup language
Markup languages can be defined as a set of instructions or codes used to annotate and format text in a document.
These languages provide a structured way to add meaning and structure to content, allowing for easier interpretation
and presentation on various platforms and devices. The term "markup languages" refers to a collection of codes and
instructions that are utilized to annotate and format text within a document. These languages enable the addition of
structure and meaning to content, facilitating its interpretation and presentatioacross different platforms and de -
vices.
A markup language is a set of rules that defines how the layout and presentation of text and images should appear in
a digital document. It allows structuring documents, adding formatting, and specifying how different elements
should be displayed (or “rendered”) on webpages. This structuring helps search engines like Google understand the
information on websites better. If search engines know more about what a page is about, they are more likely to
show it to people who are looking for its content. Which, in result, can bring more people to websites with the right
markup.
When we think, “what is a markup language,” we consider some common features. If you’re wondering whether a
language is a markup language, compare the language to these hallmarks:
• A markup language uses tags to annotate texts. Tags are special words or characters that indicate when formatting
should be applied.
• The text that goes between the opening and closing tags will be affected by
the formatting. In the case of the bold tag, the document would show the text in bold font.
• Markup languages are easy to read. For the most part, anyone should be able to read and understand a markup
language, even if they can’t write it.
• Markup languages also have a syntax, or set of rules, that define how to use the tags. This syntax allows for con -
sistent and structured documents.
315
Reasons to Learn a Markup Language
Millions of people worldwide use markup languages for a wide variety of purposes. Learning a markup language,
such as HTML (Hypertext Markup Language) or XML (Extensible Markup Language), can be beneficial for various
reasons:
• Web Development: Markup languages are fundamental to web development. HTML, in particular, is the backbone
of web pages, defining the structure and content of a webpage. By learning HTML, you gain the ability to create
and modify web pages, which is a valuable skill in today's digital age.
• Content Creation: Markup languages are used not only for web development but also for creating structured doc -
uments in various domains such as documentation , publishing, and data interchange. XML, for instance, is widely
used for storing and exchanging structured data in fields like finance, healthcare, and e-commerce.
• Understanding Web Technologies: Learning a markup language provides a solid foundation for understanding
other web technologies like CSS (Cascading Style Sheets) and JavaScript. HTML, CSS, and JavaScript form the
core technologies of the web, and having a grasp of HTML is essential for effectively working with these other
technologies.
• Career Opportunities: Proficiency in markup languages can open up numerous career opportunities in web devel -
opment, content creation, technical writing, digital marketing, and more. Many companies seek candidates with
HTML and XML skills, making it a valuable addition to your resume.
• Customization and Personalization: Knowing how to work with markup languages allows you to customize and
personalize your online presence. Whether you want to create your own website, blog, or online portfolio, HTML
gives you the power to design and structure your content according to your preferences.
• Enhanced Communication: Markup languages are a universal way of structuring and sharing information. Learn-
ing HTML or XML enables you to effectively communicate and collaborate with other developers, designers, and
content creators, whether you're discussing web projects or exchanging data in a standardized format.
• Adaptability and Future-Proofing: Markup languages have been around for decades and continue to evolve with
the changing landscape of technology. By learning a markup language, you equip yourself with a timeless skill that
can adapt to new developments and trends in the digital world.
1.2. Types of markup languages
Markup languages can be classified into various categories based on their purpose and functionality. These cate-
gories include:
• Presentation Markup Languages: These markup languages are primarily used to define the visual presentation of
a document or webpage. Examples of presentation markup languages include HTML (Hypertext
Markup Language) and CSS (Cascading Style Sheets).
• Data Markup Languages: Data markup languages are designed to structure and organize data within a document
or database. XML (eXtensible Markup Language)
is a widely used data markup language that allows for the representation and exchange of structured data.
• Mathematical Markup Languages: These markup languages are specifically designed for representing mathemat-
ical equations and formulas. MathML (Mathematical Markup Language) is an example of a
markup language used for mathematical notation.
• Document Markup Languages: Document markup languages are used to structure and annotate textual content
within a document. Examples of document markup languages include SGML (Standard General-
ized Markup Language) and LaTeX.
• Domain-Specific Markup Languages: These markup languages are tailored to specific industries or domains. For
example, MusicXML is a markup language used for representing sheet music, while SVG (Scal-
able Vector Graphics) is a markup language for describing two-dimensional graphics.
• eXtensible Business Reporting Language (XBRL): XBRL is a specialized markup language used for financial
reporting and analysis. It standardizes the representation of financial data, making it easier to
compare and analyze information across different organizations and industries.
319
1.3. Introduction to HTML
HTML stands for HyperText Markup Language. It is used to design web pages using a markup language and
creates a complete website structure of web pages. HTML is a combination of Hypertext and Markup language.
Hypertext defines the link between web pages. A markup language is used to define the text document within the
tag which defines the structure of web pages. This language is used to annotate (make notes for the computer)
text so that a machine can understand it and manipulate text accordingly. Most markup languages (e.g. HTML)
are human-readable. The language uses tags to define what manipulation has to be done on the text.
HTML is the basic language for web content creation. It is used to create a structure or blueprint of the web doc-
uments. It uses various tags to define the different elements on a page, such as headings, paragraphs, and links.
1.3.2. Characteristics of HTML
The characteristics of HTML are as follows:
• HTML is not a programming language. It's a markup language.
• HTML is a widely used language on the web.
• HTML is used to create web pages and web applications. We can create a static website by HTML only.
• HTML describes the structure of a Web page
• HTML consists of a series of elements
• HTML elements tell the browser how to display the content
• All the HTML elements/tags are incase-insensitive.
• HTML supports a wide range of media types, including text, images, audio, and video, which makes web pages
more engaging and interactive
• HTML is a flexible language that can be used with other technologies, such as CSS and JavaScript, to add addi-
tional features and functionality to a web page
• Since HTML is compatible with all browsers, web pages created in HTML are displayed across a variety of plat-
forms and devices.
1.3.3. Features of HTML
• Easy to Learn and Use: HTML has a simple and straightforward syntax, making it relatively easy for beginners to
learn. Its tag-based structure is intuitive, and there are plenty of resources available online for learning HTML.
• Platform-Independent: HTML is platform-independent, meaning it can be viewed on any device or operating sys-
tem that has a web browser. Whether you're using a computer, tablet, or smartphone, HTML content will render con-
sistently across different platforms.
• Support for Multimedia: HTML allows the embedding of multimedia content such as images, videos, and audio
files directly into web pages using tags like <img>, <video>, <audio>, etc. This enables the creation of visually en-
gaging and interactive web experiences.
• Simple Markup Language: HTML is indeed a simple markup language. Its syntax consists of tags that are easy to
understand and use. Tags are enclosed in angle brackets (< >) and provide a straightforward way to structure
content on a web page.
• Easy Implementation: HTML's simplicity makes it easy to implement. With just a basic understanding of its syn -
tax, users can start creating web pages. Additionally, there are numerous online resources, tutorials, and doc-
umentation available to help beginners learn HTML quickly.
• Website Creation: HTML is the backbone of web development. It serves as the foundation for creating websites by
defining the structure and content of web pages. While HTML alone can create static web pages, it is often
combined with other technologies such as CSS for styling and JavaScript for interactivity to create dynamic
and engaging websites.
• Fundamentals of Web Programming: Learning HTML provides a solid foundation for understanding web pro-
gramming concepts. It introduces beginners to essential concepts like markup languages, document structure,
elements, attributes, and the basics of client-side web development. Mastering HTML lays the groundwork for
delving into more advanced web technologies and programming languages.
Tools Required in web design
The necessary tools for establishing an HTML development environment. Setting up an HTML development envi-
ronment is crucial for efficient web development. Here are the essential tools you’ll need: Code editors and
Browsers.
I. Code Editor tools
First, you'll need a good code editor is the foundation of your development environment. It provides syntax high -
lighting, auto-completion, and other features to enhance your coding experience. it is a program that allows you to
write and edit code. These tools enhance productivity, reduce manual tasks, and provide a comfortable environ-
ment for web developers. Each has its own features and benefits, so it's important to choose one that suits your
needs and preferences.
Some commune popular IDEs for HTML web development include notepad++, Visual Studio Code (VS Code),
Adobe Dreamweaver CC, Atom, WebStorm, and Sublime Text. There are broadly two types of HTML Editors:
1. Textual HTML Editor
These are text-based editors where the developers can write their codes and compile them. The code appears in the
same manner we write it, thus it requires basic knowledge of HTML. Some of these editors also provide features
of making a project, managing all the files related to the web, etc. Examples of HTML Text editors include-
Notepad++, VSCode,Sublime Text.
2. WYSIWYG HTML Editor
What you see is what you get’ is its full form. WYSIWYG are editors that provide the preview of the output of the
source code i.e. as it would appear on a browser. There is a drag and drop feature available in most of them that
eases the handling. It does not require any hardcore knowledge of HTML, thus enabling non-technicals to easily
develop websites. Examples include-Adobe Dreamweaver, Amaya, BlueGriffon, etc.
3. Browser Tools
Next, you'll need a web browser. A web browser is the program that you use to view web pages. It's also essential
for testing HTML code. Popular browsers include Google Chrome, Mozilla Firefox, and Apple Safari. Like text
editors, each browser has its own unique
2.2. Basic HTML document structure
HTML document structure
1
An HTML document contains the text of the page itself and HTML tags, which define the
structure and appearance of the document. It also contains hyperlinks to other pages or to in-
clude multimedia elements such as audio, video, animations etc. Entire HTML document is
bound within a pair of <html> and </html> tags.
HTML depicts each element as shown below Table 2-2: Example 1:Basic
HTML structure
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
</head>
<body>
</body>
</html>
Grade 11 Web Design and Development Student Module
2 <html> element: This is the root element of the document and en-
closes all other elements
3 <head> element
This element contains metadata about the document, such as the title, author,
and character set. It does not contain any visible content on the page
4 <Mata> element:
This element is HTML elements that provide information about a webpage to
search engines and website visitors. It is are used to provide metadata about a
webpage, such as its title, description, and keywords, which can improve its
visibility in search engine results
5 <title> element:
This element is nested within the head element and specifies the title of the
web page, which appears in the browser's title bar
6 <body> element
This element contains all visible content on the page, such as text, images,
links, and other HTML elements.
HTML Hierarchy
HTML elements are hierarchical, which means that they can be nested inside each other to
create a tree-like structure of the content on the web page.This hierarchical structure is called
the DOM (Document Object Model), and it is used by the web browser to render the web
page.
Every web document has two sections. Heading Section and Body Section. The heading sec-
tion is used to show the title of a webpage in the title bar or tab heading in the browser. The
head section should begins with <head> tag and end with </head> tag. The tag <title> is used
to specify the title of the webpage.
The body section is used to display the main content on the browser window. The body sec-
tion should defined within <body> and </body> tags. Whatever the text you specify between
these tags will display on the browser window.
Example:- Comprehensive of HTML documents
Code Description: HTML code to create the first file <html>
<head>
<title> My First Web Page </title>
</head>
<body>
This is my First Web Page
</body>
<html >
347
2.2.1. Create a HTML file
An HTML file is simply a text file saved with an .html or .htm extension. A file that contains
Hyper Text Markup Language is called an HTML file. This file is stored in a standard text
format with the .html extension and contains tags that define a web page layout and content
like text, tables, images, videos, and hyperlinks.
.html is the extension of an HTML file. Like any other file that is on your device, HTML files
also have an extension (we'll know more about it later in the article), and that is .html at the
end of the HTML file name, for example: index.html
In the late 90s, when HTML was introduced, .htm was used as the extension of an HTML file.
However, nowadays, .html is preferred and used commonly. We will discuss this in detail later
in this article.
• Copyright information: This is used to protect the intellectual property rights of the page's creator.
Metadata is used in an HTML page to provide additional context and information about the page's content. This can be
helpful for search engines, which use metadata to understand the content of a page and to rank it in search results, and for
users, who can use metadata to get a better sense of what a page is about before deciding whether or not to visit it. Meta -
data can also be used by web browsers and other systems to understand and interpret the content of a page and to display
it correctly.
What are HTML tags in SEO?
HTML tags are short pieces of code on the web page that provide technical information about its content.
The purpose of these tags is to tell search engines how to “interact” with the page, how it should be displayed in Google
Search as well as to visually adjust the page’s content in web browsers (for better user experience).
Why are HTML tags important in SEO?
HTML and meta tags (+ their attributes) indicate to Google what the page is about, how the
web crawler should interact with its content, and whether or not (or how) it should be displayed in Google Search.
Whenever a crawler like Googlebot visits a page, it scans its content along with the provided tags to get a better understanding
the page and decides:
• Whether or not (or how) the page should be crawled and indexed.
• How relevant (and optimized) the page is for certain search queries.
• How it should be displayed in Google SERPs
Student Module
Key Terms: Tags, Element, attribute, paragraph, heading, anchor, link, hyperlink, list, table, form and multimedia
Unit Overview
The emphasis of this unit was on HTML elements, which include forms, frames, lists, tables, links, text formatting
elements, and multimedia elements. Links enable users to move between sites, and text formatting components
style and format content. Lists classify and present data; tables show tabular information; frames divide pages into
sections; and forms gather user input via text fields, checkboxes, radio buttons, and submit buttons. The user expe -
rience is improved with multimedia features that incorporate photos, movies, and audio files. In general, HTML el -
ements are essential for building dynamic, aesthetically pleasing webpages.
HTML Elements
HTML uses predefined tags and elements which tell the browser how to properly display the
content. HTML Tags and Elements are sometimes perceived as the same. However, they are
not. There is a subtle difference between HTML elements and tags that many people aren't
aware of.
An HTML element is defined by a start tag, some content, and an end tag. The Element can
be articulated in the following form or syntax.
Syntax: <element> content </element>
ttt
,<hl^, Hello, World, f/hlj>
H f T
Opening Tag Plain Text Closing Tag
For a more detailed analysis, it is recommended to sort HTML tags into distinct categories
based on Utility, function and purpose. Now, tags can be categorized into three distinct types:
Paired tags, unpaired tags, and Utility-Based tags.
Utility-Based Tags
The HTML tags can be widely differentiated on the basis of their utility, that is, on the basis
of the purpose they serve. We can divide them basically into three categories as discussed be-
low:
1. Formatting Tags
The HTML tags that help us in the formatting of the texts like the size of the text, font styles,
making a text bold, etc. This is done using tags like <font>, <b>, <u>, etc. Tables, divisions,
and span tags are also those tags that help format a web page or document and set the layout
of the page.
2. Structure Tags
The HTML tags that help in structuring the HTML document are called Structure Tags. De-
scription, head, html, title, body, etc., form the group of the page structure tags. The struc-
ture tags only assist in creating or forming the basic html page from the root; that is, they
do not affect or has any hand in the formatting of texts.
3. Control Tags
Another category of tags that can be created is ‘Control Tags’. The Script tags, radio buttons
or checkboxes, the Form tags, etc., forms the control tags. These are the tags that are used
in managing content or managing scripts or libraries that are external. All the form tags,
dropdown lists, input text boxes, etc., are used in interacting with the visitor or the user.
The above distinction of the HTML tags is based on the type of tags and their utility. The
HTML tags can also be simply divided based on basic categories like :
HTML Text formatting <p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <strong>, <em>, <abbr>,
Tags <acronym>, <address>, <bdo>, <blockquote>, <cite>, <q>, <code>,
HTML Image and Object <img>, <area>, <map>, <param> and <object>
Tags
HTML List Tags <ul>, <ol>, <li>, <dl>, <dt> and <dd>
HTML Table Tags table, tr, td, th, tbody, thead, tfoot, col, colgroup and caption
HTML Form Tags form, input, textarea, select, option, optgroup, button, label, fieldset
and legend
HTML media Tags Audio, Video, SVG (Scalable Vector Graphics),and Canvas Tags
gramming tags
• HTML Elements contain a starting tag, content, and an ending tag. If there is no content
in an HTML Element, it is called an Empty HTML Element.
• HTML Elements can be nested. There can be an HTML element with another HTML El-
ement as its content.
3.1.2 Types of HTML element
There are two types of elements. Inline and block level elements.
1. Inline elements
As the name is describing, it does not start on a new line and takes the space as small as pos-
sible. It means it takes the least space.
2. Block elements
Block elements are those elements that occupy their own space and always start on a new
line. They make big structures.
359
HTML Comments are used to insert comments in the HTML code. It is a good practice of
coding so that the coder and the reader can get help to understand the code. It is a simple
piece of code that is wiped off (ignored) by web browsers i.e., not displayed by the browser.
Types of Comment
There are three types of comments in HTML which are:
• Single-line Comment
• Multi-line Comment
The single-line comment is given inside the ( <!- - comment - -> ) tag.
Syntax:
<!-- elements or comments -->
Multi-line Comment
To create a multi-line comment , you can enclose your comments between <!-- and -->
Syntax:
<!--
HTML elements comments -->
Example 4: Multi-line Comment <!--
<p>This part of my website isn't working right now...I'll fix it later.</p> <p>This is a para-
graph.</p>
-->
lang " en" for English, The lang attribute indicates the language of the element’s con-
"es" for Spanish, tent.The value of the lang attribute is an ISO language code.
"fr" for French, and so on Typically, this is a two-letter code (e.g., "en" for English), but it
can also be an extended code (e.g., "en-gb" for British English)
The <body> tag defines the document’s body. The contents of an HTML page reside within the <body> tag. <body>
tag contains several attributes.
A. Background Colour: bgcolor = color
By default all the browsers display the text on white background. However, the background color of the browser can
be changed by using bgcolor tag.
Attribute Values of bgcolor: HTML colors are specified with predefined color names, hex and RGB (Red, Green, Blue)
values.
• Color name: It sets the text color by using the color name. It specify the name of the color for the text in the Docu-
ment
For example “red”.
• hex_number: It sets the text color by using the color hex code. It specify the hex code of the color of the Text in the
Document
For example “#0000ff”.
• rgb_number: It sets the text color by using the rgb code. It specify the rgb value of the Text in the Document
For example: “RGB(0, 153, 0)” .
Student Module
Self-check 3-1:
Instruction: Create a web page (HTML document) to the following specification.
Paragraph 1.
Paragraph 2.
369
1 tags
Beak and Line
The HTML <br/> or <br> tag element creates a line break, giving you a new line without start-
ing a new paragraph. The <hr/> or <hr> tag defines a thematic break in an HTML page, and is
most often displayed as a horizontal rule.
Example 10: To Add Line Breaks and horizontal rule in Paragraphs
Code Description: HTML code to create paragraphs with breaks and horizontal <!DOCTYPE
html>
<html>
<p>This is <br> a paragraph <br> with line breaks.</p>
<p>This is some text.</p>
<hr/>
<p>This is some other text.</p>
<hr>
</html>
Output Description: How the HTML code above looks in a browser
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5 Heading 6
id User Defined
The id attribute of an HTML tag can be used to uniquely
identify any element within an HTML page. Names an el-
ement for use with Cascading Style Sheets.
class User Defined
The class attribute is used to associate an element with a
style sheet, and specifies the class of element. Classifies an
element for use with Cascading Style Sheets.
Style
color: blue; text- The style attribute in HTML allows you to define inline
align: cente; back- styles sheet for an element. When you use the style at-
ground-color: tribute, you can specify various visual properties directly
DodgerBlue; font- within the HTML tag. These properties include things like
size:40px; color, font size, alignment, and more.
Code Description: Comprehensive HTML code that added Attribute of Paragraph, horizon-
tal and heading
<p align = "center">This is center aligned</p>
<h2 align=right> Welcome to Computer Application </h2>
<p style="color:green;font-size:40px; text-align: center "> This is a paragraph.</p>
<h1 style="color: blue">This is a header</h1>
<p title="I'm a tooltip">This is a paragraph.</p>
<p style = "font-family:arial; color:#FF0000;">Some text...</p>
<h3 title = "Hello HTML!">Titled Heading Tag Example</h3>
<hr style="border-color:orange" >
<hr size="12" width=30% noshade, color="red">
Output Description: How the HTML code above looks in a browser
This is center aligned
This is a paragraph.
This is a header
This is a paragraph.
Some text...
Titled Heading Tag Example
The following specific types of text can be displayed using these formatting elements:
377
3.2.4 Font Formatting tag
HTML <font> tag is used to define the font style for the text contained within it. It defines the
font size, color, and face or the text in an HTML document.
Table 3-7: Attributes of font tags
Face Font names The face is an attribute to set different font style.
378
d
GradeAl Web Design and Development Student Module
LUPsU in Font tag Multiple attribute, you can assign more than one
£_
Mv First Heading
Nesting element
Text may be both bold and italicized. This is done by using both the <B>and<I> tags. When
doing so, it is important to remember not to overlap HTML tags. In other words:
<B><I> Hello!!</I></B> is correct, but <B><I> Hello!! ></B></I> is wrong.
Note that it is recommended to always close nested tags in the reverse order that they were
opened. This means that the last tag that was opened should be closed first, followed by the
second-to-last tag, and so on, until the first tag that was opened is closed. This is important
because it helps maintain the structure and hierarchy of the HTML elements, ensuring that
they are properly nested within each other. By following this practice, you can avoid any po-
tential errors or rendering issues that may occur if the tags are not closed in the correct order.
Self-check 3-2:
1. Write code that can provide the output shown below?
<h3>Monospaced Text</h3>
<p>Inline <code>monospaced text</code> is useful for code snippets.</p> <pre>This is a preformatted text block.</pre>
<p>You can <b><i>combine</i></b> <u>multiple</u> <strong><em>formatting</em></strong> <s>options</s> in one
paragraph.</p> </body>
</html>
Experts Group) and PNG (Portable Network Graphics)images formats. HTML-5 introduces
SVG images. One format of image can be converted to another format by using Image editing
applications such as Photoshop, Picasa, GIMP etc.
direction Top, Down, Left, Right Define the direction of scrolling the content
loop Number
Specifies how many times content moves. The de-
fault value is infinite.
3
A picture or any other HTML element can be used as a link in addition to
text!
part of the current document. When you move the mouse over a link, the mouse arrow will turn
into a little hand. Hyperlinks, also known as anchor tags, allow users to navigate from one web
page to another. They are found in nearly all web pages.
Anchor tags
The <a> tag (anchor tag) in HTML is used to create a hyperlink on the webpage. The <a>
HTML element (or anchor element), with its href (Hypertext Reference) attribute, creates a hy-
perlink to web pages, files, email addresses, locations in the same page, or anything else a
URL can address.
HTML offers several types of links, each serving a specific purpose. Let's see some of them in
action in the following sections.
• Anatomy /Text links or clickable text
• Image links or clickable image
• email links
• mailto links
Attribute
Values Description
name
_self
_top
frame name
Text links
Text links are the most common type of links. They are created by wrapping text with an an-
chor (<a>) element. When users click on the linked text, they are directed to the URL specified
in the link's href attribute:
<a href="https://www.example.com">Visit Example.com</a>
Text links are versatile and can be used for various purposes, such as linking to other web
pages, external websites, or even specific sections within a page using anchor tags.
Image links
You can turn images into clickable links by wrapping them in an anchor element. This is useful
for creating an image-based navigation or linking to larger versions of images:
<a href="https://www.example.com"> <img src="image.jpg" alt="Example Image"> </a>
Image links are visually engaging and are often used for elements like logos, banners, or
thumbnail images that, when clicked, lead users to a related web page or resource.
Email links
To create links that open an email client with a pre-filled recipient address, use the mailto
scheme:
<a href="mailto:[email protected]">Send an Email</a>
Email links are convenient for enabling users to initiate email communication with a simple
click. They are commonly used for contact information on websites.
Syntax:
<a target="_blank / _self /_parent/ _top/ framename">
For example:
<a href="https://www.google.com" target="_blank">click here to open google in a new
tab </a>
<br/>
<a href="https://www.w3schools.com/html/" target="_blank">Example of Absolute Link
to w3schools</a>
</body>
</html>
Task 2. Create a HTML file “page2.html” and write following code:
Type this code and Save by named “ page.html” file <!DOCTYPE html>
<html>
<body>
<p>Make Anatomy / text link</p>
<a href="page1.html">Example of Relative Link to page1</a>
<br/>
<hr/>
<a href="http://google.com" target="_blank" >Example of Absolute Link to google</a>
</br/>
<p>click on the below Image</p>
<a href="https://www.youtube.com/" target="_blank">
<img src="youtube.png" alt="youtube" border = "0"/></a>
<br/>
<hr/>
</body>
</html>
Self-check 3-3:
391
HTML Ordered List or Numbered
List
There can be different types of numbered list:
1. Numeric Number (1, 2, 3)
2. Capital Roman Number (I II III)
3. Small Romal Number (i ii iii)
4. Capital Alphabet (A B C)
5. Small Alphabet (a b c)
Basic Syntax of the <ol> tag
The <ol> tag defines ordered lists in HTML. And
the list items are defined by the <li> tag.
The <ol> tag is not an empty element, so it has a
closing tag in </ol>
Syntax:
<ol>
<li>...</li>
<li>...</li>
<li>...</li>
<TYPE html>
<html>
<body>
<OL>
<h3>types of Fruit</h3>
<li>Apple</li>
<li>Banana</li>
<li>Mango</li>
<li>others</li>
</OL>
</body>
Attributes of the <ol> Tag
Therart and Reversed.e are two attributes can be used to customize ordered list,
they are Type, St
Grade 11 Web Design and Development Student Module
Attribute
Values Description
name
Type
The type attribute is used to specify which type of
numbering you want to use for the list. It is
Arabic numerals, upper or lower Changing numbering style.
case roman numbers and upper or
lower case letters.Example:
Type=1 Type=I or i Type= A or a
Start
Arabic numerals Example: The start attribute is used with ol tag to specify
Start=3 from where to start the list items. It is changing
numbering order.
Reversed
Arabic numerals, upper or lower When you use the reversed attribute on an ordered
case roman numbers and list, the list items are rendered in
Ministry of E
duppe® nor lower case letter- reverse order. That is, from the highest num 3er to
s.Example: the lowest.
Grade 11 Web Design and Development Student Module
Grade 11 Web Design and Development Student Module
Output will be: upper roman list Output will be:Lower case ro- Output will be:Upper case letters
man
The start attribute can be brought in to specify which number to start the list from. So, it accepts
an integer as a value. The default is 1. If you specify a number like 22, the next list item takes
the next number 23, on and on...
Example 21: Demonstrate type and start attribute Code Description: HTML code that show
who to use type and start form any number <Ol type=" 1" start="6">
<li>HTML</li>
<li>CSS</li>
<li>JS</li>
</Ol>
Output Description: How the HTML code above looks in a browser
6. HTML
7. CSS
8. JS
The start attribute is used with the <ol> tag to specify from where to start the list items.
<ol type="1" start="5"> : It will show numeric values starting with "5".
<ol type="A" start="5"> : It will show capital alphabets starting with "E".
<ol type="a" start="5"> : It will show lower case alphabets starting with "e".
<ol type="I" start="5"> : It will show Roman upper case value starting with "V".
ype
T
Description
Type "disc"
This is the default style. In this style, the list items are marked with bullets.
Type "circle" In this style, the list items are marked with circles.
Type "square" In this style, the list items are marked with squares.
Type "none" In this style, the list items are not marked .
Example 22: An HTML code illustrating the four different attributes of the ele-
ment.
Code Description: HTML code that show who to use all possible types of un-
ordered list <UL>
<li>HTML</li> <li>Java</li> <li>JavaScript</li> <li>SQL</li>
</UL>
Definition list is different from other two types of list. No bullet or number is provided for the
list items. In this list type, the list element has two parts.
1. A definition term
2. The definition description HTML Description Lists Tags
• <dl> tag: This tag defines the description list.
• <dt> tag: This tag defines the data terms inside the list.
• <dd> tag: This tag defines the description of data.
Output Description: How the HTML code above looks in a browser HTML:
Hyper Text Markup Language Webpage:
A web page is a document that is suitable for the World Wide Web and web
browsers.
n <tr>
Table 3-14: Common HTML Table Tags
<th> Shows a table header cell that typically holds titles or headings.
<thead> Defines the header section of a table, often containing column labels.
<tbody>
Represents the main content area of a table, separating it from the header or footer.
<tfoot>
Specifies the footer section of a table, typically holding summaries or totals.
<col>
Defines attributes for table columns that can be applied to multiple columns at once.
<colgroup>
Groups together a set of columns in a table to which you can apply formatting or
properties collectively.
Grade 11 Web Design and Development Student Module
London Calling
Year
Band formed
Buzzcocks 1976 9
The Clash 1976 6
The 1974 17
Stranglers
Total albums
Attributes of Table Tag 77
The following table shows the attributes that are specific to the <table> tag.
center Specifies the alignment of the table with respect to the document
right
Ministry of Education 396
This attribute specifies the background color for the table.It Sets
bgcolor color the
background color of the table.
Grade 11 Web Design and Development Student Module
Objective: This operation sheet provides step-by-step instructions on how to use These
attributes help control the appearance, layout, and behavior of the table and its contents.
Instructions: type each HTML code and see the effects of them in the page.
Taskl: Specifies the width of the border around the table cells
<table border=" 1 "> </table>
Task2:Specifies the space between the cell content and its borders html
<table cellpadding="10"> </table>
Task3: Specifies the space between the table cells.
<table cellspacing="10"> </table>
Task4: Specifies the width of the table.
<table width="100%"> </table>
Task5: Specifies the height of the table.
<table height="200"></table>
Task6: Specifies the alignment of the table on the page. Values can be left, right, or center.
<table align="center"></table>
Task7: Specifies the background color of the table.
<table bgcolor="lightblue"></table>
Example 24: An HTML code to demonstrate table Border ,bgcolor and Align Attribute
Code Description: HTML code that show who to use all possible types of unordered list <!
DOCTYPE html>
<html>
<head>
<title>HTML Table Tag Usage</title>
</head>
<body>
<table align="center" border="1" bgcolor="yellow">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
HTML also provides developers with the option to merge and split table cells. Merging cells
allows us to combine the content of two or more cells into a single cell, while splitting cells al-
lows us to divide a single cell into multiple cells. Here's an example of how to use HTML ele-
ments to split and merge table cells:
• Colspan is an attribute which assigns multiple columns to a cell of a table. The number of
columns depends on the value entered by you in colspan-'" attribute. It Allows a single table
cell to span the width of more than one cell or column.
• Rowspan in table works similar to the clospan for columns, but here, we assign multiple
rows to a cell using an attribute rowspan-"". It Allows a single table cell to span the height of
more than one cell or row.
f
Dear Students! You can merge two or more table rows into a single row by using the
rowspan attribute, and you can merge table columns into a single column by using
the colspan attribute.
_ )
Example 25: Merge column and row cells
Code Description: HTML code that shows who to make magre cells based on column
<!DOCTYPE html>
<table border-' 1 ">
<caption> New Employees Records </caption>
<tr>
<th>Name</th>
<th colspan="2">Jobs</th>
<th>Working Experience</th>
</tr>
<tr>
<td>John</td>
<td>Software Engineer</td>
<td>Data Analyst</td>
<td rowspan="2">5 Years</td>
</tr>
<tr>
<td>Abebe</td>
<td colspan="2">Senior Web developer</td>
</tr>
<tr>
<td>Hirut</td>
<td>Junior Tech Writer</td>
<td>Blogger</td>
<td>6 Months</td>
</tr>
</table>
Code Description: HTML code that demonstrates how to make a table with di-
mensions <!DOCTYPE html>
<html>
<head>
<titl e></title>
</head>
<body>
<table border = "1" width = "500" height = "250" bgcolor = "lightblue">
<tr>
<th>Student Name</th>
<th>Grade</th>
</tr>
<tr>
<td>Abebe</td>
<td>10</td>
</tr>
<tr>
<td>Selam</td>
<td>11</td>
</tr>
<tr>
<td>Hirut</td>
<td>11</td>
</tr>
</table>
</body>
</html>
Output Description: How the HTML code above looks in a
browser New Employees Records
Name Jobs Working Experience
John Software Engineer Data Analyst 5 Years
Abebe Senior Web developer
Hirut Junior Tech Writer Blogger 6 Months
Self-check 3-4:
1. Write code that can provide the output table shown below?
Total 3,427,000
HTML frames are used to divide your browser window into multiple sections where each sec-
tion can load a separate HTML document. A collection of frames in the browser window is
known as a frameset. The window is divided into frames in a similar way the tables are orga-
nized
3.6.1. <frameset> Element
The <frameset> element replaces the <body> element in a document, and it defines how to di-
vide the window into frames. Each <frameset> can contain multiple <frame> elements or other
<frameset> elements to create nested frames.
Using the <frameset> tag with percentages and the asterisk (*) allows you to create flexible
layouts where certain sections of the page take up fixed or proportional amounts of space, and
the remaining space is allocated to other sections.
The <frameset> element was used in HTML 4 to define a web page that should use frames,
where each frame could display a separate HTML document. However, the use of frames and
the <frameset> element is deprecated in HTML5, meaning it is no longer recommended for
use, and support for it may be removed from browsers. Instead, CSS and modern layout tech-
niques such as Flexbox and Grid Layout are recommended for creating complex page layouts.
Undoubtedly, there are several drawbacks associated with using frames, which is why they are
generally not recommended for modern web development. Here is a detailed explanation of
these drawbacks:
o Problem: Many smaller devices, such as smartphones and tablets, struggle to display frames
properly because their screens are not large enough to be divided into multiple sections.
o Impact: Users on these devices may experience poor usability and an impaired browsing ex-
perience, leading to frustration and potentially causing them to leave the site.
2. Inconsistent Display Across Different Computers:
o Problem: Web pages using frames can be displayed differently on different computers due to
varying screen resolutions and browser configurations.
o Impact: This inconsistency can make it difficult to ensure a uniform user experience across
all devices and screen sizes. Elements may not align correctly, and content can become difficult
to read or navigate.
3. Browser Back Button Issues:
o Problem: The browser’s back button may not work as expected when using frames. Typi-
cally, the back button reloads the entire frameset instead of just the content of a single frame.
o Impact: This can confuse users and make navigation more cumbersome, as they might not be
able to easily return to previously viewed content within a frame.
4. Lack of Support in Some Browsers:
o Problem: Although most modern browsers support frames, there are still a few browsers that
do not support frame technology. Additionally, as HTML5 does not include frameset elements,
future browser versions may further limit support.
o Impact: Users of these browsers will be unable to view the content as intended, which can
lead to a loss of accessibility and a diminished user experience.
o Problem: Frames can create barriers for users with disabilities. Screen readers and other as-
sistive technologies may struggle to navigate framed content effectively.
o Impact: This can lead to compliance issues with accessibility standards (such as WCAG) and
make the website less usable for people with disabilities.