About Links

Links are the defining feature of the web because they allow you to move from one web page to another — enabling the very idea of browsing or surfing

  1. Links are created using the element
  2. You can use the id attribute to target elements within a page that can be linked to
  3. If you are linking to a page within your own site, it isbest to use relative links rather than qualified URLs.
  4. You can use the id attribute to target elements within a page that can be linked to.

example: <a href=”site url” > Title </a>

Relative URLs

example;


To link to the homepage from the music reviews:
<a href="../index.html">Home</a>


To link to music listings from the homepage:
<a href="music/listings.html">Listings</a>


Email Links

To create a link that starts up the user’s email program and addresses an email to a specified email address, you use the element. However, this time the value of the href attribute starts with mailto: and is followed by the email address you want the email to be sent to.

<a href=”mailto:jon@example.org”>Email Jon</a

<html>
<head>
 <title>Links</title>
</head>
<body>
 <h1 id="top">Film Folk</h1>
 <h2>Festival Diary</h2>
 <p>Here are some of the film festivals we
 will be attending this year.<br />Please
 <a href="mailto:omar.zein2020@example.org">
 <!-- addiaboutional content -->
 <p><a href="about.html">About Film Folk</a></p>
 <p><a href="#top">Top of page</a></p>
</body>
</html>

About Layout

Page layout is used to make the web pages look better. … It establishes the overall appearance, relative importance, and relationships between the graphic elements to achieve a smooth flow of information and eye movement for maximum effectiveness or impact

More info About Layout

Relative positioning

-HTML

<body>
<h1>The Evolution of the Bicycle</h1>
<p>In 1817 Baron von Drais invented a walking
 machine that would help him get around the
 royal gardens faster...</p>
</body>
- To move the box up or down, you can use either the top or bottom properties

![](https://css-tricks.com/wp-content/csstricks-uploads/absolute-inside-relative.png)

- To move the box horizontally, you can use either the left or right properties.

## position:absolute

o control where the fixed position box appears in relation to the browser window, the boxo ffset properties are used


@About ele The float property

allows you to take an element in normal flow and place it as far to thleft or right of the containing element as possible.


blockquote { float: right; width: 275px; font-size: 130%; #blockquote { float: right; width: 275px; font-size: 130%;

}


## About Clearing Floats
The clear property allows you to say that no element (within) he same containing element would touch the left or righthand sides of a box. It can take the following values:


- left :
The left-hand side of the box should not touch any other elements appearing in the same containing element.


- right :
The right-hand side of the box will not touch elements appearing in the same containing element.

## About Liquid layout
- it is a designs stretch and contract as the user increases or decreases the size of their browser window. They tend to use percentages.

- To create a fixed width layout, the width of the main boxes on a page will usually be specified in pixels 


![](https://image.slidesharecdn.com/pagelayout-150929142530-lva1-app6891/95/page-layouts-flexible-and-fixed-layout-with-css-11-638.jpg?cb=1443536908)


## Layout Grids

- Composition in any visual art (such as design, painting, or photography) is the placement or arrangement of visual elements


![](https://i.pinimg.com/originals/7d/90/0a/7d900aaac1bb49838ff31af6eabd5180.png)
 

---------------------------------------------------------------------

## WHAT IS A FUNCTION?
- Functions let you group a series of statements together to perform a specific task. If different parts of a script repeat the same task, you can
reuse the function.

Example

<!DOCTYPE html>

Before the closing </body> tag, you can see the link to the JavaScript file. The JavaScript file starts with a variable used to hold a new message, and is followed by a function called updateMessage(). Basic Function</title> </head> TravelWorthy</ hl>
We lcome to our site! </ div> </ body> </ html> ``` ![](https://i.pinimg.com/originals/d6/39/c8/d639c8f6b83a695271a8fa79d731266f.jpg) ## HOW MEMORY & VARIABLES WORK - Global variables use more memory. The browser has to remember them for as long as the web page using them is loaded ## WHAT IS AN OBJECT? - Objects group together a set of variables and functions to create a model of a something you would recognize from the real world. In an object ---------------------------------------------------------- ## 6 Reasons for Pair Programming 1. Greater efficiency 2. Engaged collaboration 3. Learning from fellow students 4. Social skills 5. Job interview readiness 6. Work environment readiness - While learning to code, developers likely study several programming languages. Similar to a foreign language class, there are four fundamental skills that help anyone learn a new language ----------------------------------------- [Table of content](https://github.com/omarXzain/reading-notes)