Basics Flashcards
What is basic html format ?
<!DOCUMENT html>
What is a html tag ?
An element name surrounded by a bracket
What makes up an html element?
A start tag, element content, and an end tag
What do you call an element that Is inside another element ?
A nested element
What is an empty element?
An element that has no element content or end tag. You close them with a foward slash on the open tag
What makes up an html attribute?
An attribute name, an equal sign, and a value within quotation marks
What is the lang attribute for ?
To define the language of an html file
How do we create links in html ?
We use the <a> element which defines links, and the href attribute which tells a browser where to go</a>
What is the title attribute for ?
It provides a tool tip for html elements / text that appears when something is hovered over
What is the style attribute for ?
Adjusting size font and color
What are the I’d and class attributes for ?
They give reference to attributes inside an element
What is special about the class attribute ?
Multiple elements can have the same class value
What’s special about the I’d attribute
It must be unique for every element
What are html comments and their purpose ?
Text or phrases inside an html file which help developers organize code
What makes up an internal style sheet ?
One or more css ( cascading style sheet) rule sets
What makes up a css rule set ?
A selector and declaration block surrounded by curly/pelican brackets with css declarations separated by semi colons
Example of a selector
P { }