HTML Flashcards
Tag for the root of the document
<!DOCTYPE html>
<html>
Rest of code inside
</html>
Tag for the head (description)
<head>
Title inside
</head>
Tag for the title
<title>
Text inside
</title>
Tag for the body (main section)
<body>
Main section inside
</body>
Tag for largest heading size
<h1>Text</h1>
Tag for smallest heading size
<h6>Text</h6>
Tag for a paragraph (standard text)
<p>
Text inside
</p>
Tag for italics
<i> text </i>
Or
<em> text </em>
Tag for bold
<b> text </b>
Or
<strong> text </strong>
Tag for line break
text <br></br> text
This displays wrong. Ignore closing br tag
Tag to centre text
<center>Text</center>
Tag for horizontal rule
<hr></hr>
This displays wrong. Ignore closing hr tag
Definition and tag for block quote
Specifies a section quoted from another source. Browsers usually source quotes
<blockquote>
Text inside
</blockquote>
Tag for ordered list
<ol>
List entries
</ol>
Tag for unordered list
<ul>
List entries
</ul>
Tag to define list items
<li>text</li>
Tag for anchor (website link)
<a href=“website link”> text displayed </a>
Tag for mailto (email address)
<a href=“mailto:email address”> text displayed </a>
Tag for image
<img></img> </img src=”image link” alt=”text displayed” width=”…” height=”…”>
This displays wrong. Ignore the first img tag and slash in the actual tag
Tag for underline
<u> text here </u>