Docsity

CSE 154 Web Programming HTML Syntax “Cheat Sheet”, Schemes and Mind Maps of Web Application Development

Toggle sidebar
bg1
CSE 154: CSE 154 Web Programming
HTML Syntax “Cheat Sheet”
HTML Page Structure (2.1.2)
<!DOCTYPE html>
<html>
<head>
information about the page (not visible on page)
</head>
<body>
page contents (visible on page)
</body>
</html>
Tags Used in the head Section
Tag Description
<title> text </title> title shown on page tab
<meta attribute="value" ... /> page metadata
<link href="url" type="text/css" rel="stylesheet" /> links to a CSS style sheet
<script src="url" type="text/javascript"/></script> link to JavaScript code
<!– comments –> comment (can appear in head or body)
Tags Used in the body Section
Tag Description
<p> text </p> paragraph
<h1> text </h1> (h1 for largest to
<h2> text </h2> h6 for smallest)
...
<h6> text </h6>
<hr /> horizontal rule (line)
<br /> line break
<a href="url"> text </a> anchor (link)
<img src="url" alt="description" /> image
<em> text </em> emphasis (italic)
<strong> text </strong> strong emphasis (bold)
1
pf3

Partial preview of the text

Download CSE 154 Web Programming HTML Syntax “Cheat Sheet” and more Schemes and Mind Maps Web Application Development in PDF only on Docsity!

CSE 154: CSE 154 Web Programming

HTML Syntax “Cheat Sheet”

HTML Page Structure (2.1.2)

information about the page (not visible on page)

page contents (visible on page)

Tags Used in the head Section

Tag Description text title shown on page tab page metadata links to a CSS style sheet link to JavaScript code comment (can appear in head or body)

Tags Used in the body Section

Tag Description

text

paragraph text (h1 for largest to text h6 for smallest) ... text horizontal rule (line)
line break text anchor (link) image text emphasis (italic) text strong emphasis (bold)

Tags Used in the body Section (Continued)

Tag Description ordered (ol) and unordered (ul) list; text list item (li) text

nested item nested item

definition list (dl); term 1 term (dt), and its description (dd) description 1 term 2 description 2

block-level quotation

text

...

text inline-level quotation text computer code (monospace) text pre-formatted text (preserves whitespace) table of data (table) text description of table (caption) table row (tr) heading 1 table heading cell (hr) heading 2 normal table cell (td)

cell 1 cell 2

...

... block-level section of a page ... inline-level section of a page