HTML Flashcards
<title>
</title>
Title for HTML page, shows in title bar or pages tab
<body>
</body>
The body of the page
<h1>
</h1>
Top header goes up to h6
<p>
</p>
creates a new paragraph
<img></img>
used to add images
src
gets the image from the specified location
alt
provides alternate text if image does not load
<br></br>
line break, doesn’t need to be closed
Title for HTML page, shows in title bar or pages tab
<title>
</title>
The body of the page
<body>
</body>
header
<h1> - <h6>
</h6></h1>
paragraph
<p>
</p>
display image
<img></img>
get image location
src
line break
<br></br>, doesn’t need to be closed
br style=”line-height:N;”
line break N times
multiple line breaks
<br></br>
<a></a>
defines hyperlink
define hyperlink
<a></a>
href
specifies URL for the link
specify URL for a link
href
style
adds an element, such as color, font, size, and more
<p>
</p>
make everything in this paragraph X color
adds an element, such as color, font, size, and more
style
make everything in this paragraph X color
<p>
</p>
lang
defines the language of the text en-US for USA english
title
when moused over displays this text
defines the language of the text
lang, en-US for USA english
when moused over displays this text
title
“font-size:Xpx;”
sets font size X for that tag