0% found this document useful (0 votes)
12 views2 pages

HTML Image Tag Overview

Computer science

Uploaded by

bdhjnh7cwp
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

HTML Image Tag Overview

Computer science

Uploaded by

bdhjnh7cwp
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Short tag Description End tag

</head> Contains all the main content </head>


of your web page

<p> A tag to separate sentences </p>

<body> Contains all the main </body>


contents of your webpage

<html> Indicates the beginning of </html>


your code written in HTML

<!doctypehtml> Tells the computer that this is No end tag


a document written in HTML

<h1> Largest heading tag, typically </h1>


used for web page titles

<h2> to <h6> Heading tags, typically used </h2> to </h6>


for subtitles

<ul> Starts an unordered list </ul>

<ol> Starts an ordered list </ol>

<li> Actually creates the list item </li>

<center> Allows you to center the </center>


header

<li2> Put things underneath without </li2>


a space underneath a bullet
point

Src The name of the image file (Source)


you want your webpage

Alt If an image does not laid on a (Alternative text)


web page, it is this alternate
text that will show up and
should show short descriptive
word about the image

<img src="[Link]" Image tag example


alt="Family of elephants">

<link rel="stylesheet" CSS code


href="[Link]">

<img class="top-img" CSS code For image to change a top


image but now a bottom
image

<a For linking web pages


href="[Link]">Home</a>

You might also like