SlideShare a Scribd company logo
Xlrays
Online Web Tutorials
Developed By: Yogesh Gupta
www.xlrays.com/xl
Xlrays
Index.html (Home Page)
Index.html (Home Page)
<html>
<head>
<link rel="icon" href="Images/XLrays-logo.png">
<title>XLrays Online Web Tutorials</title>
<style>
#header {
height:120px;
}
#nav {
background-color:#eeeeee;
border: 1px solid #dddddd;
width:200px;
height:100%;
float:left;
padding:5px;
}
#section {
float:left;
padding:10px;
padding:50px;
}
#section.right {
float:left;
padding:5px;
padding:50px;
}
#footer {
background-color:black;
color:white;
clear:both;
text-align:center;
padding:5px;
}
body {
font-family:"Courier New", Courier, monospace;
}
.style1 {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: xx-large}
.style9 {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 100px;
text-shadow: 3px 3px 5px #4CAF50;
}
.style9:hover {
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px #4CAF50, 0 0 5px green;
}
.style12 {color: #444444}
/* top nav bar */
ul.top {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
border: 1px solid #dddddd;
background-color: #eeeeee;
}
li.top {
float: right;
}
li a.top {
display: block;
color: #666;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
Xlrays
li a:hover:not(#tactive) {
background-color: #555;
}
li a.tactive {
color: white;
background-color: #4CAF50;
}
/* end top nav bar */
.style13 {font-family: "Courier New", Courier, monospace; font-size: 57px;
text-shadow: 3px 3px 5px #4CAF50;
}
.style13:hover {
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px #4CAF50, 0 0 5px green;
}
/* left nav bar */
ul.nav {
list-style-type: none;
margin: 0;
padding: 0;
width: 200px;
background-color: #eeeeee;
}
li a.nav {
display: block;
color: #000;
padding: 8px 0 8px 16px;
text-decoration: none;
}
li a.active {
background-color: #4CAF50;
color: white;
}
li a:hover:not(#active) {
background-color: #555;
color: white;
}
/* end left nav bar */
HTMLTutorials
/* button */
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
border-radius: 15px 50px;
box-shadow: 0px 0px 50px #4CAF50;
}
.button:hover {
box-shadow: 0 12px 16px 0 #4caf50,0 17px 50px 0 #4caf50;
border-radius: 50px 15px;
}
/* box */
div.box {
background-color: #eeeeee;
width: 380px;
padding: 0px;
border: 0px solid #eeeeee;
margin: 0px;
border-radius: 15px 50px;
}
div.box:hover {
box-shadow: 0px 0px 50px #4CAF50;
border-radius: 50px 15px;
}
div.inner {
background-color: white;
padding:10px;
border-radius: 15px 50px;
border-left-style:solid;
border-left-color:#4CAF50;
border-right-style:solid;
border-right-color:#4CAF50;
}
div.inner:hover {
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
border-radius: 50px 15px;
}
.style14 {color: #0000FF}
.style18 {color: #CC0000}
a:link{
text-decoration:none;
}
a:hover {
text-decoration:underline;
}
img:hover {
box-shadow: 0px 0px 50px #4CAF50;
}
</style>
</head>
<body>
<div id="header">
<a href="Index.html">
<img src="Images/XLrays-logo.png" width="120" height="120" hspace="50" align="left" ></a>
<h3 class="style13">Online Web Tutorials</h3>
<ul class="top">
<li class="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
<li class="top"><a class="top" href="i editor.html" target="_blank">Online Editor</a></li>
<li class="top"><a class="top" href="home.html">Html</a></li>
<li class="top"><a class="top tactive" href="Index.html">Home</a></li>
</ul>
</div>
<div id="nav">
<h2><center>HTML Tutorial</center></h2>
<ul class="nav">
<li><a class="nav" href="i editor.html" target="_blank"><b>Online Editor</b></a></li>
<li><a class="nav" href="home.html">HTML Home</a></li>
<li><a class="nav" href="introduction.html">HTML Introduction</a></li>
<li><a class="nav" href="html-editors.html">HTML Editors</a></li>
<li><a class="nav" href="basic.html">HTML BASIC</a></li>
<li><a class="nav" href="elements.html">HTML Elements</a></li>
<li><a class="nav" href="attributes.html">HTML Attributes</a></li>
<li><a class="nav" href="links.html">HTML Links</a></li>
</ul>
</ul>
</div>
<div class="style12" id="section">
<p align="center"><span class="style9">HTML</span><br>
</p>
<p class="style1" align="center">The language for building<br>
web pages</p>
<p><center><a href="home.html" style="color:white">
<button class="button button">Learn HTML</button></a></center></p>
</div>
<br><br><br><br> <div id="section" class="right box">
<h3><b> HTML Example:</b></h3>
<div class="inner">
<p> <span class="style14">&lt;</span><span class="style18">html</span><span class="style14">&gt;</span><br>
<span class="style14">&lt;</span><span class="style18">head</span><span class="style14">&gt;</span><br>
<span class="style14">&lt;</span><span class="style18">title</span><span class="style14">&gt;</span>HTML Tutorial<span
class="style14">&lt;</span><span class="style18">/title</span><span class="style14">&gt;</span><br>
<span class="style14">&lt;</span><span class="style18">/head</span><span class="style14">&gt;</span> <br>
<span class="style14">&lt;</span><span class="style18">body</span><span class="style14">&gt;</span>
<p><span class="style14">&lt;</span><span class="style18">h1</span><span class="style14">&gt;</span>This is a heading<span
class="style14">&lt;</span><span class="style18">/h1</span><span class="style14">&gt;</span><br>
<span class="style14">&lt;</span><span class="style18">p</span><span class="style14">&gt;</span>This is a paragraph.<span
class="style14">&lt;</span><span class="style18">/p</span><span class="style14">&gt;</span></p>
<p><span class="style14">&lt;</span><span class="style18">/body</span><span class="style14">&gt;</span><br>
<span class="style14">&lt;</span><span class="style18">/html</span><span class="style14">&gt;</span><br>
</p>
</p>
</div>
<a href="i editor-home.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a>
</div>
<div id="footer">
&copy; 2016 All Right Reserved | XLrays.com.
</div>
</body>
</html>
home.html
home.html
<div class="style12" id="section">
<h1>HTML(5) Tutorial</h1>
<p><a href="index.html" style="color:#4CAF50"><h3><strong><< XLrays Home</strong></h3></a></p>
<img src="Images/pic_html5.gif" valign="middle" align="left">
<p>With HTML you can create your own Web site.<p>
<p>This tutorial teaches you everything about HTML.<p>
<p>HTML is easy to learn - You will enjoy it.</p><br><br>
<hr color="#eeeeee">
<h2>Examples in Every Chapter</h2>
<p>This HTML tutorial contains hundreds of HTML examples.</p>
<p>With our online HTML editor, you can edit the HTML, and click on a button to view the result.</p>
<div class="box">
<h3>Example</h3>
<div class="inner">
<p> <span class="style17">&lt;</span><span class="style18 style16">html</span><span class="style17">&gt;</span><br>
<span class="style17">&lt;</span><span class="style18">head</span><span class="style17">&gt;</span><br>
<span class="style17">&lt;</span><span class="style18">title</span><span class="style17">&gt;</span>Page Title <span
class="style17">&lt;</span><span class="style18">/title</span><span class="style17">&gt;</span><br>
<span class="style17">&lt;</span><span class="style18">/head</span><span class="style17">&gt;</span> <br>
<span class="style17">&lt;</span><span class="style18">body</span><span class="style17">&gt;</span>
<p><span class="style17">&lt;</span><span class="style18">h1</span><span class="style17">&gt;</span>My First Heading<span
class="style17">&lt;</span><span class="style18">/h1</span><span class="style17">&gt;</span><br>
<span class="style17">&lt;</span><span class="style18">p</span><span class="style17">&gt;</span>My First Paragraph.<span
class="style17">&lt;</span><span class="style18">/p</span><span class="style17">&gt;</span></p>
<p><span class="style17">&lt;</span><span class="style18">/body</span><span class="style17">&gt;</span><br>
<span class="style17">&lt;</span><span class="style18">/html</span><span class="style17">&gt;</span><br>
</p>
</p>
</div>
<a href="i editor-intro.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a>
</div>
<p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src="Images/lamp.jpg"
align="middle"> Click on the "Try it Yourself" button to see how it works.</p>
<a href="introduction.html" style="color:#4CAF50"><b>Start learning HTML now!</b></a><strong>
<h3 align="right"><a href="introduction.html" style="color:#4CAF50">Next Chapter >></h3></strong></a></p>
</div>
introduction.html
<div id="section">
<h1>HTML Introduction</h1>
<p><a href="home.html" style="color:#4CAF50" ><h3><strong><< Previous
Chapter</strong></h3></a></p>
<hr width="100%" color="#eeeeee">
<h2>What is HTML?</h2>
<p>HTML is a&nbsp;<strong>markup</strong>&nbsp;language
for&nbsp;<strong>describing</strong>&nbsp;web documents (web pages).</p>
<ul>
<li>HTML stands
for&nbsp;<strong>H</strong>yper&nbsp;<strong>T</strong>ext&nbsp;<strong>M</strong>arkup&
nbsp;<strong>L</strong>anguage</li>
<li>A markup language is a set of&nbsp;<strong>markup tags</strong></li>
<li>HTML documents are described by&nbsp;<strong>HTML tags</strong></li>
<li>Each HTML tag&nbsp;<strong>describes</strong>&nbsp;different document content</li>
</ul>
<hr width="100%" color="#eeeeee">
introduction.html
<h2>HTML Example</h2>
<div class="box">
<h3>A small HTML document:</h3>
<div class="inner">
<p> <span class="style14">&lt;</span><span class="style18">html</span>
<span class="style14">&gt;</span><br> <span class="style14">&lt;</span>
<span class="style18">head</span><span class="style14">&gt;</span><br>
<span class="style14">&lt;</span><span class="style18">title</span>
<span class="style14">&gt;</span>Page Title <span class="style14">&lt;
</span><span class="style18">/title</span><span class="style14">&gt;
</span><br> <span class="style14">&lt;</span><span class="style18">
/head</span><span class="style14">&gt;</span> <br> <span class="style14">
&lt;</span><span class="style18">body</span><span class="style14">&gt;</span>
<p><span class="style14">&lt;</span><span class="style18">h1</span>
<span class="style14">&gt;</span>My First Heading<span class="style14">
&lt;</span><span class="style18">/h1</span><span class="style14">&gt;</span><br>
<span class="style14">&lt;</span><span class="style18">p</span><span class="style14">
&gt;</span>My First Paragraph.<span class="style14">&lt;</span><span class="style18">
/p</span><span class="style14">&gt;</span></p>
<p><span class="style14">&lt;</span><span class="style18">/body</span>
<span class="style14">&gt;</span><br><span class="style14">&lt;</span>
<span class="style18">/html</span><span class="style14">&gt;</span><br>
</p></p></div>
<a href="i editor-intro.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a>
</div>
<hr width="100%" color="#eeeeee">
<h2>Example Explained</h2>
<ul>
<li>The&nbsp;<strong>DOCTYPE</strong>&nbsp;declaration defines the document type to be HTML</li>
<li>The text between&nbsp;<strong>&lt;html&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/html&gt;</strong>&nbsp;describes an HTML document</li>
<li>The text between&nbsp;<strong>&lt;head&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/head&gt;</strong>&nbsp;provides information about the
document</li>
<li>The text between&nbsp;<strong>&lt;title&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/title&gt;</strong>&nbsp;provides a title for the document</li>
<li>The text between&nbsp;<strong>&lt;body&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/body&gt;</strong>&nbsp;describes the visible page
content</li>
<li>The text between&nbsp;<strong>&lt;h1&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/h1&gt;</strong>&nbsp;describes a heading</li>
<li>The text between&nbsp;<strong>&lt;p&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/p&gt;</strong>&nbsp;describes a paragraph</li>
</ul>
<p>Using this description, a web browser can display a document with a heading and a paragraph.</p>
<hr width="100%" color="#eeeeee">
<h2>HTML Tags</h2>
<p>HTML tags are&nbsp;<strong>keywords</strong>&nbsp;(tag names) surrounded by&nbsp;<strong>angle brackets</strong>:</p>
<div><b><span class="style14">&lt;</span><span class="style18">tagname</span><span class="style14">&gt;</span>content<span
class="style14">&lt;</span><span class="style18">/tagname</span><span class="style14">&gt;</span></b></div>
<ul>
<li>HTML tags normally come&nbsp;<strong>in pairs</strong>&nbsp;like &lt;p&gt; and &lt;/p&gt;</li>
<li>The first tag in a pair is the&nbsp;<strong>start tag,</strong>&nbsp;the second tag is the&nbsp;<strong>end tag</strong></li>
<li>The end tag is written like the start tag, but with a&nbsp;<strong>slash</strong>&nbsp;before the tag name</li>
</ul>
<p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img
src="Images/lamp.jpg" valign="middle" align="left"> The start tag is often called the opening tag. The end tag is often called the closing
tag. </p>
<hr width="100%" color="#eeeeee">
<h2>Web Browsers</h2>
<p>The purpose of a web browser (Chrome, IE, Firefox, Safari) is to read HTML documents
and display them.</p><p>The browser does not display the HTML tags, but uses them to
determine how to display the document:</p>
<img src="Images/img_chrome.png">
<hr width="100%" color="#eeeeee">
<h2>HTML Page Structure</h2>
<p>Below is a visualization of an HTML page structure:</p>
<div class="box1">
&lt;html&gt; <br>
<div class="box2">
&lt;head&gt;
<div class="box2">&lt;title&gt;Page title&lt;/title&gt;</div>
&lt;/head&gt; </div>
<div class="box3">
&lt;body&gt;
<div class="box3">&lt;h1&gt;This is a heading&lt;/h1&gt;</div>
<div class="box3">&lt;p&gt;This is a paragraph.&lt;/p&gt;</div>
<div class="box3">&lt;p&gt;This is another paragraph.&lt;/p&gt;</div>
&lt;/body&gt; </div> &lt;/html&gt; </div>
<p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src="Images/lamp.jpg"
valign="middle"> Only the &lt;body&gt; area (the white area) is displayed by the browser.</p>
<hr width="100%" color="#eeeeee">
<h2>HTML Versions</h2>
<p>Since the early days of the web, there have been many versions of HTML:</p>
<table>
<tr>
<th>Version</th>
<th>Year</th>
</tr> <tr>
<td>HTML</td>
<td>1991</td>
</tr> <tr>
<td>HTML 2.0</td>
<td>1995</td>
</tr> <tr>
<td>HTML 3.2</td>
<td>1997</td>
</tr> <tr>
<td>HTML 4.01</td>
<td>1999</td>
</tr> <tr>
<td>HTML 4.01</td>
<td>1999</td>
</tr> <tr>
<td>HTML 5</td>
<td>2014</td>
</tr>
</table>
<p><a href="html-editors.html" style="color:#4CAF50"><strong><h3 align="right">Next Chapter >></h3></strong></a></p>
</div>
html-editors.html
html-editors.html
<div class="style12" id="section">
<h1>HTML Editors</h1>
<p><a href="introduction.html" style="color:#4CAF50"><h3><strong><< Previous Chapter</strong></h3></a></p>
<hr color="#eeeeee">
<h2>Write HTML Using Notepad or TextEdit</h2>
<p>HTML can be edited by using professional HTML
editors like:</p>
<ul>
<li>Microsoft WebMatrix</li>
<li>Sublime Text</li>
</ul>
<p>However, for learning HTML we recommend a text
editor like Notepad (PC) or TextEdit (Mac).</p>
<p>We believe using a simple text editor is a good way
to learn HTML.</p>
<p>Follow the 4 steps below to create your first web
page with Notepad.</p>
<hr color="#eeeeee">
<h2>Step 1: Open Notepad</h2>
<p>To open Notepad in Windows 7 or earlier:</p>
<p>Click&nbsp;<strong>Start</strong>&nbsp;(bottom
left on your screen). Click&nbsp;<strong>All Programs
</strong>. Click&nbsp;<strong>Accessories</strong>.
Click&nbsp;<strong>Notepad</strong>.</p>
<p>To open Notepad in Windows 8 or later:</p>
<p>Open the&nbsp;<strong>Start Screen</strong>
&nbsp;(the window symbol at the bottom left on your
screen). Type&nbsp;<strong>Notepad</strong>.</p>
<hr color="#eeeeee">
<h2>Step 2: Write Some HTML</h2>
<p>Write or copy some HTML into Notepad.</p>
<div class="box">
<div class="inner"><span class="style19">&lt;</span><span class="style18">html</span><span
class="style19">&gt;</span><br />
<span class="style19">&lt;</span><span class="style18">body</span><span
class="style19">&gt;</span><br/><br/>
<span class="style19">&lt;</span><span class="style18">h1</span><span class="style19">&gt;</span>My
First Heading<span class="style19">&lt;</span><span class="style18">/h1</span><span
class="style19">&gt;</span><br /> <br />
<span class="style19">&lt;</span><span class="style18">p</span><span class="style19">&gt;</span>My
first paragraph.<span class="style19">&lt;</span><span class="style18">/p</span><span
class="style19">&gt;</span><br /> <br />
<span class="style19">&lt;</span>
<span class="style18">/body</span>
<span class="style19">&gt;</span><br />
<span class="style19">&lt;</span>
<span class="style18">/html</span>
<span class="style19">&gt;</span>
</div>
</div><br>
<img src="Images/img_notepad.PNG" />
<hr color="#eeeeee">
<h2>Step 3: Save the HTML Page</h2>
<p>Save the file on your computer.</p>
<p>Select&nbsp;<strong>File &gt; Save as</strong>&nbsp;in the Notepad menu.</p>
<p>Name the file &quot;index.html&quot; or any other name ending with html or htm.</p>
<p>UTF-8 is the preferred encoding for HTML files.</p>
<p>ANSI encoding covers US&nbsp;and Western European characters only.</p>
<img src="Images/img_saveas.png" />
<p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px;
padding: 10px; width:800px" ><img src="Images/lamp.jpg" valign="middle" align="left">You can
use either .htm or .html as file extension. There is no
difference, it is up to you.</p>
<hr color="#eeeeee">
<h2>Step 4: View HTML Page in Your Browser</h2>
<p>Open the saved HTML file in your favorite browser.
The result will look much like this:</p>
<img src="Images/img_chrome (1).png" />
<p style="border-style:solid; border-width:thin;
border-color:#cccccc; border-spacing:50px; padding: 10px;
width:800px" ><img src="Images/lamp.jpg" valign="middle"
align="left">To open a file in a browser, double click on the
file, or right-click, and choose open with.</p>
<p><a href="basic.html" style="color:#4CAF50"><strong>
<h3 align="right">Next Chapter >></h3></strong></a></p>
</div>
basic.html
basic.html
<div class="style12" id="section">
<h1>HTML Basic Examples</h1>
<p><a href="html-editors.html" style="color:#4CAF50"><h3><strong>
<< Previous Chapter</strong></h3></a></p>
<hr color="#eeeeee">
<p>Don't worry if these examples use tags you have not learned.</p>
<p>You will learn about them in the next chapters.</p>
<hr color="#eeeeee">
<h2>HTML Documents</h2>
<p>The HTML document itself begins with&nbsp;<strong>&lt;html&gt;
</strong> &nbsp;and ends with&nbsp;<strong>&lt;/html&gt;</strong>.</p>
<p>The visible part of the HTML document is between &nbsp; <strong> &lt;
body&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/body&gt;</strong>.
</p> <div class="box">
<h3><b> Example:</b></h3> <div class="inner">
<p><span class="style15">&lt;</span><span class="style14">html</span><span class="style15">&gt;</span><br>
<span class="style15">&lt;</span><span class="style14">body</span><span class="style15">&gt;</span><br> <br>
<span class="style15">&lt;</span><span class="style14">h1</span><span class="style15">&gt;</span>My First Heading<span
class="style15">&lt;</span><span class="style14">/h1</span><span class="style15">&gt;</span><br> <br>
<span class="style15">&lt;</span><span class="style14">p</span><span class="style15">&gt;</span>My first paragraph.<span
class="style15">&lt;</span><span class="style14">/p</span><span class="style15">&gt;</span><br> <br>
<span class="style15">&lt;</span><span class="style14">/body</span><span class="style15">&gt;</span><br>
<span class="style15">&lt;</span><span class="style14">/html</span><span class="style15">&gt;</span> </div>
<a href="i editor-intro.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a>
</div> <hr color="#eeeeee">
<h2>HTML Headings</h2>
<p>HTML headings are defined with the&nbsp;<strong>&lt;h1&gt; </strong>to
<strong>&lt;h6&gt;</strong>&nbsp;tags:</p>
<div class="box">
<h3><b> Example:</b></h3>
<div class="inner">
<p><span class="style15">&lt;</span><span class="style14">h1</span><span class="style15">&gt;</span>This is a
heading<span class="style15">&lt;</span><span class="style14">/h1</span><span class="style15">&gt;</span>
<p><span class="style15">&lt;</span><span class="style14">h2</span><span class="style15">&gt;</span>This is a
heading<span class="style15">&lt;</span><span class="style14">/h2</span><span class="style15">&gt;</span>
<p><span class="style15">&lt;</span><span class="style14">h3</span><span class="style15">&gt;</span>This is a
heading<span class="style15">&lt;</span><span class="style14">/h3</span><span
class="style15">&gt;</span><br> <br> </div>
<a href="i editor-basic2.html" target="_blank" style="color:white"><button class="button button">Try it
Yourself</button></a></div>
<hr color="#eeeeee">
<h2>HTML Paragraphs</h2>
<p>HTML paragraphs are defined with the&nbsp;<strong>&lt;p&gt;
</strong>&nbsp;tag:</p> <div class="box">
<h3><b> Example:</b></h3> <div class="inner">
<p><span class="style15">&lt;</span><span class="style14">p
</span><span class="style15">&gt;</span>This is a paragraph.
<span class="style15">&lt;</span><span class="style14">/p</span>
<span class="style15">&gt;</span>
<p><span class="style15">&lt;</span><span class="style14">p
</span><span class="style15">&gt;</span>This is another
paragraph.<span class="style15">&lt;</span><span class="style14">
/p</span><span class="style15">&gt;</span><br>
<br> </div>
<a href="i editor-basic3.html" target="_blank" style="color:white">
<button class="button button">Try it Yourself</button></a></div>
<hr color="#eeeeee">
<h2>HTML Links</h2>
<p>HTML links are defined with the&nbsp;<strong>&lt;a&gt;</strong>&nbsp;tag:</p>
<div class="box“> <h3><b> Example:</b></h3> <div class="inner">
<p><span class="style15">&lt;</span><span class="style14">a href=<span
class="style15">&quot;http://www.xlrays.com/xl&quot;</span></span><span class="style15">&gt;</span>This is
a link<span class="style15">&lt;</span><span class="style14">/a</span><span class="style15">&gt;</span><br>
<br> </div>
<a href="i editor-basic4.html" target="_blank" style="color:white"><button class="button button">Try it
Yourself</button></a></div>
<p>The link's destination is specified in the&nbsp;<strong>href attribute</strong>.&nbsp;</p>
<p>Attributes are used to provide additional information about HTML elements.</p>
<hr color="#eeeeee“> <h2>HTML Images</h2>
<p>HTML images are defined with the&nbsp;<strong>&lt;img&gt;
</strong>&nbsp;tag.</p> <p>The source file (<strong>src</strong>),
alternative text (<strong>alt</strong>), and size (<strong>width
</strong>&nbsp;and&nbsp;<strong>height</strong>) are provided
as&nbsp;<strong>attributes</strong>:</p> <div class="box">
<h3><b> Example:</b></h3> <div class="inner">
<p><span class="style15">&lt;</span><span class="style14">
<span class="style15">&quot;ImagesXLrays-logo.png&quot; <span
class="style14">alt=</span>&quot;XLrays.com&quot; </span>
</span><span class="style15"><span class="style14">width=</span>
&quot;104&quot; <span class="style14">height=</span>&quot;110&
quot;&gt;</span><br> <br> </div>
<a href="i editor-basic5.html" target="_blank" style="color:white">
<button class="button button">Try it Yourself</button></a></div>
<p style="border-style:solid; border-width:thin; border-color:#cccccc;
border-spacing:50px; padding: 10px; width:800px" ><img src=
"Images/lamp.jpg" valign="middle" align="left">You will learn more
about attributes in a later chapter.</p> <p><a href="elements.html"
style="color:#4CAF50"><strong><h3 align="right">Next Chapter >>
</h3></strong></a></p></div>
elements.html
elements.html
<div class="style12" id="section">
<h1>HTML Elements </h1>
<p><a href="basic.html" style="color:#4CAF50"><h3><strong><< Previous Chapter</strong></h3></a></p>
<hr color="#eeeeee">
<p>HTML&nbsp;<strong>documents</strong>
&nbsp;are made up by HTML&nbsp;<strong>
elements</strong>.</p>
<hr color="#eeeeee">
<h2>HTML Elements</h2>
<p>HTML elements are written with a
&nbsp;<strong>start</strong>&nbsp;tag,
with an&nbsp;<strong>end</strong>&
nbsp;tag, with the&nbsp;<strong>
content</strong>&nbsp;in between:</p>
<h3><span class="style15">&lt;</span>
<span class="style14">tagname</span>
<span class="style15">&gt;</span>content<span class="style15">&lt;</span><span
class="style14">/tagname</span><span class="style15">&gt;</span></h3>
<p>The HTML&nbsp;<strong>element</strong>&nbsp;is everything from the start tag to the end tag:</p>
<h3><span class="style15">&lt;</span><span class="style14">p</span><span class="style15">&gt;</span>My first
HTML paragraph.<span class="style15">&lt;</span><span class="style14">/p</span><span
class="style15">&gt;</span></h3>
<table> <tr>
<th>Start Tag</th>
<th>Element Content</th>
<th>End Tag</th>
</tr> <tr>
<td>&lt;h1&gt;</td>
<td>My First Heading</td>
<td>&lt;/h1&gt;</td>
</tr> <tr>
<td>&lt;p&gt;</td>
<td>Mt First Paragraph.</td>
<td>&lt;/p&gt;</td>
</tr> <tr>
<td>&lt;br&gt;</td>
<td></td> <td></td>
</tr></table>
<p style="border-style:solid; border-width:thin; border-color:#cccccc;
border-spacing:50px; padding: 10px; width:800px" ><img src=
"Images/lamp.jpg" valign="middle" align="top"> Some HTML
Elements do not have an end tag.</p> <hr color="#eeeeee“> <h2>
Nested HTML Elements</h2> <p>HTML elements can be nested
(elements can contain elements).</p> <p>All HTML documents consist of nested
HTML elements.</p> <p>This example contains 4 HTML elements:</p>
<div class="box“> <h3><b> Example:</b></h3> <div class="inner">
<p><span class="style15">&lt;</span><span class="style14">html</span><span class="style15">&gt;</span><br>
<span class="style15">&lt;</span><span class="style14">body</span><span class="style15">&gt;</span><br> <br>
<span class="style15">&lt;</span><span class="style14">h1</span><span class="style15">&gt;</span>My First Heading<span
class="style15">&lt;</span><span class="style14">/h1</span><span class="style15">&gt;</span>
<p><span class="style15">&lt;</span><span class="style14">p</span><span class="style15">&gt;</span>My first paragraph.<span
class="style15">&lt;</span><span class="style14">/p</span><span class="style15">&gt;</span><br> <br>
<span class="style15">&lt;</span><span class="style14">/body</span><span class="style15">&gt;</span><br>
<span class="style15">&lt;</span><span class="style14">/html</span><span class="style15">&gt;</span> </div>
<a href="i editor-intro.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a></div>
<hr color="#eeeeee">
<h2>HTML Example Explained</h2>
<p>The&nbsp;<strong>&lt;html&gt;</strong>&nbsp;element defines the&nbsp;<strong>
whole document</strong>.</p><p>It has a&nbsp;<strong>start</strong>&nbsp;tag &lt;
html&gt; and an&nbsp;<strong>end</strong>&nbsp;tag &lt;/html&gt;.</p><p>The element
&nbsp;<strong>content</strong>&nbsp;is another HTML element (the &lt;body&gt; element)
.</p> <div class="box">
<div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14">
html</span><span class="style19 style15">&gt;</span><br />
<span class="style19 style15">&lt;</span><span class="style18 style14">body</span><span
class="style19 style15">&gt;</span><br /><br />
<span class="style19 style15">&lt;</span><span class="style18 style14">h1</span><span
class="style19 style15">&gt;</span>My First Heading<span class="style19 style15">&lt;
</span><span class="style18 style14">/h1</span><span class="style19 style15">&gt;
</span><br /> <br /> <span class="style19 style15">&lt;</span><span class="style18
style14">p</span><span class="style19 style15">&gt;</span>My first paragraph.<span
class="style19 style15">&lt;</span><span class="style18 style14">/p</span><span class="style19 style15">&gt;</span><br /> <br />
<span class="style19 style15">&lt;</span><span class="style18 style14">/body</span><span class="style19 style15">&gt;</span><br />
<span class="style19 style15">&lt;</span><span class="style18 style14">/html</span><span class="style19 style15">&gt;</span>
</div> </div>
<p>The&nbsp;<strong>&lt;body&gt;</strong>&nbsp;element defines the&nbsp;<strong>document body</strong>.</p>
<p>It has a&nbsp;<strong>start</strong>&nbsp;tag &lt;body&gt; and an&nbsp;<strong>end</strong>&nbsp;tag &lt;/body&gt;.</p>
<p>The element&nbsp;<strong>content</strong>&nbsp;is two other HTML elements (&lt;h1&gt; and &lt;p&gt;).</p>
<div class="box“> <div class="inner">
<p><span class="style19 style15">&lt;</span><span class="style18 style14">body</span><span class="style19 style15">&gt;</span><br />
<br /> <span class="style19 style15">&lt;</span><span class="style18 style14">h1</span><span class="style19
style15">&gt;</span>My First Heading<span class="style19 style15">&lt;</span><span class="style18 style14">/h1</span><span
class="style19 style15">&gt;</span> <br />
<span class="style19 style15">&lt;</span><span class="style18 style14">p</span><span class="style19 style15">&gt;</span>My first
paragraph.<span class="style19 style15">&lt;</span><span class="style18 style14">/p</span><span class="style19
style15">&gt;</span></p>
<p><span class="style19 style15">&lt;</span><span class="style18 style14">/body</span><span class="style19 style15">&gt;</span></p>
</div> </div>
<p>The&nbsp;<strong>&lt;h1&gt;</strong>&nbsp;element defines a&nbsp;<strong>heading</strong>.</p>
<p>It has a&nbsp;<strong>start</strong>&nbsp;tag &lt;h1&gt; and an&nbsp;<strong>end</strong>&nbsp;tag
&lt;/h1&gt;.</p>
<p>The element&nbsp;<strong>content</strong>&nbsp;is: My First Heading.</p> <div class="box">
<div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14">h1</span><span
class="style19 style15">&gt;</span>My First Heading<span class="style19 style15">&lt;</span><span
class="style18 style14">/h1</span><span class="style19 style15">&gt;</span></div> </div>
<p>The&nbsp;<strong>&lt;p&gt;</strong>&nbsp;element defines
a&nbsp;<strong>paragraph</strong>.</p>
<p>It has a&nbsp;<strong>start</strong>&nbsp;tag &lt;p&gt; and an&nbsp;<strong>end</strong>&nbsp;
tag &lt;/p&gt;.</p>
<p>The element&nbsp;<strong>
content</strong>&nbsp;is: My first
paragraph.</p> <p>&nbsp;</p>
<div class="box">
<div class="inner"><span class=“
style19 style15">&lt;</span><span class=“
style18 style14">p</span><span class=“
style19 style15">&gt;</span>My first
paragraph.<span class="style19 style15">
&lt;</span><span class="style18 style14">
/p</span><span class="style19 style15">
&gt;</span></div> </div>
<hr color="#eeeeee“> <h2>Don't Forget
the End Tag</h2> <p>Some HTML
elements will display correctly, even if you
forget the end tag:</p>
<h2>Empty HTML Elements</h2>
<p>HTML elements with no content are called empty elements.</p>
<p>&lt;br&gt; is an empty element without a closing tag (the &lt;br&gt; tag defines a line break).</p>
<p>Empty elements can be "closed" in the opening tag like this: &lt;br /&gt;.</p>
<p>HTML5 does not require empty elements to be closed. But if you want stricter validation, or you
need to make your document readable by XML parsers, you should close all HTML elements.</p>
<hr color="#eeeeee">
<h2>HTML Tip: Use Lowercase Tags</h2>
<p>HTML tags are not case sensitive: &lt;P&gt;
means the same as &lt;p&gt;.</p>
<p>The HTML5 standard does not require
lowercase tags, but W3C&nbsp;<strong>r
ecommends</strong>&nbsp;lowercase in
HTML4, and&nbsp;<strong>demands</strong>
lowercase for stricter document types like XHTML.
</p>
<p style="border-style:solid; border-width:thin;
Border-color:#cccccc; border-spacing:50px;
padding: 10px; width:800px" ><img src=“
Images/lamp.jpg" valign="middle">
At XLrays we always use lowercase tags.</p>
<a href="attributes.html" style=“
color:#4CAF50"><strong><h3 align="right">
Next Chapter >></h3></strong></a></p>
</div>
attributes.html
<div class="style12" id="section">
<h1>HTML Attributes </h1>
<p><a href="elements.html" style="color:#4CAF50"><h3><strong><< Previous Chapter
</strong></h3></a></p> <hr color="#eeeeee">
<p>HTML&nbsp;<strong>documents</strong>&nbsp;are made up by HTML&nbsp;
<strong>elements</strong>.</p> <hr color="#eeeeee">
<h2>HTML Attributes</h2> <ul>
<li>HTML elements can have&nbsp;<strong>attributes</strong></li>
<li>Attributes provide&nbsp;<strong>additional information</strong>&nbsp;about
an element</li> <li>Attributes are always specified in&nbsp;<strong>the start tag
</strong></li> <li>Attributes come in name/value pairs like:&nbsp;<strong>name=
"value"</strong></li> </ul> <h2>The lang Attribute</h2>
<p>The document language can be declared in the&nbsp;<strong>&lt;html&gt;
</strong>&nbsp;tag.</p> <p>The language is declared in the&nbsp;<strong>lang
</strong>&nbsp;attribute.</p> <p>Declaring a language is important for accessibility
applications (screen readers) and search engines:</p> <div class="box">
<div class="inner"><span class="style15">&lt;</span><span class="style16">html
lang=</span><span class="style15">"en-US"&gt;</span><br /> <span class="style15">
&lt;</span><span class="style16">body</span><span class="style15">&gt;</span><br /> <br />
<span class="style15">&lt;</span><span class="style16">h1</span><span class="style15">&gt;</span>My First Heading<span><span
class="style15">&lt;</span><span class="style16">/h1</span></span><span class="style15">&gt;</span><br /> <br />
<span class="style15">&lt;</span><span class="style16">p</span><span class="style15">&gt;</span>My first paragraph.<span
class="style15">&lt;</span><span class="style16">/p</span><span class="style15">&gt;</span><br /> <br />
<span class="style15">&lt;</span><span class="style16">/body</span><span class="style15">&gt;</span><br />
<span class="style15">&lt;</span><span class="style16">/html</span><span class="style15">&gt;</span></div></div>
<p>The first two letters specify the language (en). If there is a dialect, use two more letters (US).</p>
<hr color="#eeeeee">
<div class="box“> <h3><b> Example:</b></h3> <div class="inner">
<p title="About XLrays"><span class="style15">&lt;</span><span class=“
style16">p&nbsp;title=</span><span class="style15">"About XLrays "&gt;
</span><br> XLrays is a web developer's site.<br> It provides tutorials
and references covering<br> HTML of web programming.<br>
<span class="style15">&lt;</span><span class="style16">/p</span>
<span class="style15">&gt;</span></div>
<a href="i editor-attributes.html" target="_blank" style="color:white">
<button class="button button">Try it Yourself</button></a></div>
<p style="border-style:solid; border-width:thin; border-color:#cccccc;
border-spacing:50px; padding: 10px; width:800px" ><img src=
"Images/lamp.jpg" valign="middle" align="left"> When you move the
mouse over the element, the title will be displayed as a tooltip.</p>
<hr color="#eeeeee“><h2>The href Attribute</h2>
<p>HTML links are defined with the&nbsp;<strong>&lt;a&gt;</strong>
&nbsp;tag. The link address is specified in the&nbsp;<strong>href</strong>
&nbsp;attribute:</p><div class="box“> <h3><b> Example:</b></h3>
<div class="inner“> <p title="About XLrays"><span class="style15">&lt;
</span><span class="style16">a&nbsp;href=</span><span class="style15">"http://www.xlrays.com/xl"&gt;</span>This
is a link<span class="style15">&lt;</span><span class="style16">/a</span><span class="style15">&gt;</span>
</div> <a href="i editor-basic4.html" target="_blank" style="color:white"><button class="button button">Try it
Yourself</button></a></div><br>
You will learn more about links and the &lt;a&gt; tag later in this tutorial.
<hr color="#eeeeee“><h2>Size Attributes</h2><p>HTML images are defined with
the&nbsp;<strong>&lt;img&gt;</strong>&nbsp;tag.</p>
<p>The filename of the source (<strong>src</strong>), and the size of the image
(<strong>width</strong>&nbsp;and&nbsp;<strong>height</strong>) are all provided
as&nbsp;<strong>attributes</strong>:</p
<a href="links.html" style="color:#4CAF50"><strong><h3 align="right">Next Chapter >></h3>
</strong></a></p></div>
links.html
links.html
<div class="style12" id="section">
<h1>HTML Links</h1> <hr color="#eeeeee">
Links are found in nearly all web pages. Links allow users to click
their way from page to page. <hr color="#eeeeee">
<h2>HTML Links - Hyperlinks</h2> <p>HTML links are hyperlinks.
</p> <p>A hyperlink is a text or an image you can click on, and
jump to another document.</p> <hr color="#eeeeee">
<h2>HTML Links - Syntax</h2>
<p>In HTML, links are defined with the&nbsp;<strong>&lt;a&gt;
</strong>&nbsp;tag:</p> <div class="box">
<div class="inner"><span class="style19 style15">&lt;</span>
<span class="style18 style14">a href=<span class="style15">
&quot;url&quot;</span></span><span class="style19 style15">&gt;</span>Link text <span
class="style19 style15">&lt;</span><span class="style18 style14">/a</span><span class="style19
style15">&gt;</span></div> </div> <br>
<div class="box“> <h3><b> Example:</b></h3>
<div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14">a
href=<span class="style15">&quot;http://www.xlrays.com/xl&quot;</span></span><span
class="style19 style15">&gt;</span>This is a link<span class="style19 style15">&lt;</span><span
class="style18 style14">/a</span><span class="style19 style15">&gt;</span></div>
<a href="i editor-basic4.html" target="_blank" style="color:white"><button class="button button">Try
it Yourself</button></a></div>
<p>The&nbsp;<strong>href</strong>&nbsp;attribute specifies the destination address (http://www.xlrays.com/xl)</p>
<p>The&nbsp;<strong>link text</strong>&nbsp;is the visible part (Visit our HTML tutorial).</p>
<p>Clicking on the link text, will send you to the specified address.</p>
<p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px;
width:800px" ><img src="Images/lamp.jpg" valign="middle" align="left">The link text does not have to be text. It
can be an HTML image or any other HTML element.</p>
<p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px;
width:800px" ><img src="Images/lamp.jpg" valign="middle" align="left">Without a trailing slash on subfolder
addresses, you might generate two requests to the server. Many servers will automatically add a trailing slash to
the address, and then create a new request.</p>
<hr color="#eeeeee“> <h2>Local Links</h2>
<p>The example above used an absolute URL (A full web address
).</p> <p>A local link (link to the same web site) is specified with
a relative URL (without http://www....).</p>
<div class="box“> <h3><b> Example:</b></h3>
<div class="inner"><span class="style19 style15">&lt;</span>
<span class="style18 style14">a href=<span class="style15">&
quot;introduction.html&quot;</span></span><span class=“
style19 style15">&gt;</span>HTML Introduction <span class=
"style19 style15">&lt;</span><span class="style18 style14">/a
</span><span class="style19 style15">&gt;</span></div>
<a href="i editor-links.html" target="_blank" style=“
color:white"><button class="button button">Try it Yourself
</button></a></div> <hr color="#eeeeee“> <h2>HTML Links –
Colors</h2> <p>When you move the mouse over a link, two
things will normally happen:</p> <ul> <li>The mouse arrow will
turn into a little hand</li> <li>The color of the link element will
change</li> </ul> <p>By default, a link will appear like this (in all
browsers):</p> <ul><li>An unvisited link is underlined and blue
</li> <li>A visited link is underlined and purple</li>
<li>An active link is underlined and red</li> </ul>
<p>You can change the default colors, by using styles:</p> <div class="box“> <h3><b> Example:</b></h3> <div class="inner">
<p><span class="style14">&lt;style&gt;</span><br><span class="style14">a:link&nbsp;</span>&nbsp;&nbsp;&nbsp;{<span
class="style14">color:</span><span class="style15">green;</span>&nbsp;<span class="style14">background-
color:</span><span class="style15">transparent;</span>&nbsp;<span class="style14">text-decoration:</span><span class=
"style15"> none</span>} <br><br> <span class="style14">a:visited</span>&nbsp;{<span
class="style14">color:</span><span class="style15"> pink;</span> &nbsp;<span class="style14">background-
color:</span><span class="style15">transparent;</span>&nbsp;<span class="style14">text-decoration:</span><span
class="style15">none</span>}<br><br><span class="style14">a:hover</span>&nbsp;&nbsp;&nbsp;{<span
class="style14">color:</span><span class="style15">red;</span>&nbsp;<span class="style14">background-
color:</span><span class="style15">transparent;</span>&nbsp;<span class="style14">text-decoration:</span><span
class="style15">underline </span>}<br><br><span class="style14">a:active</span>&nbsp;&nbsp;{<span
class="style14">color:</span><span class="style15">yellow;</span>&nbsp;<span class="style14">background-
color:</span><span class="style15">transparent; </span>&nbsp;<span class="style14">text-decoration:</span><span
class="style15">underline</span>}<br><span class="style14">
&lt;/style&gt;</span></p> </div> <a href="i editor-links2.html"
target="_blank" style="color:white"><button class="button">Try it
Yourself</button></a></div> <hr color="#eeeeee“> <h2>HTML
Links - The target Attribute</h2> <p>The&nbsp;<strong>target
</strong>&nbsp;attribute specifies where to open the linked
document.</p> <p>This example will open the linked document in
a new browser window or in a new tab:</p>
<div class="box“> <h3><b> Example:</b></h3>
<div class="inner"><span class="style19 style15">&lt;</span>
<span class="style18 style14">a href=<span class="style15">&quot;
http://www.xlrays.com/xl&quot; <span class="style14">target=
</span>"_blank"</span></span><span class="style19 style15">
&gt;</span>Visit XLrays!<span class="style19 style15">&lt;</span>
<span class="style18 style14">/a</span><span class="style19 style15">
&gt;</span></div> <a href="i editor-links3.html" target="_blank"
style="color:white"><button class="button">Try it Yourself</button>
</a></div>
<table> <tr>
<th>Target Value</th>
<th>Description</th> </tr> <tr>
<td>_blank</td>
<td>Opens the linked document in
a new window or tab</td> </tr> <tr>
<td>_self</td>
<td>Opens the linked document in
the same frame as it was clicked (this
is default)</td> </tr> <tr>
<td>_parent</td>
<td>Opens the linked document in
the parent frame</td> </tr> <tr>
<td>_top</td>
<td>Opens the linked document in
the full body of the window</td>
</tr> <tr> <td>framename</td>
<td>Opens the linked document in
a named frame</td>
</tr></table><br>
<hr color="#eeeeee">
<h2>HTML Links - Image as Link
</h2> <p>It is common to use images
as links:</p> <div class="box">
<h3><b> Example:</b></h3> <div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14">a href=<span
class="style15">&quot;index.html&quot;</span></span><span class="style19 style15">&gt;</span><br>
<span class="style15">&lt;</span><span class="style14">img&nbsp;src=</span><span
class="style15">"Images/smiley.gif"</span>&nbsp;<span class="style14">alt=</span><span class="style15">"HTML
tutorial"&gt;</span><br> <span class="style19 style15">&lt;</span><span class="style18 style14">/a</span><span class="style19
style15">&gt;</span></div> <a href="i editor-links4.html" target="_blank" style="color:white"><button class="button">Try it
Yourself</button></a></div>
<hr color="#eeeeee“> <h2>HTML Links - Create a Bookmark</h2>
<p>HTML bookmarks are used to allow readers to jump to specific parts of a Web page.</p>
<p>Bookmarks are practical if your website has long pages.</p>
<p>To make a bookmark, you must first create the bookmark, and then add a link to it.</p>
<p>When the link is clicked, the page will scroll to the location with the bookmark.</p>
<h2>Example</h2> <p>First, create a bookmark with the id attribute:</p> <div class="box">
<div class="inner"><span class="style19 style15">&lt;</span><span class="style14">h2&nbsp;id=
</span><span class="style15">"tips"</span><span class="style19 style15">&gt;</span >Useful Tips
Section<span class="style19 style15">&lt;</span><span class="style18 style14">/h2</span><span
class="style19 style15">&gt;</span></div> </div><br>Then, add a link to the bookmark ("Useful
Tips Section"), from within the same page:<br><br> <div class="box“> <div class="inner"><span
class="style19 style15">&lt;</span><span class="style14">a&nbsp;href=</span><span class="style15">"tips"</span><span class="style19
style15">&gt;</span >Visit the Useful Tips Section<span class="style19 style15">&lt;</span>
<span class="style18 style14">/a</span><span class="style19 style15">&gt;</span></div> </div> <br>
Or, add a link to the bookmark ("Useful Tips Section"), from another page: <br><br>
<div class="box“> <h3><b> Example:</b></h3>
<div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14">a href=
<span class="style15">&quot;html_tips.html#tips&quot;</span></span><span class="style19 style15">&gt;</span>Visit the Useful Tips
Section<span class="style19 style15">&lt;</span><span class="style18 style14">/a</span><span class="style19
style15">&gt;</span></div>
<a href="i editor-links5.html" target="_blank" style="color:white"><button class="button">Try it Yourself</button></a> </div>
<hr color="#eeeeee“> <h2>Chapter Summary</h2> <ul>
<li>Use the HTML&nbsp;<strong>&lt;a&gt;</strong>&nbsp;element to define a link</li>
<li>Use the HTML&nbsp;<strong>href</strong>&nbsp;attribute to define the link address</li>
<li>Use the HTML&nbsp;<strong>target</strong>&nbsp;attribute to define where to open the linked document</li>
<li>Use the HTML&nbsp;<strong>&lt;img&gt;</strong>&nbsp;element (inside &lt;a&gt;) to use an image as a link</li>
<li>Use the HTML&nbsp;<strong>id</strong>&nbsp;attribute (id="<em>value</em>") to define bookmarks in a page</li>
<li>Use the HTML&nbsp;<strong>href&nbsp;</strong>attribute (href="#<em>value</em>") to link to the bookmark</li>
</ul> <a href="index.html" style="color:#4CAF50"><strong>
<h3 align="right">Next Chapter >></h3> </strong></a> </p></div>
Thank You
www.xlrays.com/xl
Xlrays
OnlineWebTutorials

More Related Content

What's hot

This is a test
This is a testThis is a test
This is a test
cmailhotos4
 
モダンなCSS設計パターンを考える
モダンなCSS設計パターンを考えるモダンなCSS設計パターンを考える
モダンなCSS設計パターンを考える
拓樹 谷
 
モダンなCSS設計パターンを考える
モダンなCSS設計パターンを考えるモダンなCSS設計パターンを考える
モダンなCSS設計パターンを考える
拓樹 谷
 
Making Links Magical Again with CSS
Making Links Magical Again with CSSMaking Links Magical Again with CSS
Making Links Magical Again with CSS
Jenn Lukas
 
Compass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS DeveloperCompass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS Developer
Wynn Netherland
 
Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)
gng542
 
Exp of mmt
Exp of mmtExp of mmt
Deepak Soni BCA First Year
Deepak Soni BCA First YearDeepak Soni BCA First Year
Deepak Soni BCA First Year
dezyneecole
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleErin M. Kidwell
 
How to Think Inside the Box: Programming Fixed Layout for E-Books
How to Think Inside the Box: Programming Fixed Layout for E-BooksHow to Think Inside the Box: Programming Fixed Layout for E-Books
How to Think Inside the Box: Programming Fixed Layout for E-Books
bisg
 
Presentation html5 css3 by thibaut
Presentation html5 css3 by thibautPresentation html5 css3 by thibaut
Presentation html5 css3 by thibaut
Thibaut Baillet
 
LESS is More
LESS is MoreLESS is More
LESS is Morejsmith92
 

What's hot (20)

This is a test
This is a testThis is a test
This is a test
 
Theme01
Theme01Theme01
Theme01
 
Theme04
Theme04Theme04
Theme04
 
モダンなCSS設計パターンを考える
モダンなCSS設計パターンを考えるモダンなCSS設計パターンを考える
モダンなCSS設計パターンを考える
 
Document
DocumentDocument
Document
 
モダンなCSS設計パターンを考える
モダンなCSS設計パターンを考えるモダンなCSS設計パターンを考える
モダンなCSS設計パターンを考える
 
Making Links Magical Again with CSS
Making Links Magical Again with CSSMaking Links Magical Again with CSS
Making Links Magical Again with CSS
 
Compass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS DeveloperCompass, Sass, and the Enlightened CSS Developer
Compass, Sass, and the Enlightened CSS Developer
 
Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)
 
CSS3 ...in 3D!
CSS3 ...in 3D!CSS3 ...in 3D!
CSS3 ...in 3D!
 
Exp of mmt
Exp of mmtExp of mmt
Exp of mmt
 
Deepak Soni BCA First Year
Deepak Soni BCA First YearDeepak Soni BCA First Year
Deepak Soni BCA First Year
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddle
 
Sass, Compass
Sass, CompassSass, Compass
Sass, Compass
 
shoubox script
shoubox scriptshoubox script
shoubox script
 
Dfdf
DfdfDfdf
Dfdf
 
Nananana
NanananaNananana
Nananana
 
How to Think Inside the Box: Programming Fixed Layout for E-Books
How to Think Inside the Box: Programming Fixed Layout for E-BooksHow to Think Inside the Box: Programming Fixed Layout for E-Books
How to Think Inside the Box: Programming Fixed Layout for E-Books
 
Presentation html5 css3 by thibaut
Presentation html5 css3 by thibautPresentation html5 css3 by thibaut
Presentation html5 css3 by thibaut
 
LESS is More
LESS is MoreLESS is More
LESS is More
 

Viewers also liked

Nutricion infantil
Nutricion infantilNutricion infantil
Nutricion infantil
Universidad de Oviedo
 
Plato del Buen Comer
Plato del Buen ComerPlato del Buen Comer
Plato del Buen Comer
Paul Cervantes Preciado
 
Alimentacion saludable y recreacion para niños
Alimentacion saludable y recreacion para niñosAlimentacion saludable y recreacion para niños
Alimentacion saludable y recreacion para niños
BETSABENICOL
 
Alimentación saludable para niños
Alimentación saludable para niñosAlimentación saludable para niños
Alimentación saludable para niñosnadxhelly
 
NUTRICION INFANTIL
NUTRICION INFANTILNUTRICION INFANTIL
NUTRICION INFANTILGladhys
 
Nutricción y salud power point
Nutricción y salud power pointNutricción y salud power point
Nutricción y salud power pointinesangulo
 
Alimentacion saludable
Alimentacion  saludableAlimentacion  saludable
Alimentacion saludable
clausobarzo
 
Presentacion de power point (la dieta saludable) elvimar salazar
Presentacion de power point (la dieta saludable) elvimar salazarPresentacion de power point (la dieta saludable) elvimar salazar
Presentacion de power point (la dieta saludable) elvimar salazar
Universidad Central de Venezuela
 
Nutricción Y Salud Power Point
Nutricción Y Salud Power PointNutricción Y Salud Power Point
Nutricción Y Salud Power Point
guest8c8360
 
Alimentacion Saludable
Alimentacion  SaludableAlimentacion  Saludable
Alimentacion SaludableDubardo
 

Viewers also liked (10)

Nutricion infantil
Nutricion infantilNutricion infantil
Nutricion infantil
 
Plato del Buen Comer
Plato del Buen ComerPlato del Buen Comer
Plato del Buen Comer
 
Alimentacion saludable y recreacion para niños
Alimentacion saludable y recreacion para niñosAlimentacion saludable y recreacion para niños
Alimentacion saludable y recreacion para niños
 
Alimentación saludable para niños
Alimentación saludable para niñosAlimentación saludable para niños
Alimentación saludable para niños
 
NUTRICION INFANTIL
NUTRICION INFANTILNUTRICION INFANTIL
NUTRICION INFANTIL
 
Nutricción y salud power point
Nutricción y salud power pointNutricción y salud power point
Nutricción y salud power point
 
Alimentacion saludable
Alimentacion  saludableAlimentacion  saludable
Alimentacion saludable
 
Presentacion de power point (la dieta saludable) elvimar salazar
Presentacion de power point (la dieta saludable) elvimar salazarPresentacion de power point (la dieta saludable) elvimar salazar
Presentacion de power point (la dieta saludable) elvimar salazar
 
Nutricción Y Salud Power Point
Nutricción Y Salud Power PointNutricción Y Salud Power Point
Nutricción Y Salud Power Point
 
Alimentacion Saludable
Alimentacion  SaludableAlimentacion  Saludable
Alimentacion Saludable
 

Similar to Xlrays online web tutorials

Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
Colin Loretz
 
Doctype html publi
Doctype html publiDoctype html publi
Doctype html publiEddy_TKJ
 
Corilennyg gmail-com-rsp2
Corilennyg gmail-com-rsp2Corilennyg gmail-com-rsp2
Corilennyg gmail-com-rsp2cori0506
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptx
Samay16
 
Css tips & tricks
Css tips & tricksCss tips & tricks
Css tips & tricks
anubavam-techkt
 
Webtech File.docx
Webtech File.docxWebtech File.docx
Webtech File.docx
gambleryeager
 
Fansihttp://www.ricepullers.in/FANSI
Fansihttp://www.ricepullers.in/FANSIFansihttp://www.ricepullers.in/FANSI
Fansihttp://www.ricepullers.in/FANSI
Narendra Modig
 
Fansihttp://www.ricepullers.in/FANSI
Fansihttp://www.ricepullers.in/FANSIFansihttp://www.ricepullers.in/FANSI
Fansihttp://www.ricepullers.in/FANSI
Narendra Modig
 
Bloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.noBloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.noHannee92
 
Simple Blue Blog Template XML 的副本
Simple Blue Blog Template XML 的副本Simple Blue Blog Template XML 的副本
Simple Blue Blog Template XML 的副本a5494535
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008tutorialsruby
 
Class 3 create an absolute layout with css abs position (aptana)
Class 3  create an absolute layout with css abs position (aptana)Class 3  create an absolute layout with css abs position (aptana)
Class 3 create an absolute layout with css abs position (aptana)Erin M. Kidwell
 
Supercharged HTML & CSS
Supercharged HTML & CSSSupercharged HTML & CSS
Supercharged HTML & CSS
Max Kraszewski
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieRafaela Souza
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieRafaela Souza
 
Css(handbook)
Css(handbook)Css(handbook)
Css(handbook)
MD. Anamul Haque
 

Similar to Xlrays online web tutorials (20)

Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
 
Doctype html publi
Doctype html publiDoctype html publi
Doctype html publi
 
Dfdf
DfdfDfdf
Dfdf
 
Corilennyg gmail-com-rsp2
Corilennyg gmail-com-rsp2Corilennyg gmail-com-rsp2
Corilennyg gmail-com-rsp2
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptx
 
Css tips & tricks
Css tips & tricksCss tips & tricks
Css tips & tricks
 
Webtech File.docx
Webtech File.docxWebtech File.docx
Webtech File.docx
 
Fansihttp://www.ricepullers.in/FANSI
Fansihttp://www.ricepullers.in/FANSIFansihttp://www.ricepullers.in/FANSI
Fansihttp://www.ricepullers.in/FANSI
 
Fansihttp://www.ricepullers.in/FANSI
Fansihttp://www.ricepullers.in/FANSIFansihttp://www.ricepullers.in/FANSI
Fansihttp://www.ricepullers.in/FANSI
 
Bloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.noBloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.no
 
Simple Blue Blog Template XML 的副本
Simple Blue Blog Template XML 的副本Simple Blue Blog Template XML 的副本
Simple Blue Blog Template XML 的副本
 
Tmx9
Tmx9Tmx9
Tmx9
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
Class 3 create an absolute layout with css abs position (aptana)
Class 3  create an absolute layout with css abs position (aptana)Class 3  create an absolute layout with css abs position (aptana)
Class 3 create an absolute layout with css abs position (aptana)
 
Supercharged HTML & CSS
Supercharged HTML & CSSSupercharged HTML & CSS
Supercharged HTML & CSS
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
 
Css by tanbircox
Css by tanbircoxCss by tanbircox
Css by tanbircox
 
Css(handbook)
Css(handbook)Css(handbook)
Css(handbook)
 

Recently uploaded

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 

Recently uploaded (20)

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 

Xlrays online web tutorials

  • 1. Xlrays Online Web Tutorials Developed By: Yogesh Gupta www.xlrays.com/xl Xlrays
  • 3. Index.html (Home Page) <html> <head> <link rel="icon" href="Images/XLrays-logo.png"> <title>XLrays Online Web Tutorials</title> <style> #header { height:120px; } #nav { background-color:#eeeeee; border: 1px solid #dddddd; width:200px; height:100%; float:left; padding:5px; } #section { float:left; padding:10px; padding:50px; } #section.right { float:left; padding:5px; padding:50px; }
  • 4. #footer { background-color:black; color:white; clear:both; text-align:center; padding:5px; } body { font-family:"Courier New", Courier, monospace; } .style1 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-large} .style9 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 100px; text-shadow: 3px 3px 5px #4CAF50; } .style9:hover { color: white; text-shadow: 1px 1px 2px black, 0 0 25px #4CAF50, 0 0 5px green; } .style12 {color: #444444} /* top nav bar */ ul.top { list-style-type: none; margin: 0; padding: 0; overflow: hidden; border: 1px solid #dddddd; background-color: #eeeeee; } li.top { float: right; } li a.top { display: block; color: #666; text-align: center; padding: 14px 16px; text-decoration: none; } Xlrays
  • 5. li a:hover:not(#tactive) { background-color: #555; } li a.tactive { color: white; background-color: #4CAF50; } /* end top nav bar */ .style13 {font-family: "Courier New", Courier, monospace; font-size: 57px; text-shadow: 3px 3px 5px #4CAF50; } .style13:hover { color: white; text-shadow: 1px 1px 2px black, 0 0 25px #4CAF50, 0 0 5px green; } /* left nav bar */ ul.nav { list-style-type: none; margin: 0; padding: 0; width: 200px; background-color: #eeeeee; } li a.nav { display: block; color: #000; padding: 8px 0 8px 16px; text-decoration: none; } li a.active { background-color: #4CAF50; color: white; } li a:hover:not(#active) { background-color: #555; color: white; } /* end left nav bar */ HTMLTutorials
  • 6. /* button */ .button { background-color: #4CAF50; /* Green */ border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; -webkit-transition-duration: 0.4s; /* Safari */ transition-duration: 0.4s; border-radius: 15px 50px; box-shadow: 0px 0px 50px #4CAF50; } .button:hover { box-shadow: 0 12px 16px 0 #4caf50,0 17px 50px 0 #4caf50; border-radius: 50px 15px; } /* box */ div.box { background-color: #eeeeee; width: 380px; padding: 0px; border: 0px solid #eeeeee; margin: 0px; border-radius: 15px 50px; } div.box:hover { box-shadow: 0px 0px 50px #4CAF50; border-radius: 50px 15px; }
  • 7. div.inner { background-color: white; padding:10px; border-radius: 15px 50px; border-left-style:solid; border-left-color:#4CAF50; border-right-style:solid; border-right-color:#4CAF50; } div.inner:hover { box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19); border-radius: 50px 15px; } .style14 {color: #0000FF} .style18 {color: #CC0000} a:link{ text-decoration:none; } a:hover { text-decoration:underline; } img:hover { box-shadow: 0px 0px 50px #4CAF50; } </style> </head> <body> <div id="header"> <a href="Index.html"> <img src="Images/XLrays-logo.png" width="120" height="120" hspace="50" align="left" ></a> <h3 class="style13">Online Web Tutorials</h3> <ul class="top"> <li class="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li> <li class="top"><a class="top" href="i editor.html" target="_blank">Online Editor</a></li> <li class="top"><a class="top" href="home.html">Html</a></li> <li class="top"><a class="top tactive" href="Index.html">Home</a></li> </ul> </div>
  • 8. <div id="nav"> <h2><center>HTML Tutorial</center></h2> <ul class="nav"> <li><a class="nav" href="i editor.html" target="_blank"><b>Online Editor</b></a></li> <li><a class="nav" href="home.html">HTML Home</a></li> <li><a class="nav" href="introduction.html">HTML Introduction</a></li> <li><a class="nav" href="html-editors.html">HTML Editors</a></li> <li><a class="nav" href="basic.html">HTML BASIC</a></li> <li><a class="nav" href="elements.html">HTML Elements</a></li> <li><a class="nav" href="attributes.html">HTML Attributes</a></li> <li><a class="nav" href="links.html">HTML Links</a></li> </ul> </ul> </div>
  • 9. <div class="style12" id="section"> <p align="center"><span class="style9">HTML</span><br> </p> <p class="style1" align="center">The language for building<br> web pages</p> <p><center><a href="home.html" style="color:white"> <button class="button button">Learn HTML</button></a></center></p> </div> <br><br><br><br> <div id="section" class="right box"> <h3><b> HTML Example:</b></h3> <div class="inner"> <p> <span class="style14">&lt;</span><span class="style18">html</span><span class="style14">&gt;</span><br> <span class="style14">&lt;</span><span class="style18">head</span><span class="style14">&gt;</span><br> <span class="style14">&lt;</span><span class="style18">title</span><span class="style14">&gt;</span>HTML Tutorial<span class="style14">&lt;</span><span class="style18">/title</span><span class="style14">&gt;</span><br> <span class="style14">&lt;</span><span class="style18">/head</span><span class="style14">&gt;</span> <br> <span class="style14">&lt;</span><span class="style18">body</span><span class="style14">&gt;</span> <p><span class="style14">&lt;</span><span class="style18">h1</span><span class="style14">&gt;</span>This is a heading<span class="style14">&lt;</span><span class="style18">/h1</span><span class="style14">&gt;</span><br> <span class="style14">&lt;</span><span class="style18">p</span><span class="style14">&gt;</span>This is a paragraph.<span class="style14">&lt;</span><span class="style18">/p</span><span class="style14">&gt;</span></p> <p><span class="style14">&lt;</span><span class="style18">/body</span><span class="style14">&gt;</span><br> <span class="style14">&lt;</span><span class="style18">/html</span><span class="style14">&gt;</span><br> </p> </p> </div> <a href="i editor-home.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a> </div>
  • 10. <div id="footer"> &copy; 2016 All Right Reserved | XLrays.com. </div> </body> </html>
  • 12. home.html <div class="style12" id="section"> <h1>HTML(5) Tutorial</h1> <p><a href="index.html" style="color:#4CAF50"><h3><strong><< XLrays Home</strong></h3></a></p> <img src="Images/pic_html5.gif" valign="middle" align="left"> <p>With HTML you can create your own Web site.<p> <p>This tutorial teaches you everything about HTML.<p> <p>HTML is easy to learn - You will enjoy it.</p><br><br> <hr color="#eeeeee"> <h2>Examples in Every Chapter</h2> <p>This HTML tutorial contains hundreds of HTML examples.</p> <p>With our online HTML editor, you can edit the HTML, and click on a button to view the result.</p> <div class="box"> <h3>Example</h3> <div class="inner"> <p> <span class="style17">&lt;</span><span class="style18 style16">html</span><span class="style17">&gt;</span><br> <span class="style17">&lt;</span><span class="style18">head</span><span class="style17">&gt;</span><br> <span class="style17">&lt;</span><span class="style18">title</span><span class="style17">&gt;</span>Page Title <span class="style17">&lt;</span><span class="style18">/title</span><span class="style17">&gt;</span><br> <span class="style17">&lt;</span><span class="style18">/head</span><span class="style17">&gt;</span> <br> <span class="style17">&lt;</span><span class="style18">body</span><span class="style17">&gt;</span> <p><span class="style17">&lt;</span><span class="style18">h1</span><span class="style17">&gt;</span>My First Heading<span class="style17">&lt;</span><span class="style18">/h1</span><span class="style17">&gt;</span><br> <span class="style17">&lt;</span><span class="style18">p</span><span class="style17">&gt;</span>My First Paragraph.<span class="style17">&lt;</span><span class="style18">/p</span><span class="style17">&gt;</span></p> <p><span class="style17">&lt;</span><span class="style18">/body</span><span class="style17">&gt;</span><br> <span class="style17">&lt;</span><span class="style18">/html</span><span class="style17">&gt;</span><br> </p> </p> </div> <a href="i editor-intro.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a> </div> <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src="Images/lamp.jpg" align="middle"> Click on the "Try it Yourself" button to see how it works.</p> <a href="introduction.html" style="color:#4CAF50"><b>Start learning HTML now!</b></a><strong> <h3 align="right"><a href="introduction.html" style="color:#4CAF50">Next Chapter >></h3></strong></a></p> </div>
  • 14. <div id="section"> <h1>HTML Introduction</h1> <p><a href="home.html" style="color:#4CAF50" ><h3><strong><< Previous Chapter</strong></h3></a></p> <hr width="100%" color="#eeeeee"> <h2>What is HTML?</h2> <p>HTML is a&nbsp;<strong>markup</strong>&nbsp;language for&nbsp;<strong>describing</strong>&nbsp;web documents (web pages).</p> <ul> <li>HTML stands for&nbsp;<strong>H</strong>yper&nbsp;<strong>T</strong>ext&nbsp;<strong>M</strong>arkup& nbsp;<strong>L</strong>anguage</li> <li>A markup language is a set of&nbsp;<strong>markup tags</strong></li> <li>HTML documents are described by&nbsp;<strong>HTML tags</strong></li> <li>Each HTML tag&nbsp;<strong>describes</strong>&nbsp;different document content</li> </ul> <hr width="100%" color="#eeeeee"> introduction.html
  • 15. <h2>HTML Example</h2> <div class="box"> <h3>A small HTML document:</h3> <div class="inner"> <p> <span class="style14">&lt;</span><span class="style18">html</span> <span class="style14">&gt;</span><br> <span class="style14">&lt;</span> <span class="style18">head</span><span class="style14">&gt;</span><br> <span class="style14">&lt;</span><span class="style18">title</span> <span class="style14">&gt;</span>Page Title <span class="style14">&lt; </span><span class="style18">/title</span><span class="style14">&gt; </span><br> <span class="style14">&lt;</span><span class="style18"> /head</span><span class="style14">&gt;</span> <br> <span class="style14"> &lt;</span><span class="style18">body</span><span class="style14">&gt;</span> <p><span class="style14">&lt;</span><span class="style18">h1</span> <span class="style14">&gt;</span>My First Heading<span class="style14"> &lt;</span><span class="style18">/h1</span><span class="style14">&gt;</span><br> <span class="style14">&lt;</span><span class="style18">p</span><span class="style14"> &gt;</span>My First Paragraph.<span class="style14">&lt;</span><span class="style18"> /p</span><span class="style14">&gt;</span></p> <p><span class="style14">&lt;</span><span class="style18">/body</span> <span class="style14">&gt;</span><br><span class="style14">&lt;</span> <span class="style18">/html</span><span class="style14">&gt;</span><br> </p></p></div> <a href="i editor-intro.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a> </div> <hr width="100%" color="#eeeeee"> <h2>Example Explained</h2> <ul> <li>The&nbsp;<strong>DOCTYPE</strong>&nbsp;declaration defines the document type to be HTML</li> <li>The text between&nbsp;<strong>&lt;html&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/html&gt;</strong>&nbsp;describes an HTML document</li> <li>The text between&nbsp;<strong>&lt;head&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/head&gt;</strong>&nbsp;provides information about the document</li> <li>The text between&nbsp;<strong>&lt;title&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/title&gt;</strong>&nbsp;provides a title for the document</li> <li>The text between&nbsp;<strong>&lt;body&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/body&gt;</strong>&nbsp;describes the visible page content</li> <li>The text between&nbsp;<strong>&lt;h1&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/h1&gt;</strong>&nbsp;describes a heading</li> <li>The text between&nbsp;<strong>&lt;p&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/p&gt;</strong>&nbsp;describes a paragraph</li> </ul> <p>Using this description, a web browser can display a document with a heading and a paragraph.</p> <hr width="100%" color="#eeeeee">
  • 16. <h2>HTML Tags</h2> <p>HTML tags are&nbsp;<strong>keywords</strong>&nbsp;(tag names) surrounded by&nbsp;<strong>angle brackets</strong>:</p> <div><b><span class="style14">&lt;</span><span class="style18">tagname</span><span class="style14">&gt;</span>content<span class="style14">&lt;</span><span class="style18">/tagname</span><span class="style14">&gt;</span></b></div> <ul> <li>HTML tags normally come&nbsp;<strong>in pairs</strong>&nbsp;like &lt;p&gt; and &lt;/p&gt;</li> <li>The first tag in a pair is the&nbsp;<strong>start tag,</strong>&nbsp;the second tag is the&nbsp;<strong>end tag</strong></li> <li>The end tag is written like the start tag, but with a&nbsp;<strong>slash</strong>&nbsp;before the tag name</li> </ul> <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src="Images/lamp.jpg" valign="middle" align="left"> The start tag is often called the opening tag. The end tag is often called the closing tag. </p> <hr width="100%" color="#eeeeee"> <h2>Web Browsers</h2> <p>The purpose of a web browser (Chrome, IE, Firefox, Safari) is to read HTML documents and display them.</p><p>The browser does not display the HTML tags, but uses them to determine how to display the document:</p> <img src="Images/img_chrome.png"> <hr width="100%" color="#eeeeee"> <h2>HTML Page Structure</h2> <p>Below is a visualization of an HTML page structure:</p> <div class="box1"> &lt;html&gt; <br> <div class="box2"> &lt;head&gt; <div class="box2">&lt;title&gt;Page title&lt;/title&gt;</div> &lt;/head&gt; </div> <div class="box3"> &lt;body&gt; <div class="box3">&lt;h1&gt;This is a heading&lt;/h1&gt;</div> <div class="box3">&lt;p&gt;This is a paragraph.&lt;/p&gt;</div> <div class="box3">&lt;p&gt;This is another paragraph.&lt;/p&gt;</div> &lt;/body&gt; </div> &lt;/html&gt; </div>
  • 17. <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src="Images/lamp.jpg" valign="middle"> Only the &lt;body&gt; area (the white area) is displayed by the browser.</p> <hr width="100%" color="#eeeeee"> <h2>HTML Versions</h2> <p>Since the early days of the web, there have been many versions of HTML:</p> <table> <tr> <th>Version</th> <th>Year</th> </tr> <tr> <td>HTML</td> <td>1991</td> </tr> <tr> <td>HTML 2.0</td> <td>1995</td> </tr> <tr> <td>HTML 3.2</td> <td>1997</td> </tr> <tr> <td>HTML 4.01</td> <td>1999</td> </tr> <tr> <td>HTML 4.01</td> <td>1999</td> </tr> <tr> <td>HTML 5</td> <td>2014</td> </tr> </table> <p><a href="html-editors.html" style="color:#4CAF50"><strong><h3 align="right">Next Chapter >></h3></strong></a></p> </div>
  • 19. html-editors.html <div class="style12" id="section"> <h1>HTML Editors</h1> <p><a href="introduction.html" style="color:#4CAF50"><h3><strong><< Previous Chapter</strong></h3></a></p> <hr color="#eeeeee"> <h2>Write HTML Using Notepad or TextEdit</h2> <p>HTML can be edited by using professional HTML editors like:</p> <ul> <li>Microsoft WebMatrix</li> <li>Sublime Text</li> </ul> <p>However, for learning HTML we recommend a text editor like Notepad (PC) or TextEdit (Mac).</p> <p>We believe using a simple text editor is a good way to learn HTML.</p> <p>Follow the 4 steps below to create your first web page with Notepad.</p> <hr color="#eeeeee"> <h2>Step 1: Open Notepad</h2> <p>To open Notepad in Windows 7 or earlier:</p> <p>Click&nbsp;<strong>Start</strong>&nbsp;(bottom left on your screen). Click&nbsp;<strong>All Programs </strong>. Click&nbsp;<strong>Accessories</strong>. Click&nbsp;<strong>Notepad</strong>.</p> <p>To open Notepad in Windows 8 or later:</p> <p>Open the&nbsp;<strong>Start Screen</strong> &nbsp;(the window symbol at the bottom left on your screen). Type&nbsp;<strong>Notepad</strong>.</p> <hr color="#eeeeee"> <h2>Step 2: Write Some HTML</h2> <p>Write or copy some HTML into Notepad.</p>
  • 20. <div class="box"> <div class="inner"><span class="style19">&lt;</span><span class="style18">html</span><span class="style19">&gt;</span><br /> <span class="style19">&lt;</span><span class="style18">body</span><span class="style19">&gt;</span><br/><br/> <span class="style19">&lt;</span><span class="style18">h1</span><span class="style19">&gt;</span>My First Heading<span class="style19">&lt;</span><span class="style18">/h1</span><span class="style19">&gt;</span><br /> <br /> <span class="style19">&lt;</span><span class="style18">p</span><span class="style19">&gt;</span>My first paragraph.<span class="style19">&lt;</span><span class="style18">/p</span><span class="style19">&gt;</span><br /> <br /> <span class="style19">&lt;</span> <span class="style18">/body</span> <span class="style19">&gt;</span><br /> <span class="style19">&lt;</span> <span class="style18">/html</span> <span class="style19">&gt;</span> </div> </div><br> <img src="Images/img_notepad.PNG" /> <hr color="#eeeeee">
  • 21. <h2>Step 3: Save the HTML Page</h2> <p>Save the file on your computer.</p> <p>Select&nbsp;<strong>File &gt; Save as</strong>&nbsp;in the Notepad menu.</p> <p>Name the file &quot;index.html&quot; or any other name ending with html or htm.</p> <p>UTF-8 is the preferred encoding for HTML files.</p> <p>ANSI encoding covers US&nbsp;and Western European characters only.</p> <img src="Images/img_saveas.png" /> <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src="Images/lamp.jpg" valign="middle" align="left">You can use either .htm or .html as file extension. There is no difference, it is up to you.</p> <hr color="#eeeeee"> <h2>Step 4: View HTML Page in Your Browser</h2> <p>Open the saved HTML file in your favorite browser. The result will look much like this:</p> <img src="Images/img_chrome (1).png" /> <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src="Images/lamp.jpg" valign="middle" align="left">To open a file in a browser, double click on the file, or right-click, and choose open with.</p> <p><a href="basic.html" style="color:#4CAF50"><strong> <h3 align="right">Next Chapter >></h3></strong></a></p> </div>
  • 23. basic.html <div class="style12" id="section"> <h1>HTML Basic Examples</h1> <p><a href="html-editors.html" style="color:#4CAF50"><h3><strong> << Previous Chapter</strong></h3></a></p> <hr color="#eeeeee"> <p>Don't worry if these examples use tags you have not learned.</p> <p>You will learn about them in the next chapters.</p> <hr color="#eeeeee"> <h2>HTML Documents</h2> <p>The HTML document itself begins with&nbsp;<strong>&lt;html&gt; </strong> &nbsp;and ends with&nbsp;<strong>&lt;/html&gt;</strong>.</p> <p>The visible part of the HTML document is between &nbsp; <strong> &lt; body&gt;</strong>&nbsp;and&nbsp;<strong>&lt;/body&gt;</strong>. </p> <div class="box"> <h3><b> Example:</b></h3> <div class="inner"> <p><span class="style15">&lt;</span><span class="style14">html</span><span class="style15">&gt;</span><br> <span class="style15">&lt;</span><span class="style14">body</span><span class="style15">&gt;</span><br> <br> <span class="style15">&lt;</span><span class="style14">h1</span><span class="style15">&gt;</span>My First Heading<span class="style15">&lt;</span><span class="style14">/h1</span><span class="style15">&gt;</span><br> <br> <span class="style15">&lt;</span><span class="style14">p</span><span class="style15">&gt;</span>My first paragraph.<span class="style15">&lt;</span><span class="style14">/p</span><span class="style15">&gt;</span><br> <br> <span class="style15">&lt;</span><span class="style14">/body</span><span class="style15">&gt;</span><br> <span class="style15">&lt;</span><span class="style14">/html</span><span class="style15">&gt;</span> </div> <a href="i editor-intro.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a> </div> <hr color="#eeeeee">
  • 24. <h2>HTML Headings</h2> <p>HTML headings are defined with the&nbsp;<strong>&lt;h1&gt; </strong>to <strong>&lt;h6&gt;</strong>&nbsp;tags:</p> <div class="box"> <h3><b> Example:</b></h3> <div class="inner"> <p><span class="style15">&lt;</span><span class="style14">h1</span><span class="style15">&gt;</span>This is a heading<span class="style15">&lt;</span><span class="style14">/h1</span><span class="style15">&gt;</span> <p><span class="style15">&lt;</span><span class="style14">h2</span><span class="style15">&gt;</span>This is a heading<span class="style15">&lt;</span><span class="style14">/h2</span><span class="style15">&gt;</span> <p><span class="style15">&lt;</span><span class="style14">h3</span><span class="style15">&gt;</span>This is a heading<span class="style15">&lt;</span><span class="style14">/h3</span><span class="style15">&gt;</span><br> <br> </div> <a href="i editor-basic2.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a></div> <hr color="#eeeeee"> <h2>HTML Paragraphs</h2> <p>HTML paragraphs are defined with the&nbsp;<strong>&lt;p&gt; </strong>&nbsp;tag:</p> <div class="box"> <h3><b> Example:</b></h3> <div class="inner"> <p><span class="style15">&lt;</span><span class="style14">p </span><span class="style15">&gt;</span>This is a paragraph. <span class="style15">&lt;</span><span class="style14">/p</span> <span class="style15">&gt;</span> <p><span class="style15">&lt;</span><span class="style14">p </span><span class="style15">&gt;</span>This is another paragraph.<span class="style15">&lt;</span><span class="style14"> /p</span><span class="style15">&gt;</span><br> <br> </div> <a href="i editor-basic3.html" target="_blank" style="color:white"> <button class="button button">Try it Yourself</button></a></div> <hr color="#eeeeee">
  • 25. <h2>HTML Links</h2> <p>HTML links are defined with the&nbsp;<strong>&lt;a&gt;</strong>&nbsp;tag:</p> <div class="box“> <h3><b> Example:</b></h3> <div class="inner"> <p><span class="style15">&lt;</span><span class="style14">a href=<span class="style15">&quot;http://www.xlrays.com/xl&quot;</span></span><span class="style15">&gt;</span>This is a link<span class="style15">&lt;</span><span class="style14">/a</span><span class="style15">&gt;</span><br> <br> </div> <a href="i editor-basic4.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a></div> <p>The link's destination is specified in the&nbsp;<strong>href attribute</strong>.&nbsp;</p> <p>Attributes are used to provide additional information about HTML elements.</p> <hr color="#eeeeee“> <h2>HTML Images</h2> <p>HTML images are defined with the&nbsp;<strong>&lt;img&gt; </strong>&nbsp;tag.</p> <p>The source file (<strong>src</strong>), alternative text (<strong>alt</strong>), and size (<strong>width </strong>&nbsp;and&nbsp;<strong>height</strong>) are provided as&nbsp;<strong>attributes</strong>:</p> <div class="box"> <h3><b> Example:</b></h3> <div class="inner"> <p><span class="style15">&lt;</span><span class="style14"> <span class="style15">&quot;ImagesXLrays-logo.png&quot; <span class="style14">alt=</span>&quot;XLrays.com&quot; </span> </span><span class="style15"><span class="style14">width=</span> &quot;104&quot; <span class="style14">height=</span>&quot;110& quot;&gt;</span><br> <br> </div> <a href="i editor-basic5.html" target="_blank" style="color:white"> <button class="button button">Try it Yourself</button></a></div> <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src= "Images/lamp.jpg" valign="middle" align="left">You will learn more about attributes in a later chapter.</p> <p><a href="elements.html" style="color:#4CAF50"><strong><h3 align="right">Next Chapter >> </h3></strong></a></p></div>
  • 27. elements.html <div class="style12" id="section"> <h1>HTML Elements </h1> <p><a href="basic.html" style="color:#4CAF50"><h3><strong><< Previous Chapter</strong></h3></a></p> <hr color="#eeeeee"> <p>HTML&nbsp;<strong>documents</strong> &nbsp;are made up by HTML&nbsp;<strong> elements</strong>.</p> <hr color="#eeeeee"> <h2>HTML Elements</h2> <p>HTML elements are written with a &nbsp;<strong>start</strong>&nbsp;tag, with an&nbsp;<strong>end</strong>& nbsp;tag, with the&nbsp;<strong> content</strong>&nbsp;in between:</p> <h3><span class="style15">&lt;</span> <span class="style14">tagname</span> <span class="style15">&gt;</span>content<span class="style15">&lt;</span><span class="style14">/tagname</span><span class="style15">&gt;</span></h3> <p>The HTML&nbsp;<strong>element</strong>&nbsp;is everything from the start tag to the end tag:</p> <h3><span class="style15">&lt;</span><span class="style14">p</span><span class="style15">&gt;</span>My first HTML paragraph.<span class="style15">&lt;</span><span class="style14">/p</span><span class="style15">&gt;</span></h3>
  • 28. <table> <tr> <th>Start Tag</th> <th>Element Content</th> <th>End Tag</th> </tr> <tr> <td>&lt;h1&gt;</td> <td>My First Heading</td> <td>&lt;/h1&gt;</td> </tr> <tr> <td>&lt;p&gt;</td> <td>Mt First Paragraph.</td> <td>&lt;/p&gt;</td> </tr> <tr> <td>&lt;br&gt;</td> <td></td> <td></td> </tr></table> <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src= "Images/lamp.jpg" valign="middle" align="top"> Some HTML Elements do not have an end tag.</p> <hr color="#eeeeee“> <h2> Nested HTML Elements</h2> <p>HTML elements can be nested (elements can contain elements).</p> <p>All HTML documents consist of nested HTML elements.</p> <p>This example contains 4 HTML elements:</p> <div class="box“> <h3><b> Example:</b></h3> <div class="inner"> <p><span class="style15">&lt;</span><span class="style14">html</span><span class="style15">&gt;</span><br> <span class="style15">&lt;</span><span class="style14">body</span><span class="style15">&gt;</span><br> <br> <span class="style15">&lt;</span><span class="style14">h1</span><span class="style15">&gt;</span>My First Heading<span class="style15">&lt;</span><span class="style14">/h1</span><span class="style15">&gt;</span> <p><span class="style15">&lt;</span><span class="style14">p</span><span class="style15">&gt;</span>My first paragraph.<span class="style15">&lt;</span><span class="style14">/p</span><span class="style15">&gt;</span><br> <br> <span class="style15">&lt;</span><span class="style14">/body</span><span class="style15">&gt;</span><br> <span class="style15">&lt;</span><span class="style14">/html</span><span class="style15">&gt;</span> </div> <a href="i editor-intro.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a></div>
  • 29. <hr color="#eeeeee"> <h2>HTML Example Explained</h2> <p>The&nbsp;<strong>&lt;html&gt;</strong>&nbsp;element defines the&nbsp;<strong> whole document</strong>.</p><p>It has a&nbsp;<strong>start</strong>&nbsp;tag &lt; html&gt; and an&nbsp;<strong>end</strong>&nbsp;tag &lt;/html&gt;.</p><p>The element &nbsp;<strong>content</strong>&nbsp;is another HTML element (the &lt;body&gt; element) .</p> <div class="box"> <div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14"> html</span><span class="style19 style15">&gt;</span><br /> <span class="style19 style15">&lt;</span><span class="style18 style14">body</span><span class="style19 style15">&gt;</span><br /><br /> <span class="style19 style15">&lt;</span><span class="style18 style14">h1</span><span class="style19 style15">&gt;</span>My First Heading<span class="style19 style15">&lt; </span><span class="style18 style14">/h1</span><span class="style19 style15">&gt; </span><br /> <br /> <span class="style19 style15">&lt;</span><span class="style18 style14">p</span><span class="style19 style15">&gt;</span>My first paragraph.<span class="style19 style15">&lt;</span><span class="style18 style14">/p</span><span class="style19 style15">&gt;</span><br /> <br /> <span class="style19 style15">&lt;</span><span class="style18 style14">/body</span><span class="style19 style15">&gt;</span><br /> <span class="style19 style15">&lt;</span><span class="style18 style14">/html</span><span class="style19 style15">&gt;</span> </div> </div> <p>The&nbsp;<strong>&lt;body&gt;</strong>&nbsp;element defines the&nbsp;<strong>document body</strong>.</p> <p>It has a&nbsp;<strong>start</strong>&nbsp;tag &lt;body&gt; and an&nbsp;<strong>end</strong>&nbsp;tag &lt;/body&gt;.</p> <p>The element&nbsp;<strong>content</strong>&nbsp;is two other HTML elements (&lt;h1&gt; and &lt;p&gt;).</p> <div class="box“> <div class="inner"> <p><span class="style19 style15">&lt;</span><span class="style18 style14">body</span><span class="style19 style15">&gt;</span><br /> <br /> <span class="style19 style15">&lt;</span><span class="style18 style14">h1</span><span class="style19 style15">&gt;</span>My First Heading<span class="style19 style15">&lt;</span><span class="style18 style14">/h1</span><span class="style19 style15">&gt;</span> <br /> <span class="style19 style15">&lt;</span><span class="style18 style14">p</span><span class="style19 style15">&gt;</span>My first paragraph.<span class="style19 style15">&lt;</span><span class="style18 style14">/p</span><span class="style19 style15">&gt;</span></p> <p><span class="style19 style15">&lt;</span><span class="style18 style14">/body</span><span class="style19 style15">&gt;</span></p> </div> </div>
  • 30. <p>The&nbsp;<strong>&lt;h1&gt;</strong>&nbsp;element defines a&nbsp;<strong>heading</strong>.</p> <p>It has a&nbsp;<strong>start</strong>&nbsp;tag &lt;h1&gt; and an&nbsp;<strong>end</strong>&nbsp;tag &lt;/h1&gt;.</p> <p>The element&nbsp;<strong>content</strong>&nbsp;is: My First Heading.</p> <div class="box"> <div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14">h1</span><span class="style19 style15">&gt;</span>My First Heading<span class="style19 style15">&lt;</span><span class="style18 style14">/h1</span><span class="style19 style15">&gt;</span></div> </div> <p>The&nbsp;<strong>&lt;p&gt;</strong>&nbsp;element defines a&nbsp;<strong>paragraph</strong>.</p> <p>It has a&nbsp;<strong>start</strong>&nbsp;tag &lt;p&gt; and an&nbsp;<strong>end</strong>&nbsp; tag &lt;/p&gt;.</p> <p>The element&nbsp;<strong> content</strong>&nbsp;is: My first paragraph.</p> <p>&nbsp;</p> <div class="box"> <div class="inner"><span class=“ style19 style15">&lt;</span><span class=“ style18 style14">p</span><span class=“ style19 style15">&gt;</span>My first paragraph.<span class="style19 style15"> &lt;</span><span class="style18 style14"> /p</span><span class="style19 style15"> &gt;</span></div> </div> <hr color="#eeeeee“> <h2>Don't Forget the End Tag</h2> <p>Some HTML elements will display correctly, even if you forget the end tag:</p>
  • 31. <h2>Empty HTML Elements</h2> <p>HTML elements with no content are called empty elements.</p> <p>&lt;br&gt; is an empty element without a closing tag (the &lt;br&gt; tag defines a line break).</p> <p>Empty elements can be "closed" in the opening tag like this: &lt;br /&gt;.</p> <p>HTML5 does not require empty elements to be closed. But if you want stricter validation, or you need to make your document readable by XML parsers, you should close all HTML elements.</p> <hr color="#eeeeee"> <h2>HTML Tip: Use Lowercase Tags</h2> <p>HTML tags are not case sensitive: &lt;P&gt; means the same as &lt;p&gt;.</p> <p>The HTML5 standard does not require lowercase tags, but W3C&nbsp;<strong>r ecommends</strong>&nbsp;lowercase in HTML4, and&nbsp;<strong>demands</strong> lowercase for stricter document types like XHTML. </p> <p style="border-style:solid; border-width:thin; Border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src=“ Images/lamp.jpg" valign="middle"> At XLrays we always use lowercase tags.</p> <a href="attributes.html" style=“ color:#4CAF50"><strong><h3 align="right"> Next Chapter >></h3></strong></a></p> </div>
  • 32. attributes.html <div class="style12" id="section"> <h1>HTML Attributes </h1> <p><a href="elements.html" style="color:#4CAF50"><h3><strong><< Previous Chapter </strong></h3></a></p> <hr color="#eeeeee"> <p>HTML&nbsp;<strong>documents</strong>&nbsp;are made up by HTML&nbsp; <strong>elements</strong>.</p> <hr color="#eeeeee"> <h2>HTML Attributes</h2> <ul> <li>HTML elements can have&nbsp;<strong>attributes</strong></li> <li>Attributes provide&nbsp;<strong>additional information</strong>&nbsp;about an element</li> <li>Attributes are always specified in&nbsp;<strong>the start tag </strong></li> <li>Attributes come in name/value pairs like:&nbsp;<strong>name= "value"</strong></li> </ul> <h2>The lang Attribute</h2> <p>The document language can be declared in the&nbsp;<strong>&lt;html&gt; </strong>&nbsp;tag.</p> <p>The language is declared in the&nbsp;<strong>lang </strong>&nbsp;attribute.</p> <p>Declaring a language is important for accessibility applications (screen readers) and search engines:</p> <div class="box"> <div class="inner"><span class="style15">&lt;</span><span class="style16">html lang=</span><span class="style15">"en-US"&gt;</span><br /> <span class="style15"> &lt;</span><span class="style16">body</span><span class="style15">&gt;</span><br /> <br /> <span class="style15">&lt;</span><span class="style16">h1</span><span class="style15">&gt;</span>My First Heading<span><span class="style15">&lt;</span><span class="style16">/h1</span></span><span class="style15">&gt;</span><br /> <br /> <span class="style15">&lt;</span><span class="style16">p</span><span class="style15">&gt;</span>My first paragraph.<span class="style15">&lt;</span><span class="style16">/p</span><span class="style15">&gt;</span><br /> <br /> <span class="style15">&lt;</span><span class="style16">/body</span><span class="style15">&gt;</span><br /> <span class="style15">&lt;</span><span class="style16">/html</span><span class="style15">&gt;</span></div></div> <p>The first two letters specify the language (en). If there is a dialect, use two more letters (US).</p> <hr color="#eeeeee">
  • 33. <div class="box“> <h3><b> Example:</b></h3> <div class="inner"> <p title="About XLrays"><span class="style15">&lt;</span><span class=“ style16">p&nbsp;title=</span><span class="style15">"About XLrays "&gt; </span><br> XLrays is a web developer's site.<br> It provides tutorials and references covering<br> HTML of web programming.<br> <span class="style15">&lt;</span><span class="style16">/p</span> <span class="style15">&gt;</span></div> <a href="i editor-attributes.html" target="_blank" style="color:white"> <button class="button button">Try it Yourself</button></a></div> <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src= "Images/lamp.jpg" valign="middle" align="left"> When you move the mouse over the element, the title will be displayed as a tooltip.</p> <hr color="#eeeeee“><h2>The href Attribute</h2> <p>HTML links are defined with the&nbsp;<strong>&lt;a&gt;</strong> &nbsp;tag. The link address is specified in the&nbsp;<strong>href</strong> &nbsp;attribute:</p><div class="box“> <h3><b> Example:</b></h3> <div class="inner“> <p title="About XLrays"><span class="style15">&lt; </span><span class="style16">a&nbsp;href=</span><span class="style15">"http://www.xlrays.com/xl"&gt;</span>This is a link<span class="style15">&lt;</span><span class="style16">/a</span><span class="style15">&gt;</span> </div> <a href="i editor-basic4.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a></div><br> You will learn more about links and the &lt;a&gt; tag later in this tutorial. <hr color="#eeeeee“><h2>Size Attributes</h2><p>HTML images are defined with the&nbsp;<strong>&lt;img&gt;</strong>&nbsp;tag.</p> <p>The filename of the source (<strong>src</strong>), and the size of the image (<strong>width</strong>&nbsp;and&nbsp;<strong>height</strong>) are all provided as&nbsp;<strong>attributes</strong>:</p <a href="links.html" style="color:#4CAF50"><strong><h3 align="right">Next Chapter >></h3> </strong></a></p></div>
  • 35. links.html <div class="style12" id="section"> <h1>HTML Links</h1> <hr color="#eeeeee"> Links are found in nearly all web pages. Links allow users to click their way from page to page. <hr color="#eeeeee"> <h2>HTML Links - Hyperlinks</h2> <p>HTML links are hyperlinks. </p> <p>A hyperlink is a text or an image you can click on, and jump to another document.</p> <hr color="#eeeeee"> <h2>HTML Links - Syntax</h2> <p>In HTML, links are defined with the&nbsp;<strong>&lt;a&gt; </strong>&nbsp;tag:</p> <div class="box"> <div class="inner"><span class="style19 style15">&lt;</span> <span class="style18 style14">a href=<span class="style15"> &quot;url&quot;</span></span><span class="style19 style15">&gt;</span>Link text <span class="style19 style15">&lt;</span><span class="style18 style14">/a</span><span class="style19 style15">&gt;</span></div> </div> <br> <div class="box“> <h3><b> Example:</b></h3> <div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14">a href=<span class="style15">&quot;http://www.xlrays.com/xl&quot;</span></span><span class="style19 style15">&gt;</span>This is a link<span class="style19 style15">&lt;</span><span class="style18 style14">/a</span><span class="style19 style15">&gt;</span></div> <a href="i editor-basic4.html" target="_blank" style="color:white"><button class="button button">Try it Yourself</button></a></div>
  • 36. <p>The&nbsp;<strong>href</strong>&nbsp;attribute specifies the destination address (http://www.xlrays.com/xl)</p> <p>The&nbsp;<strong>link text</strong>&nbsp;is the visible part (Visit our HTML tutorial).</p> <p>Clicking on the link text, will send you to the specified address.</p> <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src="Images/lamp.jpg" valign="middle" align="left">The link text does not have to be text. It can be an HTML image or any other HTML element.</p> <p style="border-style:solid; border-width:thin; border-color:#cccccc; border-spacing:50px; padding: 10px; width:800px" ><img src="Images/lamp.jpg" valign="middle" align="left">Without a trailing slash on subfolder addresses, you might generate two requests to the server. Many servers will automatically add a trailing slash to the address, and then create a new request.</p> <hr color="#eeeeee“> <h2>Local Links</h2> <p>The example above used an absolute URL (A full web address ).</p> <p>A local link (link to the same web site) is specified with a relative URL (without http://www....).</p> <div class="box“> <h3><b> Example:</b></h3> <div class="inner"><span class="style19 style15">&lt;</span> <span class="style18 style14">a href=<span class="style15">& quot;introduction.html&quot;</span></span><span class=“ style19 style15">&gt;</span>HTML Introduction <span class= "style19 style15">&lt;</span><span class="style18 style14">/a </span><span class="style19 style15">&gt;</span></div> <a href="i editor-links.html" target="_blank" style=“ color:white"><button class="button button">Try it Yourself </button></a></div> <hr color="#eeeeee“> <h2>HTML Links – Colors</h2> <p>When you move the mouse over a link, two things will normally happen:</p> <ul> <li>The mouse arrow will turn into a little hand</li> <li>The color of the link element will change</li> </ul> <p>By default, a link will appear like this (in all browsers):</p> <ul><li>An unvisited link is underlined and blue </li> <li>A visited link is underlined and purple</li> <li>An active link is underlined and red</li> </ul>
  • 37. <p>You can change the default colors, by using styles:</p> <div class="box“> <h3><b> Example:</b></h3> <div class="inner"> <p><span class="style14">&lt;style&gt;</span><br><span class="style14">a:link&nbsp;</span>&nbsp;&nbsp;&nbsp;{<span class="style14">color:</span><span class="style15">green;</span>&nbsp;<span class="style14">background- color:</span><span class="style15">transparent;</span>&nbsp;<span class="style14">text-decoration:</span><span class= "style15"> none</span>} <br><br> <span class="style14">a:visited</span>&nbsp;{<span class="style14">color:</span><span class="style15"> pink;</span> &nbsp;<span class="style14">background- color:</span><span class="style15">transparent;</span>&nbsp;<span class="style14">text-decoration:</span><span class="style15">none</span>}<br><br><span class="style14">a:hover</span>&nbsp;&nbsp;&nbsp;{<span class="style14">color:</span><span class="style15">red;</span>&nbsp;<span class="style14">background- color:</span><span class="style15">transparent;</span>&nbsp;<span class="style14">text-decoration:</span><span class="style15">underline </span>}<br><br><span class="style14">a:active</span>&nbsp;&nbsp;{<span class="style14">color:</span><span class="style15">yellow;</span>&nbsp;<span class="style14">background- color:</span><span class="style15">transparent; </span>&nbsp;<span class="style14">text-decoration:</span><span class="style15">underline</span>}<br><span class="style14"> &lt;/style&gt;</span></p> </div> <a href="i editor-links2.html" target="_blank" style="color:white"><button class="button">Try it Yourself</button></a></div> <hr color="#eeeeee“> <h2>HTML Links - The target Attribute</h2> <p>The&nbsp;<strong>target </strong>&nbsp;attribute specifies where to open the linked document.</p> <p>This example will open the linked document in a new browser window or in a new tab:</p> <div class="box“> <h3><b> Example:</b></h3> <div class="inner"><span class="style19 style15">&lt;</span> <span class="style18 style14">a href=<span class="style15">&quot; http://www.xlrays.com/xl&quot; <span class="style14">target= </span>"_blank"</span></span><span class="style19 style15"> &gt;</span>Visit XLrays!<span class="style19 style15">&lt;</span> <span class="style18 style14">/a</span><span class="style19 style15"> &gt;</span></div> <a href="i editor-links3.html" target="_blank" style="color:white"><button class="button">Try it Yourself</button> </a></div>
  • 38. <table> <tr> <th>Target Value</th> <th>Description</th> </tr> <tr> <td>_blank</td> <td>Opens the linked document in a new window or tab</td> </tr> <tr> <td>_self</td> <td>Opens the linked document in the same frame as it was clicked (this is default)</td> </tr> <tr> <td>_parent</td> <td>Opens the linked document in the parent frame</td> </tr> <tr> <td>_top</td> <td>Opens the linked document in the full body of the window</td> </tr> <tr> <td>framename</td> <td>Opens the linked document in a named frame</td> </tr></table><br> <hr color="#eeeeee"> <h2>HTML Links - Image as Link </h2> <p>It is common to use images as links:</p> <div class="box"> <h3><b> Example:</b></h3> <div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14">a href=<span class="style15">&quot;index.html&quot;</span></span><span class="style19 style15">&gt;</span><br> <span class="style15">&lt;</span><span class="style14">img&nbsp;src=</span><span class="style15">"Images/smiley.gif"</span>&nbsp;<span class="style14">alt=</span><span class="style15">"HTML tutorial"&gt;</span><br> <span class="style19 style15">&lt;</span><span class="style18 style14">/a</span><span class="style19 style15">&gt;</span></div> <a href="i editor-links4.html" target="_blank" style="color:white"><button class="button">Try it Yourself</button></a></div>
  • 39. <hr color="#eeeeee“> <h2>HTML Links - Create a Bookmark</h2> <p>HTML bookmarks are used to allow readers to jump to specific parts of a Web page.</p> <p>Bookmarks are practical if your website has long pages.</p> <p>To make a bookmark, you must first create the bookmark, and then add a link to it.</p> <p>When the link is clicked, the page will scroll to the location with the bookmark.</p> <h2>Example</h2> <p>First, create a bookmark with the id attribute:</p> <div class="box"> <div class="inner"><span class="style19 style15">&lt;</span><span class="style14">h2&nbsp;id= </span><span class="style15">"tips"</span><span class="style19 style15">&gt;</span >Useful Tips Section<span class="style19 style15">&lt;</span><span class="style18 style14">/h2</span><span class="style19 style15">&gt;</span></div> </div><br>Then, add a link to the bookmark ("Useful Tips Section"), from within the same page:<br><br> <div class="box“> <div class="inner"><span class="style19 style15">&lt;</span><span class="style14">a&nbsp;href=</span><span class="style15">"tips"</span><span class="style19 style15">&gt;</span >Visit the Useful Tips Section<span class="style19 style15">&lt;</span> <span class="style18 style14">/a</span><span class="style19 style15">&gt;</span></div> </div> <br> Or, add a link to the bookmark ("Useful Tips Section"), from another page: <br><br> <div class="box“> <h3><b> Example:</b></h3> <div class="inner"><span class="style19 style15">&lt;</span><span class="style18 style14">a href= <span class="style15">&quot;html_tips.html#tips&quot;</span></span><span class="style19 style15">&gt;</span>Visit the Useful Tips Section<span class="style19 style15">&lt;</span><span class="style18 style14">/a</span><span class="style19 style15">&gt;</span></div> <a href="i editor-links5.html" target="_blank" style="color:white"><button class="button">Try it Yourself</button></a> </div> <hr color="#eeeeee“> <h2>Chapter Summary</h2> <ul> <li>Use the HTML&nbsp;<strong>&lt;a&gt;</strong>&nbsp;element to define a link</li> <li>Use the HTML&nbsp;<strong>href</strong>&nbsp;attribute to define the link address</li> <li>Use the HTML&nbsp;<strong>target</strong>&nbsp;attribute to define where to open the linked document</li> <li>Use the HTML&nbsp;<strong>&lt;img&gt;</strong>&nbsp;element (inside &lt;a&gt;) to use an image as a link</li> <li>Use the HTML&nbsp;<strong>id</strong>&nbsp;attribute (id="<em>value</em>") to define bookmarks in a page</li> <li>Use the HTML&nbsp;<strong>href&nbsp;</strong>attribute (href="#<em>value</em>") to link to the bookmark</li> </ul> <a href="index.html" style="color:#4CAF50"><strong> <h3 align="right">Next Chapter >></h3> </strong></a> </p></div>