Introduction To Web Technology HTML Day1
Introduction To Web Technology HTML Day1
Technologies
Ahmed Elashry
[email protected]
HTML CSS JAVA SCRIPT
*Introduction
* Computers are connected together via a
network or transmission line
* The network then became known as the
Internet
* It has since adopted a suite of protocols called
the Internet Protocol Suite or as more
commonly known as TCP/IP
* Now, the Internet has grown to encompass a
huge number of autonomous networks
*Transmission
* Set of rules that allow electronic items to
connect to and exchange information with one
another
*What is a Protocol
* The Internet Protocol Suite includes a number of standard
protocols. The two most common are:
– Transmission Control Protocol (TCP)
– Internet Protocol (IP)
* A computer communication protocol is a description of the rules
computers must follow to communicate with each other.
* TCP/IP defines how electronic devices (like computers) should be
connected to the Internet, and how data should be transmitted
between them.
* The TCP/IP protocol is embedded in TCP/IP software that is part
of the operating system (OS)
*The Web
* A Uniform Resource Locator (URL) is used to address a
document on the Web.
* The name that corresponds to an IP address in the DNS is
known as a URL
* A full Web address is like:
* http://iti.gov.eg/site/home.html
* A URL usually follows these syntax rules:
* scheme://host.domain.country_code:port/path/filename
*URL Codes
* HTTP is used for sending requests from a web
client (browser) to a web server, returning web
content (webpages) from the server back to the
client.
* The Web browser specifies the details of the
required Web page in a HTTP Request message
* The Web server receives this request and after
processing it completes the operation by
returning either the document or an error in the
HTTP Response message
*Retrieving a URL
*Hypertext Transfer Protocol
* Hypertext Transfer Protocol
* HTTP takes care of the communication between a web
server and a web browser.
* HTTP is used for sending requests from a web client (a
browser) to a web server, returning web content (web
pages) from the server back to the client.
* Before the Web, the Internet protocol was FTP (File
Transfer Protocol)
* FTP was too slow, and HTTP was invented
*HTTP
* HTTP adopted the concept of hypertext links but its
protocol includes other methods
* There are four messages within this protocol
* – Connection: Establishes a connection between the client
and the server
* – Request: Asks for a resource
* – Response: Delivers the resource
* – Close: Terminates the connection
*HTTP
*SSL (Secure Sockets Layer)
* A port number is used to distinguish between the
individual networking applications that are
running simultaneously above the TCP/IP protocol
stack
* Port numbers for standard TCP/IP services may
be referred to as well-known port numbers
* – 80 HTTP (Hypertext Transfer Protocol) - WWW
* – 194 IRC (Internet Relay Chat) - Conferencing
* – 21 FTP (File Transfer Protocol)
* – 25 SMTP (Simple Mail Transfer Protocol) - E-mail
*Port Numbers
* No person or organization owns the entire
Internet
* •As the Internet is a network of networks, each
network is owned by a company
* • This is similar to the motor-way and road
system. Each town or state owns and maintains
roads in its jurisdiction
*What is HTML?
* HTML is a subset of Standard Generalized
Markup Language (SGML) and is developed by
the World Wide Web Consortium (W3C) and
Web Hypertext Application Technology Working
Group (WHATWG).
*About HTML
* One group, the W3C (World Wide Web
Consortium), maintains the HTML5 specification,
which is a "snapshot" of the specification at a
particular point in time.
*Structure
* The !DOCTYPE...
declaration tells the browser which version of
HTML the document is using.
* The html element is the document's root element - it can be
thought of as a container that all other tags sit inside (except for
the !DOCTYPE declaration).
* The head tag contains information that is not normally viewable
within your browser (such as meta tags, JavaScript and CSS),
although the title tag is an exception to this. The content of the
title tag is displayed in the browser's title bar.
* The body tag is the main area for your content. This is where most
of your code (and viewable elements) will go.
* The h1 tag defines a level 1 heading.
* The p tag defines a paragraph. This contains the body text.
* Good: <head>
* OK: <HEAD>
*UPPERCASE or lowercase?
* Some of the above tags are optional in certain
situations. In particular, the html, head, and
body tags can all be omitted.
*Optional Tags
*DOCTYPEs
* attributes are all wrapped in double quotes.
You might however see single quotes in some
people's HTML. This is purely a matter of style,
and you can feel free to choose which one you
prefer.
*Core Attributes
* <tagname style="property:value;">
* The CSS color property defines the text color
* The CSS font-size property defines the text size
* The CSS text-align property defines the
horizontal text alignment
* The CSS background-color property defines the
background color
*HTML Styles
* The dir attribute allows you to indicate to the
browser about the direction in which the text
should flow.
*META TAGS
* You can use <meta> tag to specify important
keywords related to the document and later
these keywords are used by the search engines
while indexing your webpage for searching
purpose.
*<meta name="keywords" content="HTML,
Meta Tags, Metadata" />
*Specifying Keywords
* You can use <meta> tag to give a short
description about the document. This again can
be used by various search engines while
indexing your webpage for searching purpose.
*<meta name="description"
content="Learning about Meta Tags." />
*Document Description
* You can use <meta> tag to give information
about when last time the document was
updated. This information can be used by
various web browsers while refreshing your
webpage.
*<meta name="revised" content=“iti,
3/7/2014" />
*Document Refreshing
* You can use <meta> tag to redirect your page
to any other webpage. You can also specify a
duration if you want to redirect the page after
a certain number of seconds.
*<meta http-equiv="refresh" content="5;
url=http://iti.gov.eg" />
*Page Redirection
* You can set an author name in a web page
using meta tag.
*<meta ame="author" content=“Ahmed
elashry" />
<html lang="en-US">
<html lang=“ar-EG">
*HTML – COMMENTS
* Headings and paragraphs
* Bold, italic
* Line Breaks , Horizontal Rules
*Text Formatting
* <h1>
* <h2>
* <h3>
* <h4>
* <h5>
* <h6>
*Headings
* The <p> tag offers a way to structure your text
into different paragraphs.
*Paragraph Tag
* No matter how much whitespace you use
(which can include space characters, but also
line breaks), the HTML parser reduces each one
down to a single space when rendering the
code
*Whitespace in HTML
* Literal character Character reference
equivalent
*< <
*> >
*" "
*' '
*& &
*special characters
* Anything that appears within <b>...</b>
element, is displayed in bold
*Bold Text
* Anything that appears within <i>...</i>
element is displayed in italicized
*Italic Text
* Anything that appears within <u>...</u>
element, is displayed with underline
*Underlined Text
* Whenever you use the <br /> element,
anything following it starts from the next line.
This tag is an example of an empty element
*Centering Content
* 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.
*Horizontal Lines
* The <div> and <span> elements allow you to
group together several elements to create
sections or subsections of a page.
*Grouping Content