HTML fundamentals Flashcards
Learn the essential tags
What is the root element in English?
The root element is:
html lang=βenβ within tag symbols
What element contains meta information and with what attribute?
How do you specify the title of the document?
What is the element for a paragraph?
<p> </p>
(Will automatically word wrap)
What are the elements for paragraphs and how many types?
<h1> etc to <h6></h6></h1>
How can you preserve spaces and line breaks in text?
<pre> </pre>
How can you add emphasis or italicise text?
<em> for emphasis <b> for bold <i> for italic</i></b></em>
How do you add a line break?
<br></br>
What is the root element in English?
What element contains meta information and with what attribute?
How might you use the class attribute with span?
.tab {margin-left: 50px;} (in header)
<p><span>Text here</span></p> (body)
What is the element for a paragraph?
<p> </p>
(Will automatically word wrap)
What are the elements for paragraphs and how many types?
<h1> etc to <h6></h6></h1>
Give an example of stylesheet contents?
body {background-colour: powder blue;} h1 {color: blue;} p {color: red;} p.tab1 - p elements with class tab1
How does an html page link to a stylesheet?
How do you add a line break?
<br></br>
What elements will define blocks of text, which can take style attributes?
or <div></div>
How do you insert a single space?
 
In a table, how to you get multiple rows or columns?
Use attributes colspan and rowspan.
How might you use the class attribute with span?
.tab {margin-left: 50px;} (in header)
<p><span>Text here</span></p> (body)
What file extension defines html files?
.html or .htm
What file extension defines css files?
.css
Give an example of stylesheet contents?
body {background-colour: powder blue;}
h1 {color: blue;}
p {color: red;}
How does an html page link to a stylesheet?
How do you define the target of styling?
Use one of four selectors: element, class, ID or pseudo (hover, visited)
How do you define a table with a border?
How do you define the elements within a table?
defines each header element
defines each header row
defines each table cell
How do you define unordered lists?
<ul>
<li>Item</li>
<li>Another item</li>
</ul>
How do you define ordered lists?
<ol>
<li>Item</li>
<li>Another item</li>
</ol>
How do you define definition lists?
<dl>
<dt>Definition term</dt>
<dd>Definition data</dd> (can be multiple)
</dl>
How do you define a document as HTML5?
Use
!DOCTYPE html