2. Links (Anchors)/Linking Pages
HTML Links were invented by Tim Berners-Lee in 1989 to share text information. He originally called them "anchors".
Creating a Hyperlink
To create a link in Dreamweaver:
- In Dreamweaver, open the page where you want to create a link.
- Select the text or image you want to serve as the link.
- Click the "Insert" menu, then choose "Hyperlink".
- Browse for the HTML page or file you want to link to.
- Set the "Target" field to define if your page opens in the same or a new window.
- Click "OK" to create the link.
3. Media Queries
Purpose
Media Queries enable websites to adjust to various screen sizes, improving usability across devices.
The Code
Media queries are added within CSS:
@media only screen and (max-width: 990px) { .image-selector { display: none; } }
Note: Be sure to close curly braces properly to avoid errors.
Best Practices
- Modify only what's necessary for different screen sizes.
- Implement a foundational CSS and override with media queries when needed.