HTML – Links

HTML – Links

 

The “href” attribute names the connection to an other web page. Actually is the place where it will be sent the user who clicks on the link.

Links can be:

  • intern – to specifically places from the page(anchors)>
  • locals – to other pages from the same domain
  • globals – to other domains, outside the site

 

HTML Code:

Internal - href="#anchorname"
Local - href="../img/foto.jpg"
Global - href="http://www.setscholars.net/"

HTML – HTML – Text links

To set the beginning and the end of a anchor it can be used <a></a>. Choose the type of the attribute that you need then put it inside the tag.

Example:

HTML Code:

<a href="http://www.setscholars.net" target="_blank" title="HTML Tutorials">HTML Tutorials</a>

Demo

 

HTML – Link targets

The “target” attribute tells to the browser if it needs to open a new page in a new window or in the same window.

target=” _blank” Opens a new window
_self” Opens a page in the same window
_parent” Opens a new page in a superior frame of the link
_top” Opens a new page in the same browser canceling all the frames

The next example shows how a new page can be opened in a window of the browser. In this way we can remain on the tutorial’s page and open a new navigation page.

HTML Code:

<a href="http://www.google.com/" target="_blank" >Google </a>

Demo

HTML – Anchor

Is used to link two sections of the same page. In this way we need to give a name to those sections, but for this is indicated to take a look at the next example.

HTML Code:

<h1>HTML - Hypertext Reference / href<a name="top"></a></h1>
<h2>HTML - Text links<a name="text"></a></h2>
<h2>HTML - E-mail text<a name="email"></a> </h2>

Next, we need to make a code to the link by putting before the anchor’s name

HTML Code:

<a href="#top">Go to top </a>
<a href="#text">Learn about text links </a>
<a href="#email">Learn about e-mail addresses </a>

Demo

HTML – E-mail link

To make an e-mail link is very simple.If you want someone to write you an email the best thing to do it would be to put at its disposition a link with your email and a pre-established subject.

HTML Code:
<a href="mailto:someone@example.com?subject=Questions " >Questions here</a>

Demo

In case the subject is not enough and you want yo add something else to the email’s content, you can do it with the help of the next code:

HTML Code:
<a href="mailto:someone@example.com?subject=Questions&body=Write here if you have questions " >Questions here </a>

Demo

HTML – Download links

A download links looks like a normal link text. The problem kicks in when we want to add a photograph.The best solution it is to use a thumbnail with a link, but we will talk more about this problem in the next lesson.

HTML Code:

<a href="http://www.setscholars.net">Text Document</a>

HTML – Default link/Base link

use the <base> tag in the interior of the <head> element to set a base link. This is necessary in case you have somewhere a link which doesn’t work or in case the destination it doesn’t exist anymore.The base link sends the user to the specified address. Usually it sends the user to the start page, but is as well accepted any other page, eventually a special page made in this purpose.

HTML Code:

<head>
	<base href="http://www.setscholars.net/">
</head>

 

Python Example for Beginners

Two Machine Learning Fields

There are two sides to machine learning:

  • Practical Machine Learning:This is about querying databases, cleaning data, writing scripts to transform data and gluing algorithm and libraries together and writing custom code to squeeze reliable answers from data to satisfy difficult and ill defined questions. It’s the mess of reality.
  • Theoretical Machine Learning: This is about math and abstraction and idealized scenarios and limits and beauty and informing what is possible. It is a whole lot neater and cleaner and removed from the mess of reality.

Data Science Resources: Data Science Recipes and Applied Machine Learning Recipes

Introduction to Applied Machine Learning & Data Science for Beginners, Business Analysts, Students, Researchers and Freelancers with Python & R Codes @ Western Australian Center for Applied Machine Learning & Data Science (WACAMLDS) !!!

Latest end-to-end Learn by Coding Recipes in Project-Based Learning:

Applied Statistics with R for Beginners and Business Professionals

Data Science and Machine Learning Projects in Python: Tabular Data Analytics

Data Science and Machine Learning Projects in R: Tabular Data Analytics

Python Machine Learning & Data Science Recipes: Learn by Coding

R Machine Learning & Data Science Recipes: Learn by Coding

Comparing Different Machine Learning Algorithms in Python for Classification (FREE)

Disclaimer: The information and code presented within this recipe/tutorial is only for educational and coaching purposes for beginners and developers. Anyone can practice and apply the recipe/tutorial presented here, but the reader is taking full responsibility for his/her actions. The author (content curator) of this recipe (code / program) has made every effort to ensure the accuracy of the information was correct at time of publication. The author (content curator) does not assume and hereby disclaims any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from accident, negligence, or any other cause. The information presented here could also be found in public knowledge domains.  

Google –> SETScholars