HTML Flashcards
Doctype
Information about the document for the browser
Two Parts of HTML Skeleton
Head - brower info and metadata
Body - the content that will be displayed online
Accessibility
Including practice ensuring there are no access barriers to those with disabilities or restrictions.
CDN
Content Delivery Nietwork - provides service with high availability and performance to users
Local Resource
an asseet that your webpage depends on thast is stored on your local machine
Navbar
Navigation bar often at the top of website
Often made using unordered lists
Remote resource
an asset that your webpage depends on that is stored on a remote machine - often just on the internet
Tag attributes
Characteristics or properties of elements such as width, height of an image.
3 elements of a table
Header (thead)
kind of like a table- bolded and centered
Body (tbody)
tr is used to define each row of the table
td is used to fill in the table
each tr defines a new row
Footer (tfoot)
it’s a footer. it looks weird without CSS - slides talk abot using (colspan) to merge cells
Block vs. Inline
div - block element
always starts on a new line, takes up whole
width of parent, repects padding and margins
span - inline element
continues on the same line, doesn’t repect
padding and margins
use “display: inline-block” to get the best of both worlds
Adding audio or video to HTML
replace ( with < in your code.
(audio controls)
(source src=”” type=”audio/mp3”)
(/audio)
You can place as many different types of file as you want. The browser will choose one that works.
You can also use “autoplay loop instead of controls
replace “audio” with “video” for video files
iframes
Embedding content that has iframe links - i.e. YouTube videos.
When clicking “share” on youtube, select embed and copy and paste link into your code
iframes are not the SAFEST way to embed things to your site!
Subtitles and closed captioning
link WebVTT files for subtitles
replace ( with < in your code (video controls) (source src="") (track src=".vtt" kind="subtitles" srclang="en" lable="English" ) (/video)
in the WebVTT file you can add timestamps
00:00:00.000 –> 00:00:02.500
This is the text that will show up during this time
00:00:02.500 –> 00:00:05.500
This is the next bit of text. You should try to only show two lines of text at once if you can. Three is okay, but don’t overdo it.
When to use subtitles?
Pretty much always!!! US accessibility laws almost always require them.
What are forms?
Forms collect information from usersx