HTML is a language used to style and layout web pages. It controls the color, font, spacing, positioning, and many other aspects of HTML elements.
HTML syntax consists of a selector and a declaration block:
Example:
Selectors are used to target HTML elements. Common selectors:
p.classname#idname*input[type="text"]Comments in CSS are written like this:
Colors can be defined using names, HEX, RGB, RGBA, HSL, and HSLA values.
The box model describes the design and layout of elements:
Links can be styled using the :link, :visited, :hover, and :active pseudo-classes.
Lists can be styled using list-style-type, list-style-image, etc.
Tables can be styled for borders, spacing, and more:
HTML comments are ignored by browsers and help document your code:
Control how elements are displayed and positioned:
This is to certify that you have successfully completed the HTML course.
You have learned:
Congratulations on your achievement!