Fundamentals of HTML Flashcards
Headings tags are:
h1, h2, h3, h4, h5, h6 elements
What is div for and what it means?
div is short for division
div divides the page into sections
how to add a simple paragraph
using p element
what span is for
span separates text from other text on the same line
what em element is for
emphasises text - italic
what is strong element for
highlights important text - bold
what element is used to space a line
br element
what element is used to create a list with bullets
ul element
what element is used to create a numbered list
ol element
what element is used to add an item to a list
li element
what element is used to add an image
img element - self-closing tag + src attribute which contains the link to the image
what attribute is used to add an image alt
alt attribute
what element is used to add a video
video element with the attribute src value set to the link of the video
+ we can add width and height attributes
what attribute is used to add controls to a video
controls attribute
what HTML stands for
HypertTextMarkupLanguage
any visible content must be nested inside of what tags?
body tags
how to start any HTML file
declare !DOCTYPE html
what element is used to add the page title
title element
the title is going to show as the title of the tab on a modern computer
what element is used to link to other pages
a element
a element must contain a href attribute with the value of the link we are linking to
what href means
href= HyperLink Reference
what attribute is used to open a link to a new window
we must add the target attribute to the anchor tag and set its value to blank_
what element is used to turn an image into a link
just wrap the image into an anchor tag
what is the tag that contains ALL the code
html tag
syntax errors
spelling or punctuation errors
logic errors
the syntax is correct, but the code isn’t what you intended to be
what element is used to create a table
table element
what element is used to add a row to a table
tr element
what element is used to add data to a row of a table
td element
what element is used to add a heading to a table
th element
what element is used to span a column
add a colspan attribute to a td element and set its value to how many columns you want to span
table body
should contain our table data
table head
should contain our table headings
table footer
should contain sums, differences…
CSS =
Cascading Style Sheets
semantic=
related to meaning
what element is used in semantic HTML for headers
header element
what element is used in semantic HTML to define a block of navigation links
nav element
what element is used in semantic HTML for the dominant content
main element
what element is used in semantic HTML for the footer of a web page
footer element
what element is used in semantic HTML to separate the themes of discussion on a website
section element
what element is used in semantic HTML for articles, blogs…
article element
what element is used in semantic HTML to add aside content like a quote, comment…
aside tag
what element is used in semantic HTML to encapsulate media
figure tag
what element is used in semantic HTML to add a caption to an image/video
figcaption element
what element adds audio content
audio tag
what attribute is being used to play a video as soon as the page is loaded?
autoplay attribute
what attribute is being used to play a video in a loop
loop attribute
what element is used to add a gif/image/video…
the embed element
- self closing tag