Chapter 4: Links
Writing links
Links are created by using the a tag/ element. You can either use the drop down bar insert and go to insert hyperlink or you could just write it out. You can specify which page you want to link using the href attribute. When possibly you should specify what your link is and where its going to take your audience. Also when writing links, you can use words that people might search for the page that your are linking to.
Linking to other sites
The value of the href attribute is the page that you want people to go to when they click the link on your website. Users can click on any part of the link to get to the page within the a element/ tag. When you link to a different website, the value of the href attribute changes to a full address for the site. This is known as an absolute URL.
Linking to other pages on the same site
When linking to other pages on the same site, you dn't have to specify the domain name in the URL. You can use a short hand known as the relative URL. If all the pages of the site are in the same folder on your computer, then the value of the href is just the name of the file. If you have different pages of your website in different folders, then you could use a slightly more complex syntax to indicate where the page is in relation to the current page.
Chapter 13: Boxes
Box Dimensions
By default a box is just big enough to hold it contents. To set the size of the box for your specific need you will have to set a height and width properties of the box. The most common ways to set width and height would either be in pixels, percentages, or ems. Pixels is the most commonly used measurement for creating boxes, because it allows the creator to accurately control the size of the box. When you use percentages, the size of the box will be relative to the size of the browser window.
Limiting Width
Some websites expand and shrink to fit the size of the user browser window. In these designs, the min-width property specifies the smallest size a box can be displayed. Max-width indicates the maximum width that the box can stretch within the browser screen. These properties are helpful because it ensures that the contents of the page are legible, especially on smaller screens like phones. For example, you can use the max-width to make sure the the text on your webpage isn't to big and the min-width to make sure its not to small to read.
Overflowing Content
The overflow property tells the browser what to do if the content contained within is bigger than the box itself. The overflow can have one of two values: hidden or scroll. Hidden means that it just simply hides any extra content that doesn't fit in the box. Scroll means it will add a scroll bar to the box so that the user can see all of the content placed there. The overflow property can be useful because some browsers allow the user to adjust the size of the text to appear as large or as small as they want.