Skip to content

Instantly share code, notes, and snippets.

@jdursema
Last active August 7, 2017 16:32
Show Gist options
  • Save jdursema/0c9ab3e8b344c9b380e257e66a12522d to your computer and use it in GitHub Desktop.
Save jdursema/0c9ab3e8b344c9b380e257e66a12522d to your computer and use it in GitHub Desktop.

On a website, what is the purpose of HTML code? HTML code determines the structure of a website. Coders can use it to add text, hyperlinks, and basic structure to a webpage.

What is the difference between an element and a tag? Tags are a part of an element. An element is made up of an opening and closing tag.

Why do we use attributes in HTML elements? Attributes provide more infromaiton to browsers about an element.

Describe the purpose of the head, title, and body HTML elements. The head element contains information about the page and the title element is usually within this element. Title element gives the webpage a title. Anything withing the title element will be at the top of the browsing window. The body element contains everything that is shown in the main browser. If you want to have the title of the page be included in the main browser, you have to put it in the body element.

In your browser (Chrome), how do you view the source of a website? Got to "View", "Developer", then "view source"

List five different HTML elements and what they are used for. For example, < p > < /p > is a paragraph element, and it is used to represent a paragraph of text. < sup >< /sup > is used to create a superscript. is used to create a subscript. < i >< /i > is used to make the enclosed text italics. < br/ > creates a line break between paragraphs < dfn >< /dfn > indicates that the writer of the webpage is defining a new term. < abbr >< /abbr > to indicate that an abbreviation or acronym is being used.

What are empty elements? Empty elements are elements that don't contain any words between them. They usually only have one element. Ex) < br / > (page break) and < hr / > (horizontal rule between sections)

What is semantic markup? Elements that don't effect the structre of the page, but add extra information about the page. Ex) < dfn >< /dfn >

What are three new semantic elements introduced in HTML 5? Use page 431 in the book to find more about these new elements. "< aside >, < footer >, < header >"

https://codepen.io/JulieD93/full/JyWPgp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment