Introducing XHTML

Constructing a webpage

Setting It All Up

Every XHTML code will have this format. The basic and required tags included are:

html
head
title
body

The content will then be inserted within the body tag area

example of html coding

Common Elements

div - separating content with an invisible box
h1, h2... - creates headings of different sizes
p - creates paragraphs
li - creating lists
a - inserting links
header - inserting a header at the top
footer - inserting a footer at the bottom
br / - adding a line break between content
strong - to indicate emphasis

Common attributes

class - creates a code for CSS to design with .
id - creates a code for CSS to design with #
h1, p, body are also used by the CSS code

html elements

Revert to CSS for comparison