&
CSS - CH 1&
10
HTML describes the main structure of each web page, creating a purely text document. HTML is made up of elements, which are usually made up of two tags (opening and closing). Each element is meant to tell the browser something specific about the information that is contained within the tags.
Opening tags can carry attributes, which provide more information about the content in that tag. Attributes appear at the opening tag of an element and are comprised of two parts, a Name and a Value, which are separated by an equals sign. The Name indicates the type of extra information being supplied, such as lang for language, while the Value is the information or setting for the attribute, such as “en-us” to specify which language the name is referencing.
CSS associates style rules with HTML elements to govern how the content of specified elements should be displayed. This is known as a CSS Rule, which contains two parts like an HTML attribute, a Selector and a Declaration. Selectors indicate which element the rule will apply to, while the declaration is separated into a property and a value and indicates the desired style of the selector.