Lesson 2 Flashcards
what are semantics
the practice of giving content on the page meaning and structure by using the proper element. Semantic code describes the value of content on a page, regardless of the style or appearance of that content.
what are semantics
the practice of giving content on the page meaning and structure by using the proper element. Semantic code describes the value of content on a page, regardless of the style or appearance of that content.
what is a block element
block elements begin on a new line stacking one on top of the other and occupy any available width they may be nested one within the other and wrap inline elements(used for larger pieces of content)
what is an inline element
does not begin on a new line. falls into the normal flow of a document, lining up one after the other and only maintain the width of their content. may be nested within one another however they cannot wrap block level elements.(used for smaller pieces of content)
<div></div>
block-level element that is commonly used to identify large groupings of content, and which helps to build a web page’s layout and design.
<span></span>
an inline-level element commonly used to identify smaller groupings of text within a block-level element.
comment
heading
block level elements
Headings help to quickly break up content and establish hierarchy, and they are key identifiers for users reading a page. They also help search engines to index and determine the content on a page.(should not be used to make text bold or big there are better ways to do that)
paragraphs
Headings are often followed by supporting paragraphs. Paragraphs are defined using the <p> block-level element. Paragraphs can appear one after the other, adding information to a page as desired. </p>
bold
The <b> element, on the other hand, semantically means to stylistically offset text, which isn’t always the best choice for text deserving prominent attention</b>
bold
The <b> element, on the other hand, semantically means to stylistically offset text, which isn’t always the best choice for text deserving prominent attention</b>
what is a block element
block elements begin on a new line stacking one on top of the other and occupy any available width they may be nested one within the other and wrap inline elements(used for larger pieces of content)
what is an inline element
does not begin on a new line. falls into the normal flow of a document, lining up one after the other and only maintain the width of their content. may be nested within one another however they cannot wrap block level elements.(used for smaller pieces of content)
<div></div>
block-level element that is commonly used to identify large groupings of content, and which helps to build a web page’s layout and design.
<span></span>
an inline-level element commonly used to identify smaller groupings of text within a block-level element.