WP Lecture 4 HTML II
WP Lecture 4 HTML II
PROGRAMMING
LECTURE # 4
Web Design
Development
HTML Headings
Headings are defined with the <h1> to <h6> tags.
H1 headings should be main headings, followed by h2
headings, then the less important h3, and so on.
Web Design
Development
HTML heading
Bigger Heading
Each HTML heading has a default size. However, you
can specify the size for any heading with
the style attribute, using the CSS font-size property:
Web Design
Development
HTML Paragraph
HTML paragraph starts from <p>
A paragraph always starts on a new line, and browsers
automatically add some white space (a margin) before
and after a paragraph
Web Design
Development
HTML Horizontal Rules
The <hr> tag creates a horizontal line in an HTML
page.
Can be used to separate content.
<p><h2>New Website</h2>.. </p>
<hr>
Coming Soon!!!
<hr>
Web Design
Development
HTML Paragraphs
The HTML <p> element defines a
paragraph.
<p>My Paragraph</p>
<p>Second Paragraph</p>
HTML Line Breaks
The HTML <br> element defines a line
break.
Web Design
Development
HTML Paragraphs
HTML <pre> tag
The HTML <pre> element defines preformatted text.
The text inside a <pre> element is displayed in a fixed-
width font (usually Courier), and it preserves both
spaces and line breaks:
Web Design
Development
HTML Styling and Formatting
HTML Styling
Changing the default style of an HTML element, can be
done
with the style attribute.
<body style="background-color:lightgrey">
style="property:value"
Web Design
Development
HTML Styling and Formatting
HTML Fonts
<h1 style="font-family:verdana">This is a heading</h1>
<p style="font-family:courier">This is a paragraph.</p>
Web Design
Development
HTML Styling and Formatting