HTML Flashcards
What does HTML stand for?
Hypertext markup language
What kind of language is it? What does it describe
language or script in which webpages are written in. It describes the content and structure of a webpage, so that a browser is able to interpret it and render it for viewer.
What is this language often used in conjunction with?
CSS and JavaScript
What does the opening tag define?
The type of element
What does 1 element of HTML consist of?
opening and closing tag
content
What does 1 element of HTML define
content and structure
What does each opening tag must have ?
a closing partner
What tags do we use to show all lines between are html code?
- without it browser may interpret the code incorrectly
what is
this statement provides browser with 2 pieces of information - the type of document and html version to be expected
What are the 2 sections of standard webpage?
a header and a body
What is the used for?
contains information about the page, browser tab and window heading area (title) and a link to CSS file if applicable
What is the tag for?
To contain and define content to show up on the page
images, videos, text etc.
How to give a title to a page?
sanfcbcbcjnnd
What are the 3 heading types and their tags?
heading type 1 <h1>
heading type 2 <h2>
heading type 3 <h3>
all the way up to 6, the size decreases</h3></h2></h1>
What is the tag to add a paragraph?
<p></p>
What is the tag used to add a hyperlink?
an anchor tag
<a>RAW TEXT</a>
What is the tag used for ordered and unordered lists?
<ol> --------- ordered list (numbered)
| </ol>
<ul> ---------- unordered lists (bullet points)</ul>
how to add an element to any list?
<li> RAW TEXT </li>
in between the list tags
What does <strong> do?</strong>
Makes the text bold
What does <em> do?</em>
Makes the text italic
What is the <div> tag for?</div>
separating the body of the web page into sections, each can be named using an id = ‘x’ attribute
How to do we link a html file to a css file?
using a tag into the section of script.
How to add a video to a webpage?
RAW TEXT
What is <br></br> and does it have a closing tag?
a line breaker and NO
How to add an image to a html file?
<img></img>
- NOTICE THE LACK OF A CLOSING TAG
What is the alt tag attribute in the <img></img> tag used for?
An alternative text if an image cannot be displayed
What is <span>?</span>
Small piece of text which is separated from the rest