Lesson #1 - Basic HTML5 Flashcards
How are the header elements for HTML written?
< h > h >
How many header elements are there? What are the differences between each header element?
6
The text size
How are the paragraph elements for HTML written?
< p > < /p >
How are comments within HTML written?
< !– Comment here –>
True or False: Comments are useful for making specific code inactive without having to delete it entirely.
True
What does the “main” HTML5 tag do?
It helps search engines and other developers find the main content of your page.
What is a simple way to differentiate between HTML tags and elements?
Tags are like the parents and elements are like the children
What element is used to add a picture to your website?
< img >
What is the basic image element format/syntax?
< img src=” linktoimage “ >
How many header elements are there? What are the differences between each header element?
6
The text size
True or False: Comments are useful for making specific code inactive without having to delete it entirely.
True
What does the “main” HTML5 tag do?
It helps search engines and other developers find the main content of your page.
What is a simple way to differentiate between HTML tags and elements?
Tags are like the parents and elements are like the children
What element is used to add a picture to your website?
< img >
What is the basic anchor element format/syntax?
< a href=”https://wwwlinktocontentcom>Click here to go to LinktoContentcom< /a>
True or False: Image elements are self-closing.
True
True or False: ALL image elements MUST have an alt attribute
True
What is an alt attribute?
It is text that is displayed if a user’s computer is unable to load the image.
Using a <h2> element, assign an id called “contacts-header” with the viewable text labeled “contacts” and create an internal link with the same contacts label.</h2>
< a href= “#contacts-header” > Contacts < /a>
< h2 > Contacts < /h2 >
What is an anchor element and how is it written?
It is an element that is used to link content outside of your web page.
< a > < /a >
If you want to write an anchor element, but you don’t know what the link is going to be, what can you use as a dead placeholder?
Hash symbol (#)