Академический Документы
Профессиональный Документы
Культура Документы
World Wide Web is a system of Internet servers that support specially formatted documents, and this is also
a way of accessing information over the medium of the Internet.. The documents are formatted in a markup
language called HTML (Hyper Text Markup Language) that supports links to other documents, as well
as graphics, audio, and video files. But not all Internet servers are part of the World Wide Web. There are
several applications called Web browsers that make it easy to access the World Wide Web.
HTML is a markup language for describing web documents. It also standardized system for tagging text files
to achieve font, color, graphic, and hyperlink effects on World Wide Web pages.
Web browser (commonly referred to as a browser) is a software application for retrieving, presenting and
traversing information resources on the World Wide Web. An information resource is identified by a
Uniform Resource Identifier (URI/URL) and may be a web page, image, video or other piece of content.
URI/URL refers to the generic term for all types of names and addresses that refer to objects on the World
Wide Web.
All HTML documents must start with a type declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
HTML headings are defined with the <h1> to <h6> tags.
The <title> ends with </title> tag is required in all HTML documents and it defines the title of the
document.
The <head> ends with </head> element is a container for all the head elements. It can include a title
for the document, scripts, styles, meta information, and more.
Sample1:
<!DOCTYPE html>
<html>
<head>
<title>HO ME</title>
</head>
<body>
<h1>merry</h1>
<h1>Hello World</h1>
<p>My first paragraph.</p>
</body>
</html>
Nested HTML Elements
HTML elements can be nested (elements can contain elements).
All HTML documents consist of nested HTML elements.
This example contains 4 HTML elements:
Sample 2
<!DOCTYPE html>
<html>
<body>
<h1>Hello World</h1>
<p>My first paragraph.</p>
</body>
</html>
<html>
<body>
</body>
</html>
FORMATTING TEXT:
There are several ways in formatting your text content or font.
You can use some tag such us bold <b></b> for bolding text, Italic <i></i> for italic text, and
underline<u></u> for underlining text.
Sample 4:
<!DOCTYPE html>
<html>
<body>
<p>
<b>This is BOLD text<b/>
<i>This is Italic text<i/>
<u>THIS is UNDERLINED text</u>
</p>
</body>
</html>
Font <font></font> tag can also be use in formatting text.
Sample 5:
<!DOCTYPE html>
<html>
<body>
<p><Font face="Calibri" color="brown" size=15>
This paragraph contains texts which are customized…..
</Font>
</p>
</body>
</html>
Sample 6:
<!DOCTYPE html>
<html>
<head>
<title>MyHome</title>
</head>
<!DOCTYPE html>
<html>
<head>
<title>List</title>
</head>
<body>
<h1>My list</h1>
<li style="list-style-type:square">Carrots</li>
<li style="list-style-type:disc">Radish</li>
<li style="list-style-type:circle">Squash</li>
<li style="list-style-type:square" align="center">Lemon</li>
<li style="list-style-type:square" align="right">Apple</li>
<li style="list-style-type:square" align="justify">Grapes</li>
</body>
</html>
NOTE: Style and Align attribute can be applied to lists tags including <ul> and <ol>.
There are two types of sub list; these are Unordered list and Order list.
Sample 10:
<!DOCTYPE html>
<HTML>
<Head> <Title>Unordered and Order List</Title></Head>
<Body>
<h2>Unordered list</h2>
<ul style="list-style-type:square">
<li>Appetizer</li>
<li>Main Dish</li>
<li>Cocktails</li>
</ul>
<h2>Order list</h2>
<ol >
<li>Appetizer</li>
<li>Main Dish</li>
<li>Cocktails</li>
</ol>
</Body>
</HTML>
Note: Images are not technically inserted into an HTML page, images are linked to HTML pages. The
<img> tag creates a holding space for the referenced image.
Tip: To link an image to another document, simply nest the <img> tag inside <a> tags.
Sample 7:
<!DOCTYPE html>
<HTML>
<head>
<title>IMAGE page</title>
</head>
<body>
<img src="C:\Users\merry\Documents\web\use pics\3rdbday\2nd.jpg" alt="Sample
Image" height="42" width="42">
</body>
</HTML>
Inside of the quotation of attribute source (src) is the address or URL of the image file.
And inside of the quotation of the attribute alt refers to the alternate text for an image.
If you don’t set a width and height it will display the default size of the picture.
You can also use the style attribute in your image tag.
Example: <img src="html5.gif" alt="HTML5 Icon" style="width:128px;height:128px">
Linking Image:
Sample 11:
<!DOCTYPE html>
<HTML>
<head>
<title>IMAGE page</title>
</head>
<body>
<p>Click the image link to view the larger image.</p>
</a>
</body>
</HTML>
Image Mapping:
Sample 12
<!DOCTYPE html>
<html>
<body>
<p>Click on the sun or on one of the planets to watch it closer and the
description:</p>
<map name="planetmap">
<area shape="rect" coords="1,2,133,597" alt="Sun" href="C:\Users\merry\Documents\informatics
files\HTML\sun.htm">
<area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
</map>
</body>
</html>
The< map>element or tag has attribute name=”” which refers to the name of your map.
The <area> element or tag has coords attribute, meaning you are setting a coordinates for the
map link.
Other attribute of Image tag:
crossorigin anonymous Allow images from third-party sites that allow cross-origin access to
use- be used with canvas
credentials
Sample 13:
<!DOCTYPE html>
<html>
<body>
<table style="width:100%">
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
</body>
</html>
</body>
</html>
Sample 13:
<!DOCTYPE html>
<html>
<body>
</body>
</html>
The href attribute specifies the destination address.
Then inside the hyperlink tag<a> is the text that you want to be linked.
<!DOCTYPE html>
<html>
<body>
<p>If you set the target attribute to "_blank", the link will open in a new browser window or tab.</p>
</body>
</html
_self Opens the linked document in the same frame as it was clicked (this is default)
_top Opens the linked document in the full body of the window
Basic HTML
Tag Description
Formatting
Tag Description
<bdi> Isolates a part of text that might be formatted in a different direction from
other text outside it
<rp> Defines what to show in browsers that do not support ruby annotations
<u> Defines text that should be stylistically different from normal text
Images
Tag Description
<canvas> Used to draw graphics, on the fly, via scripting (usually JavaScript)
Audio / Video
Tag Description
<source> Defines multiple media resources for media elements (<video> and <audio>)
<track> Defines text tracks for media elements (<video> and <audio>)
Links
Tag Description
<link> Defines the relationship between a document and an external resource (most
used to link to style sheets)
<menuitem> Defines a command/menu item that the user can invoke from a popup
menu
Tables
Tag Description
<col> Specifies column properties for each column within a <colgroup> element
<details> Defines additional details that the user can view or hide
Meta Info
Tag Description
<base> Specifies the base URL/target for all relative URLs in a document