Summary 5

HTML & CSS - CH 4&13

Topic One: Creating Links

Links are created using the element <a>, which has the attribute href to indicate where the link leads. Whatever is placed between the opening and closing <a> tags will become a clickable hyperlink. Web designers can link to either another page of their own website or an external link by pasting in the relative link or the url to their desired location.


Topic Two: Relative URLs

Relative urls are used to link to other pages within the same site. Since the domain name does not need to be specified for these links, web designers can use these shorthand versions. These types of links are especially helpful when creating a new site since the domain name does not yet need to be specified.


Topic Three: Boxes

CSS treats each HTML element like it is contained within its own box. The dimensions of these boxes can be defined using pixels, percentages, and ems, but pixels are the most traditionally popular method to ensure accurate size control. There are numerous ways to control the characteristics of these boxes, some of the most important including min-height, max-height, min-width, max-width, border, margin, padding, and more.