Summary 5

February 16, 2024 | Chapters 4 and 13


Topic 1: Writing links in HTML

Links can be created in the HTML by using the (a) element. You can attach a link to text so that when users click on the text it takes them somewhere, your link text should explain where visitors will be taken if they click on it. Clear link text can help users find the information they need from your site more easily and will give a positive impression of your site if everything is easy to find.


Topic 2: When linking to a page within your own site, It is best to use relative links rather than qualified URLs

When linking to a page on your own website you do not have to specify the domain name instead you can use relative URLs which is a way to tell the browser where a page is in relation to the current page. If all of the files in your site are in one folder then you simply use the file name to link that page. Relative links can also be quicker to write because you do not have to repeat the domain in each link.


Topic 3: Boxes in CSS

Every element you put into the HTML acts like it has its own box in CSS and you can use CSS to control the box’s appearance. In the CSS you can control the dimensions, borders, margins, and padding for each box. You can increase the legibility of text inside boxes by utilizing the padding and the overall dimension of the box text is in. You can also make a box look exactly how you want by customizing it using different properties.