Paytin L. Brown


Summary 5: Chapter 4 & 13 - Links & Boxes

Links

If you wanted to add links to your site but wanted to link them to other sites, you would use “a”. An attribute href would be included inside a and /a to say where your users would go once they click the link. This is known as an absolute URL. If you want to link other pages within your site, you do not need to include a URL. Instead, use a relative URL. This will help create your site so you don’t have to create a domain name.


Boxes

When creating boxes, there is always a default size. You can create a box in HTML using div. In the CSS, you can adjust the height, width, and background color. You can also set a minimum and maximum width so the smallest and largest can be displayed. It will not get smaller or larger than the sizes you put in. This will allow your content to be legible on all types of media.


Box Borders, Margins, and Padding

There are three different ways to adjust a box: border, margin, and padding. You can choose the style of your border on your box. Some style options are solid, dotted, dashed, double, groove, ridge, inset, outset, and hidden/none. You can also change the color. Margin is the space in between boxes. Padding in the space from the words and the border of the box. This will make sure the words don’t touch the box.