HTML Terms + Broad HTML Knowledge Flashcards
Describe what an HTML Element is
The HTML element is everything from the start tag to the end tag:
< tag name> Content goes here… < tag name>
Describe what an HTML Tag is
What are 2 kinds of tags?
What is a void element?
Contains text that defines how the browser will display and format the content.
Opening tag &lh1>
Closing tag &l/h1>
A void element is a self-closing element/tag. They are just pointers to an element that is installed in the page.
Nested HTML Elements
HTML elements can be nested (this means that elements can contain other elements).All HTML documents consist of nested HTML elements.
HREF stands for?
Where is HREF used?
What does HREF do?
hypertext reference.
It is an attribute of the <a> anchor tag
It specifies the URL of the page the link goes to (can be a location within a page)
Relative (implicit) and Absolute (explicit) Links
Relative: a URL to EXAMPLES.HTML assumes EXAMPLES.HTML is in the same folder as the Web page with the link
Absolute: if it was on another website, a full URL with HTTP:// prefix would be needed.
Absolute file paths ON COMPUTER do not seem to work E:\tiavoj510ru51.jpg
HTML attributes
Provide additional information about HTML elements.
Locatied after the tag
<tag attribute>
All HTML elements can have attributes
Attributes provide additional information about elements
Attributes are always specified in the start tag
Attributes usually come in name/value pairs like: name=”value”
There doesn’t need to be a space in between attributes because “” and = separate attributes, not spaces
Give an overview of the role of HTML in forms
HTML can’t do anything with the input. It can only define that this WILL BE input.
It can’t write the data to a server or anything like that.
To do something with the information you have to use code (python, JS, php etc.)
HTML is like the outer body of the ATM machine asking for an input and showing sending you to the next spot. But if you want money, if you want to check for errors etc. you need to use code.
What does HREF stand for?
hypertext reference. a reference to
What’s an implicit HREF vs explicit HREF
implicit links to somewhere within page
explicit links to another page (and needs HTTP)
What’s an ancestor/parent/sibling/child/descendent?
An element contained within another is the child of the parent container. Siblings together within the same container. Ancestors and descendents for parents and childs more generally and removed
<div> A This is an ancestor of C and D ---<div> ---B ---This is the parent of C and D ------<div> ------C ------this is an child of B ------this is a sibling of D ------this is a descendent of A ------</div> ------<div> ------D ------this is an child of B ------this is a sibling of C ------this is a descendent of A ------</div> ---</div> </div>