HTML Links, JS Functions, and Intro to CSS Layout

HTML Book

- Directory Structure

  1. Structure The top-level folder is known as the root folder ,The root folder contains all of the other files and folders for a website. Each section of the site is placed in a separate folder; this helps organize the files.

  2. Relationships The relationship between files and folders on a website is described using the same terminology as a family tree.

  3. Homepages The main homepage of a site written in HTML ,Web servers are usually set up to return the index.html file if no file name is specified.

- Linking to a Specific Part of the Same Page

To link to an element that uses an id attribute you use the <a> element again, but the value of the href attribute starts with the # symbol, followed by the value of the id attribute of the element you want to link to. In this example, <a ref="#top"> links to the <h1> element at the top of the page whose id attribute has a value of top.

- Linking to a Specific Part of Another Page

the href attribute will contain the address for the page (either an absolute URL or a relative URL), followed by the #symbol, followed by the value of the id attribute that is used on the element you are linking to.

Chapter15 “layout” ::

Building blocks

block vs inline

Controlling Elements ::

### Examples :: #### Normal flow :: –> position:static

position:static


Relative Positioning –> position:relative

position:relative


Absolute Positioning –> position:absolute

position:absolute


Overlapping Elements ( z-index) –> z-index: value

z-index: value

Fixed Positioning –> position:fixed

z-index: value


🎗️ How to use float to place Elements SIDE BY SIDE

SIDE BY SIDE by Float



🎗️ Parents of floated elements : Problem & Solution

i. Problem

Parents of floated elements Problem


ii. Solution

Parents of floated elements Solution



🎗️ How to Creating Multi-Column Layouts with Floats

How to Creating Multi-Column Layouts with Floats





JavaScript Book

Chapter 3 “Functions, Methods, and Objects” ::