40
Xlrays Online Web Tutorials Developed By: Yogesh Gupta www.xlrays.com/xl Xlra ys

Xlrays online web tutorials

Embed Size (px)

Citation preview

Page 1: Xlrays online web tutorials

XlraysOnline Web Tutorials

Developed By: Yogesh Gupta

www.xlrays.com/xl

Xlrays

Page 2: Xlrays online web tutorials

Index.html (Home Page)

Page 3: Xlrays online web tutorials

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;}

Page 4: Xlrays online web tutorials

#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;}

Xlra

ys

Page 5: Xlrays online web tutorials

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 */

HTML Tutorials

Page 6: Xlrays online web tutorials

/* 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;}

Page 7: Xlrays online web tutorials

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>

Page 8: Xlrays online web tutorials

<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>

Page 9: Xlrays online web tutorials

<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>

Page 10: Xlrays online web tutorials

<div id="footer">&copy; 2016 All Right Reserved | XLrays.com.</div>

</body></html>

Page 11: Xlrays online web tutorials

home.html

Page 12: Xlrays online web tutorials

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>

Page 13: Xlrays online web tutorials

introduction.html

Page 14: Xlrays online web tutorials

<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

Page 15: Xlrays online web tutorials

<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">

Page 16: Xlrays online web tutorials

<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>

Page 17: Xlrays online web tutorials

<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>

Page 18: Xlrays online web tutorials

html-editors.html

Page 19: Xlrays online web tutorials

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>

Page 20: Xlrays online web tutorials

<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">

Page 21: Xlrays online web tutorials

<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>

Page 22: Xlrays online web tutorials

basic.html

Page 23: Xlrays online web tutorials

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">

Page 24: Xlrays online web tutorials

<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">

Page 25: Xlrays online web tutorials

<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;Images\XLrays-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>

Page 26: Xlrays online web tutorials

elements.html

Page 27: Xlrays online web tutorials

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>

Page 28: Xlrays online web tutorials

<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>

Page 29: Xlrays online web tutorials

<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>

Page 30: Xlrays online web tutorials

<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>

Page 31: Xlrays online web tutorials

<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>recommends</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>

Page 32: Xlrays online web tutorials

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">

Page 33: Xlrays online web tutorials

<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>

Page 34: Xlrays online web tutorials

links.html

Page 35: Xlrays online web tutorials

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>

Page 36: Xlrays online web tutorials

<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>

Page 37: Xlrays online web tutorials

<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>

Page 38: Xlrays online web tutorials

<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>

Page 39: Xlrays online web tutorials

<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>

Page 40: Xlrays online web tutorials

Thank Youwww.xlrays.com/xl

Xlra

ysOnline Web Tutorials