WD - Balises HTML (definitions) Flashcards
!DOCTYPE…
declaration tells the browser which version of HTML the document is using
html
element is the document’s root element - it can be thought of as a container that all other tags sit inside (except for the !DOCTYPE)
head
tag contains information that is not normally viewable within your browser (such as meta tags, havascript and css), although the title tag is an exception to this. The content of the title tag is displayed in the browser’s title bar (right at the top of the browser)
h1
tag defines a level 1 heading
p
tag defines a paragraph. This contains the body text.
body
tag is the main area for your content. This is where most of your code and viewable elements will go
br
“line break”. c’est pour envoyer à la ligne.
hr
“horizontal rule”. Il va séparer en deux paragraphes différents, et va tracer une ligne horizontal pour distinguer les deux parties
ul + li
"Unordered list". <ul> pour créer un unordered list, et <li> pour chaque élément dans la liste. <ul> <li> list tiem 1 </li> <li> list item 2 </li> </ul></li></ul>
ol + li
pareil que <ul>, mais c’est un Ordered list (donc en énumération, avec 1-, 2-, 3-, etc)</ul>
h1, h2, h3, h4, h5, h6
Heading, il y a 6 niveaux pour des titres, ça va du h1 au h6.
What is HTML attributes?
Attributes are added to a tag to provide the browser with more information about how the tag should appear or behave. Attributes consist of a name and a value separated by an equals (=) sign.
abbr
abbreviation ou acronyme.
<abbr>HTML</abbr>
a href=””
a element used for creating a hyperlink to another web page.
href=”” attribute specifies the location of the web page that we’re linkng to.
<a> Quackit tutorials </a>
Embedded styles
Embedded styles are addead to the element of a document, and can contain most of the styles for the document.
My example
body { background-color: grey}
etc etc