HTML Freecodecamp Notes
HTML Freecodecamp Notes
1. COMMENTS:<!-- -->
2. <main>: HTML easier to read and help with Search
Engine Optimization (SEO) and accessibility.
3. Src: The src attribute in an img element specifies the
image's URL (where the image is located).
EX. <img src=” https://cdn.freecodecamp.org/curriculum/cat-
photo-app/relaxing-cat.jpg alt=”a Cat”>
24. Esa upar jaysy likhy gay toh dono bhi radio
buttons select hojayehga,just ek karo toh dusra
unselect hony kay liyeh esa name attribute with same
value dalna hota hy ,EX:
<label><input id="indoor" type="radio" name="indoor-
outdoor"> Indoor</label>
<label><input id="outdoor" type="radio" name="i
ndoor-outdoor"> Outdoor</label>
25. The value attribute is used to set the value of
<input> elements: it defines the value associated with
the input and the value in the name/value pair that is
sent to the server on form submission.
the form data for the button is based on its name and value attributes.
Since your radio buttons do not have a value attribute, the form data will
include indoor-outdoor=on, which is not useful when you have multiple
buttons.
26. The fieldset element is used to group related inputs
and labels together in a web form. fieldset elements
are block-level elements, meaning that they appear on
a new line.
27. The legend element acts as a caption for the content
in the fieldset element. It gives users context about
what they should enter into that part of the form.(yeh
esa karta hy)