0% found this document useful (0 votes)
21 views

Compsci HTML

Uploaded by

maggie
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Compsci HTML

Uploaded by

maggie
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

HTML/CSS Codes

Code Meaning Sample Usage

<html> surrounds HTML document <html>...</html>

<body> surrounds body <body>...</body>

<b> bold-face <b>...</b>

<center> centers text <center>...</center>

<p> paragraph <p>...</p>

<br> line break …<br>

<li> numbered list <li>...</li>

<ul> unordered list <ul>


<li>...</li>
</ul>

<ol> ordered list <ol>


<li>...</li>
</ol>

<h1><h2><h3><h4> header <h#>...</h#>


<h5><h6>

<img> image <img src=”...”>


<img src=”...”> “src”: source

width, height width and length of chosen <img src=”...” width=”#”


image height”#”>

<a> links to another page <a>link</a>

<i> italicized text <i>...</i>

<u> underlines text <u>...</u>

<table> border(?)of table <table border=”#”>

<tr> table row <table border=”#”>


<tr>
</tr>

<td> creates cell <table border=”#”>


<tr>
<td>...
</td>
</tr>

<!--...--> everything in between dashes <!--blahblah-->


becomes a comment

You might also like