• <!DOCTYPE html>--- first part of a html doc
  • <html>--- after ^
  • <head>--- info about the page
  • <title> the title... obviously

-

  • <h1>-<h6>--- headings. 1 is the biggest, 6 is the smallest. like font sizes*
  • <p>--- paragraph
  • <body>--- what is displayed on the screen
  • <div>--- "division" groups elements. also IDs them
  • id=...--- goes inside of a div element. labels text. must be in quotes
  • <span>--- used with <p>. used to separate small pieces of content on the same line?
  • <em>--- italics
  • <strong>--- bold
  • <br>--- "line break". like an enter in google doc. can be stacked

-

  • <a>--- anchor. title for link
  • href--- source for link. goes before title
  • target--- how the link should open in new windows. goes in-between href and title
  • _blank--- ^^^^
  • to make images links, wrap it with an <a> tag

-

  • <ul>--- "unordered list" makes bullets
  • <ol>--- "ordered list" makes numbers
  • <li>--- items under lists

-

  • <img>--- image tag
  • src=image.jpg--- stands for "source". the source where the image is taken from on the web. EX: <img src=image-location.jpg/>
  • alt--- description of the image. after src
  • <video>--- video (obviously). <video src="myVideo.mp4" width="320" height="240" controls> </video>
  • to link something on the same page, you need to use its "id=..."
  • <!-- + -->__ comments. will not show

-

  • <table>--- creates table
  • <tr>--- rows for the table
  • <td>--- columns in the table. goes after row creation.
  • <th>--- table heading.
  • scope=--- specifies if a header box is a row or column
  • row/col--- ^^^^
  • border="(number)"--- indicates table thickness. inferior code but idc.
  • colspan="(number)"---defines the number of columns a table cell should span
  • rowspan="(number)"--- defines the number of row a table cell should span
  • <tbody>--- specifies what is in the tables body. the table version of <body>
  • <thead>--- specifies what is in the tables head. the table version of <head> or a header
  • <tfoot>--- the "footer" of a table. usually includes the totals of something at the end.
  • <>---
  • <>---
  • <>---
  • <>---
  • <>---
  • <>---
  • <>---
aug 21 2024 ∞
nov 29 2025 +