BCA SEE411 Lecture Notes V1
BCA SEE411 Lecture Notes V1
Lecture notes –
These are the main protocols that govern the World Wide Web but
there are many other protocols that work together to make the web
work such as FTP, SMTP, and more.
If the DNS resolver does not have the IP address in its cache, it
sends a request to a root nameserver. The root nameserver
responds with the IP address of a top-level domain (TLD)
nameserver, based on the TLD of the domain name (such
as .com, .org, .edu, etc).
The DNS resolver caches the IP address for a certain period of time
and returns it to the browser, which then uses it to establish a
connection to the web server associated with the domain name.
3) syntax of URLs
[scheme]://[host]:[port]/[path]?[query]#[fragment]
Example –
http://www.example.com:8080/path/to/resource?
key1=value1&key2=value2#section2
scheme: http
host: www.example.com
port: 8080
path: /path/to/resource
query: key1=value1&key2=value2
fragment: section2
In this example, the URL is using the http protocol to access the
server at www.example.com on port 8080. The resource being
requested is located at /path/to/resource on the server. The query
component is used to pass additional parameters to the resource, in
this case key1 and key2 with values value1 and value2 respectively.
The fragment section2 is used to specify a specific location within
the resource, in this case a section with the name 'section2' on the
webpage.
It's worth noting that many websites use https instead of http to
secure the connection between the client and the server and the
port number for https is 443. Also, the query and fragment parts are
optional and may not be present in every URL, and the port number
may also be omitted if it is using the default port for the protocol.
When a user types a URL into the browser's address bar or clicks on
a link, the browser sends a request to the server where the web
page is located. The server then sends the web page back to the
browser, which renders it and displays it on the user's screen.
Browsers use various technologies to display web pages, such as
HTML, JavaScript and CSS. They also use web page rendering
engines such as Blink, Gecko and Webkit, which are responsible for
interpreting and rendering the code of the web page.
Web browsers also have built-in developer tools, which allows web
developers to inspect and debug web pages, and also to optimize
web pages for better performance and accessibility.
Example –
An example of a web page would be a search engine like Google.
When you type "google.com" in the browser's address bar and hit
enter, the browser sends a request to the server where the Google
website is located. The server then sends the HTML, JavaScript, and
CSS code for the Google homepage to the browser. The browser
then renders the code and displays the Google homepage on the
user's screen.
HTML Example –
HTML (Hypertext Markup Language) is the standard markup
language used for creating web pages. It provides a way to
structure and format text, images, and other content. Here is an
example of a simple HTML document:
<!DOCTYPE html>
<html>
<head>
<title>My Simple HTML Page</title>
</head>
<body>
<h1>Welcome to my website!</h1>
<p>This is a simple example of an HTML document.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<img src="image.jpg" alt="Example Image">
<a href="https://www.example.com">Visit example.com</a>
</body>
</html>
HTML 5-
The latest version of HTML (Hypertext Markup Language) is HTML5.
HTML5 was first published as a W3C Recommendation in October
2014.
HTML5 is the fifth and current major version of HTML, and it has
been designed to improve the language with support for the latest
multimedia, while keeping it easily readable by humans and
consistently understood by computers and devices. It aims to
reduce the need for proprietary plug-in-based rich internet
application (RIA) technologies such as Adobe Flash and Microsoft
Silverlight.
HTML5 introduced several new tags and attributes that are not
present in previous versions of HTML. Some of the main differences
between HTML5 and previous versions of HTML include:
There are many tutorials available to help you learn HTML5. Here
are a few resources that you can use to get started:
W3Schools: W3Schools is a popular web development site that
provides tutorials, quizzes, and references on various web
development topics, including HTML5. The site provides a
comprehensive guide to HTML5, including new tags, attributes, and
features.
These tutorials will give you a good foundation in HTML5 and guide
you through the process of creating web pages using the latest
version of HTML. They will also help you to understand the new tags,
attributes, and features that are available in HTML5 and how to use
them effectively.
Control over the final outcome: While visual editors can be useful for
quickly creating simple web pages, they can also limit your control
over the final outcome. By learning HTML, you can have full control
over the layout, design, and functionality of your web pages.
Search engine optimization: Search engines use the HTML code of a
web page to understand its content and to determine its relevance
to certain keywords. By learning HTML, you can optimize the code of
your web pages for search engines, which can improve their
visibility and ranking in search results.
WYSIWYG (What You See Is What You Get) HTML editors are tools
that allow users to create and edit web pages using a visual
interface, rather than writing code. Some of the leading WYSIWYG
HTML editors include:
Wix: Wix is a popular website builder that allows users to create and
edit web pages using a drag-and-drop interface. It includes a wide
range of templates, design elements, and e-commerce features.
These are a few examples of free WYSIWYG HTML editors that can
be useful for creating and editing web pages, without having to
write code. They may not have all the features of paid software but
they can be suitable for basic web development or personal use.