HTML fundamentals Flashcards
Learn the essential tags (31 cards)
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?
- Item
- Another item
- Item
- Another item
- Definition term
- Definition data (can be multiple)