1-Introduction to HTML.
1-Introduction to HTML.
a) <html>
The <html> tag is the root element of an HTML document. It
signifies the beginning and end of an HTML page.
b) <head>
The <head> section contains metadata, which is not displayed
on the webpage. It includes information like the document
title, character set, and linked resources (e.g., CSS files).
c) <title>
The <title> tag specifies the title of the webpage, which
appears in the browser tab. It helps with SEO and user
navigation.
d) <body>
The <body> tag contains all the visible content of the
webpage, including text, images, and links.
e) Headings (<h1> to <h6>)
HTML provides six levels of headings, from <h1> (the largest)
to <h6> (the smallest). These tags are used to structure
content hierarchically, improving readability and SEO.
f) <p>
The <p> tag defines a paragraph. It is a block-level element
that automatically adds space before and after the text.
b) Lists
HTML supports both ordered and unordered lists, which help
organize content clearly.
5. Hyperlinks
Hyperlinks are a fundamental feature of HTML, allowing users
to navigate between different webpages or resources.
a) Internal Links
Internal links connect to other pages within the same
website. They are created using the <a> (anchor) tag, with
the href attribute specifying the destination URL.
b) External Links
External links point to pages on different websites. Similar to
internal links, they are created with the <a> tag, but they
navigate users away from the current site.
c) Mailto Links
Mailto links allow users to send emails directly from the
webpage. These links use the mailto: protocol within the
href attribute (e.g., <a
href="mailto:[email protected]">Email Us</a>).
6. Conclusion
HTML serves as the foundation for web development,
enabling developers to create structured and visually
appealing webpages. Understanding its basic concepts,
tags, and functionalities is essential for anyone pursuing a
career in computing, web design, or digital content
creation.
By mastering HTML, students can effectively communicate
information on the web, enhance user experience, and
build the groundwork for more advanced web
technologies, such as CSS and JavaScript. As the internet
continues to evolve, so too will HTML, making it an
essential skill for future web developers and designers.