BASIC HTML Flashcards
WHAT IS CODE EDITOR?
EMBEDDED ON WEBPAGE
WHAT DO HTML ELEMENTS HAVE <>
OPEN/CLOSE TAG
<h1>
| self closing or no?</h1>
heading
no
<h2>
| self closing or no?</h2>
sub heading
no
what is a common placeholder?
lorem ipsum
what is this and definition
commenting leaves comments for other coders without affecting the live text
you can use this when you want to leave a comment for other coders
what are main HTML tags?
main header footer nav video article sectors
what is a tag
gives descriptive structure to HTML TAGS help to read better
accessible for search engines
what is main tag for?
it helps search engines find the main content
use main tag with child elements
<p>
| self closing or no?</p>
paragraph
no <p></p>
how to add an image how to code
self closing or no?
<img></img>
yes self closing
<img></img>
element to add image
src
to point to a specific image url attribute or a pointer
alt
all image elements must obtain alt attribute
used to improve accessibility if image fails to load
for decorative you can just leave it empty
a
how to code
self closing or no?
anchor element to link content to somewhere else on the page or another tab
<a> add text </a>
not self closing