Lab 2 - Part 2

Q1. Identify 4 Different Uses of <meta> tag:

1. Character Encoding

This meta tag specifies which character set the webpage uses. Ensuring letters, symbols, and accents display correctly.

<meta charset="UTF-8">

2. Viewport Settings

This tag controls how the page scales and displays on mobile devices, making your webpage responsive.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

3. Page Description

This tag provides a short summary of your webpage’s content. Search engines often show this text in search results.

<meta name="description" content="This is a sample webpage description">

4. Robots

This tag tells search engines whether to index or follow links

<meta name="robots" content="index, follow">

Q3. <meta> tags added to <head> of Fish Creek Website:

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="This is the home page for Fish Creek Animal Hospital">
    <meta name="robots" content="index, follow">
    <meta name="author" content="Brian Cullen">
    <meta name="copyright" content="&copy; 2025 Brian Cullen">
    <link rel="stylesheet" href="styles.css"> 
    <title>Fish Creek Animal Hospital</title>
</head>

Note: I also added tags for "author", and "copyright". Thiese may not be useful for SEO but I feel they are important.

Comments

Popular posts from this blog

Lab 3 - Part 1 - Cognition

Lab 4 - Part 1 - Coding and Validation

Lab 2 - Part 3 - SEO