Fundamental Concepts in HTML

SEO:

  • It is essential to include height and width attributes in HTML image tags.

  • Refer to the Web.dev website for SEO guidance.

The for attribute in a label tag should match the id attribute of the corresponding input tag.
<form>
    <fieldset>
        <legend>Select your favorite language:</legend>
        <div>
            <input type="radio" id="html" name="fav_language" value="HTML">
            <label for="html">HTML</label>
            <input type="radio" id="css" name="fav_language" value="CSS">
            <label for="css">CSS</label>
        </div>
    </fieldset>
</form>

Preview:

Select your favorite language:

  • &nbsp; - Used for spaces

Post a Comment

0 Comments