1.On a website, what is the purpose of HTML code? HTML describes the structure of a web page.
-
What is the difference between an element and a tag? Tags are the characters between the brackets p /p, whereas the element is the opening and closing tags, as well as the content between them.
-
Why do we use attributes in HTML elements? Attributes provide additional information about the contents of an element in name/value pairs.
-
Describe the purpose of the head, title, and body HTML elements. head: information about the page. This is where you would link your CSS file, and title title: contents of the title element, which is shown in the tab body: Meat and potatoes of the page, meaning everything inside is shown in the browser window.
5.In your browser (Chrome), how do you view the source of a website? View>Developer>View Source
- List five different HTML elements and what they are used for. For example, is a paragraph element, and it is used to represent a paragraph of text. h1-h6: full heading to sub-heading in order from largest to smallest p: paragraph element, used for paragraph text b: used inside an element, wrapped in tags will make the content text bold i: used inside an element, wrapped in tags will make the content text italic sup: used for superscript sub: used for subscript
7.What are empty elements? Empty elements are elements that do not have words between the opening and closing tags ie br /
-
What is semantic markup? Adds extra information to pages by describing content, especially for screen readers.
-
What are three new semantic elements introduced in HTML 5? header, section, and article
#html codepen https://codepen.io/wolfinator/pen/aVqQLq