HTML ID Attribute | ID Tag | ID Class HTML Tutorial

HTML ID Attribute

Next, go to the <head> tag and add a <meta> tag to define the character set for the HTML file. Then add a <meta> tag defining how mobile devices should render the page, set the title of the page, and finally load the CSS file that you will make later with a <link> tag.

These additions are highlighted in the following code block. You will encounter this highlighting method throughout the tutorial as code is added and changed:


<!doctype html>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>About CSS Selectors</title>
    <link rel="stylesheet" href="styles.css">


After adding the <head> content, move to the <body> element where you will add conten