Prep HTML Basics Flashcards
What tags are necessary for a complete HTML Skeleton?
Doctype, html, head, body
What type of content belongs within the Head of an HTML document?
Meta content
used to declare the character set of a website;
Info for the browser
What type of content belongs within the body of an HTML document?
All visible elements
Do all HTML elements require a closing tag?
No;
self closing tags (ex/ img, br, meta tags, input elements)
What is the purpose of attributes in HTML?
Provide additional info about HTML elements;
Customizes elements
Give an example of an HTML entity (escape character).
copyright
registered
&
What is the purpose of the alt attribute used on <img></img> elements?
Describe the text. Gives context if image can’t render for screen readers
How do link to a file in the same folder as the current HTML document?
Use the document name
Relative Links
same folder: file name child folder: childname/filename grandchild folder: childname/grandchildname/filename parent folder: ../filename grandparent folder: ../../filename
What is the difference between an absolute file path and a relative file path on the Web?
Absolute has “www.” and tells you which website to go to
Relative is within the same site & domain name is missing; maybe just moving up and down a directory
What is a hyperlink?
anchor tag with an href
What is the purpose of an HTML form element?
to collect user input
Give five examples of form control elements.
input label button select textarea
Give three examples of type attribute values for HTML elements.
Specifies type of button or input
button text checkbox radio date password url
Is an HTML element a block element or an inline element?
inline
Delete this card