Web Designnn
Web Designnn
SEMESTER : 5
SUBJECT CODE: DCA-3101
NAME:M SANTHOSH
Internet
The Internet is the foundation for global connectivity, supporting multiple services like
email, cloud computing, and messaging.
➢ network of roads, highways, and bridges that connect cities and towns. It's the
physical and digital infrastructure that allows computers and devices to communicate
with each other.
World Wide Web is just one of these services, allowing users to navigate and interact with
web-based content. While the Internet can exist without the WWW, the WWW cannot
function without the Internet.
➢ system of houses, businesses, and other buildings that exist along those roads. It's a
way to organize and access information and resources on the Internet using web
pages, links, and browsers. Is a service operating on the Internet that allows users to
access web pages and online content through web browsers.
Difference Between the Internet and the World Wide Web (WWW)
1. Definition
• World Wide Web (WWW): A system of interlinked web pages and multimedia
content that can be accessed via the Internet.
2. Function
• Internet: Provides various services like email, file sharing, online gaming, and cloud
computing.
• WWW: Uses the HTTP/HTTPS protocol to allow users to browse and interact with
websites and multimedia content.
3. Components
• WWW: Consists of web servers, web browsers, HTML documents, hyperlinks, and
multimedia files.
4. Access Mechanism
5. Example Services
• Internet: Email (Gmail, Outlook), Cloud Storage (Google Drive, Dropbox), Video
Conferencing (Zoom, Skype).
• Internet: Developed in the 1960s as a military project (ARPANET) and later evolved
into a global network.
7. Dependency
• Internet: Can exist without the WWW, as it supports other services like email and
file transfer.
• Internet: Uses TCP/IP, FTP, SMTP, and other protocols for data transmission and
communication.
• WWW: Primarily uses HTTP and HTTPS to request and display web pages
securely.
• Internet: The speed of the Internet depends on the bandwidth, infrastructure, and
network traffic. A faster internet connection allows for quicker data transmission
across all services.
• WWW: The speed of the WWW depends on website optimization, server response
time, and browser efficiency. A slow website does not necessarily mean a slow
internet connection.
10. Usage Scope
• Internet: Used for a wide range of applications including networking, IoT (Internet of
Things), remote work, and global communications.
• WWW: Primarily used for browsing websites, accessing online services, and
retrieving digital content.
Q.no:2 Set-I
Three Key Services Provided by the Internet and a Common Security Threat
The Internet has revolutionized the way people communicate, work, and entertain
themselves. It offers numerous services that facilitate global connectivity, remote
collaboration, and instant access to information. Below are three essential services provided
by the Internet:
1. Email Communication
• Description: Email is one of the earliest and most widely used Internet services that
allows users to send and receive messages instantly across the world.
• Usage: Businesses rely on emails for internal communication, customer service, and
marketing. Individuals use email for personal correspondence, subscriptions, and
official documentation.
• Security Concerns: Emails are often targeted by phishing scams, where attackers
send fraudulent messages to trick users into sharing sensitive information.
2. Cloud Computing
• Description: Cloud computing enables users to store, process, and access data
remotely instead of relying on local hardware. This service allows companies and
individuals to use software applications without installing them on their devices.
• Usage: Businesses use cloud services for data storage, software as a service (SaaS),
and scalable computing power. Individuals use cloud services for backup storage, file
sharing, and collaborative work.
• Security Concerns: Cloud misconfigurations and weak access controls can lead to
unauthorized access and data breaches.
• Usage: Online streaming eliminates the need for physical media and enables global
content distribution. Gamers use platforms like Twitch to stream live gameplay.
• AI-Enhanced Security Systems: Companies are now using AI to detect and counter
AI-driven cyber threats.
• The link navigates within the same website without specifying the full URL.
• The #contact identifier refers to an element with id="contact" on the same page.
• Clicking the link opens the user’s default email client with a pre-filled recipient
address.
3. Enhanced Website Structure: Helps organize web pages and improve search engine
rankings (SEO).
4. Interactive Features: Supports email, phone calls, and app integration directly from
the browser.
5. Security Considerations: Properly formatted URIs prevent broken links and
potential security vulnerabilities, such as phishing attacks.
URIs are fundamental to the hyperlinked structure of the Internet, making websites more
accessible, interactive, and functional.
Q.no:4 Set-I
Inserting an Image in an HTML Document and the Significance of the <address> Tag
The <img> tag in HTML allows web developers to display images on a webpage.
Meanwhile, the <address> tag provides a structured way to display contact details related to
the webpage author or organization. Both tags play an essential role in creating well-
structured, visually appealing, and accessible web pages.
The <img> tag is a self-closing HTML element used to embed images. Unlike other
elements, it does not require a closing tag. The most important attribute of the <img> tag is
src, which specifies the source of the image file.
Basic Syntax:
• src: Defines the file path (relative or absolute URL) of the image.
• alt: Provides alternative text, which is displayed when the image fails to load and
improves accessibility for visually impaired users.
Examples:
1. Using a Image
• The image is stored in the images folder within the website's directory.
• The width and height attributes adjust the image’s dimensions in pixels.
• <a href="https://systech.com">
• <img src="systechc.jpg" alt="Clickable image">
• </a>
Clicking the image redirects the user to another webpage.
The <address> tag in HTML is used to define contact details for an individual, organization,
or website owner. It helps in structuring and displaying important contact information on a
webpage.
Basic Syntax:
• <address>
• Contact us at: <br>
• <a href="mailto:[email protected]">[email protected]</a><br>
• Phone: +1 234 567 890 <br>
• 123 Web Street, New York, NY, USA
• </address>
1. Semantic Meaning: The <address> tag provides semantic value, making it easier for
search engines and browsers to interpret contact details.
2. Default Styling: Browsers often render the <address> text in italic to indicate that it
contains contact information.
3. SEO Benefits: Search engines can use <address> to identify location and author
details, improving local search rankings.
Semantic Meaning No inherent meaning; used for visuals Provides structured contact details
Both the <img> and <address> tags play a significant role in improving user experience,
accessibility, and SEO. Proper use of these elements helps create well-structured,
professional, and user-friendly web pages.
Q.no:5 Set-I
Essential Elements of a Basic HTML Web Page and the Importance of the DOCTYPE
Declaration
When creating a basic HTML web page, certain fundamental elements must be included to
ensure proper structure, functionality, and accessibility. Additionally, the DOCTYPE
declaration plays a crucial role in defining how the browser interprets and displays the
content.
The DOCTYPE declaration is the first line of an HTML document, defining the HTML
version being utilized.
<!DOCTYPE html>
This declaration ensures that the page is interpreted according to HTML5 standards, enabling
consistent behavior across different web browsers.
2. <html> Tag (Root Element)
• <html lang="en">
• The lang attribute specifies the language, aiding search engines and accessibility
tools.
The <head> section contains essential metadata and links to external resources.
• <head>
• <meta charset="UTF-8">
• <meta name="viewport" content="width=device-width, initial-scale=1.0">
• <title>My First Web Page</title>
• </head>
• <title> sets the page’s title, which appears in browser tabs and search engine results.
• <header>
• <h1>My Website</h1>
• </header>
• <main>
• <p>Main content goes here.</p>
• </main>
• <footer>
• <p>Contact: info@ Systech.com</p>
• </footer>
The DOCTYPE declaration (<!DOCTYPE html>) is essential for web pages to function
properly. It serves the following purposes:
Using <!DOCTYPE html> ensures that browsers follow W3C (World Wide Web
Consortium) standards, making the page behave consistently across different platforms.
• Screen readers and assistive technologies work more effectively with properly
formatted HTML.
The Main Advantage of Using CSS in Web Development and Its Role in Separating
Content from Design
The biggest advantage of CSS is that it enhances the presentation and styling of web
pages while ensuring flexibility and reusability. It allows developers to:
o By defining styles in a single CSS file, multiple web pages can share the same
design, ensuring a uniform look across an entire website.
o Example: A company’s branding (colors, fonts, and layouts) can be applied
consistently across all pages.
o By using external CSS files, the browser can cache styles, reducing the need
to reload the same styling repeatedly, leading to faster page loading times.
One of the most significant benefits of CSS is that it separates content (HTML) from design
(CSS). This separation is essential for several reasons:
1. Cleaner and More Readable Code
• CSS handles styling and layout, making both the HTML and CSS files easier to
manage.
• Example:
• <h1>Welcome Website</h1>
• color: blue;
• font-size: 24px;
• }
• p{
• line-height: 1.5;
• }
• This method avoids inline styling, making updates faster and more efficient.
• When content is separate from design, screen readers can read HTML without
interference from visual styles.
• Search engines can index content effectively, improving website ranking and
accessibility.
• With CSS, changing the entire website’s look is simple by modifying one stylesheet,
rather than updating every HTML file individually.
• Example: Switching themes from light mode to dark mode can be done by applying
a different CSS file without altering HTML content.
CSS plays a crucial role in modern web development by enhancing design, improving
efficiency, and ensuring responsiveness. Its ability to separate content from design leads to
cleaner code, better maintainability, and greater accessibility. By leveraging CSS,
developers can create visually stunning and user-friendly websites that are easy to update and
scale.