Coding 2 Flashcards
what is !DOCTYPE html?
its the first thing in a html document, it tells the browser that its html 5
what is the html tag?
it is the root element, meaning all other elements exist within it
what is the head tag?
child of html tag-
it is where we bundle information about our document, link fonts and titles. Not stuff you generally see on the web page
How many different types of elements can be in the head element
7
what is the meta tag?
child of the head tag-
it is a versatile tag. Each instance carries different information about the document such as the character encoding and the pages dimensions
what is charset?
goes with a meta tag-
tells the browser about the character encoding
what is viewport?
goes with a meta tag-
tells the browser about the pages dimensions
what is the title tag?
child of the head tag-
the text that is put here, goes on the browser tab when the web page is opened.
is the title tag required for all HTML documents?
Yes it is.
why is it important for HTML documents to have a title?
Webcrawlers look for this element to help them index the web page correctly which helps with SEO
What is SEO?
Search Engine Optimization
What is the link tag?
child of the head tag –
used to link the html page to other resources like fonts and stylesheets
what is the body tag?
child of the html tag-
this where the main displayable content of the webpage is put
what is the h1 tag?
a first level heading tag. It has default styling which will make it large and bold. There is only one of these on a page.
what is h2 -h6?
lower level heading tags, these also have default styling properties. More than one of these can be used per page
Should we skip lower level heading tags ? h2-h6?
no we should not skip them, just go in order - do not choose the head line tag based on shape or size. These will be adjusted in CSS
what is the importance of header tags?
they help web crawlers know what the page is about, so its also important for SEO
what is the p tag?
child of the body -
used to say that the text put here is a paragraph
what is the ul tag?
it is the unnumbered list tag, it creates a list of bulleted items
what is li tag?
it is a child of ul tag-
it is a listed item under a ul
what is an A tag?
its an anchor tag, which is used to create a clickable link that leads people to other websites or other pages on web page.
what is a div tag?
it is a basic generic container tag, that is used to group content together.
what do we wrap our elements in ?
opening and closing tags
what is the difference between opening and closing tags?
they are identical except for the fact that closing tags have a forward slash infront of the tag name
The quick brown fox jumps over the lazy dog. The \ quick brown fox jumps over the lazy dog. The quick brown fox jumps over \ the lazy dog.
'; ``` same as: ``` const element2 = 'The quick brown fox jumps over the lazy dog. The quick ' + 'brown fox jumps over the lazy dog. The quick brown fox jumps over the ' + 'lazy dog.
'; ```How to draw an owl:
' + '- ' +
'
- Draw a circle ' + '
- Draw the rest of the owl ' + '
How to draw an owl:
- Draw a circle
- Draw the rest of the owl