HTML Headings • Headings are defined with the

to

tags. –

defines the most important heading. –

defines the least important heading.

• Use HTML headings for headings only.

– Don't use headings to make text BIG or bold. – Search engines use your headings to index the structure and content of your web pages. – Since users may skim your pages by its headings, it is important to use headings to show the document structure.

• H1 headings should be used as main headings, followed by H2 headings, then the less important H3 headings, and so on. • Browsers automatically add some empty space (a margin) before and after each heading 11/14/2011

HTMLIntro_Lesson_03.ppt

1

HTML Headings (continued) • • • • • • • • • • • •

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6


11/14/2011

HTMLIntro_Lesson_03.ppt

2

HTML Lines • The
tag creates a horizontal line in an HTML page. • The hr element can be used to separate content:

11/14/2011

HTMLIntro_Lesson_03.ppt

3

HTML Lines (continued) • • •

The hr tag defines a horizontal rule:


This is a paragraph


This is a paragraph

• •

11/14/2011

HTMLIntro_Lesson_03.ppt

4

HTML Comments • Comments can be inserted into the HTML code to make it more readable and understandable. • Comments are ignored by the browser and are not displayed. • Comments are written like this: – – There is an exclamation point after the opening angle bracket, but not before the closing angle bracket.

11/14/2011

HTMLIntro_Lesson_03.ppt

5

HTML Comments (continued) • • • • • • • • • • •

This is a regular paragraph

This is another regular paragraph

And still another regular paragraph



11/14/2011

HTMLIntro_Lesson_03.ppt

6

HTML Paragraphs • Paragraphs are defined with the

tag. • Browsers automatically add an empty line before and after a paragraph.

HTML Line Breaks • Use the
tag if you want a line break (a new line) without starting a new paragraph • The
element is an empty HTML element. It has no end tag. 11/14/2011

HTMLIntro_Lesson_03.ppt

7

HTML Paragraphs (continued) • • •

This is a paragraph. •

This is a paragraph. •

This is a paragraph. •

Don't forget to close your HTML tags!

• •

11/14/2011

HTMLIntro_Lesson_03.ppt

8

HTML Line Breaks (Continued) • • • •

This is
a para
graph with line breaks

• • •

11/14/2011

HTMLIntro_Lesson_03.ppt

9

HTML Rendering • You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will create different results • With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code • The browser will remove extra spaces and extra lines when the page is displayed. Any number of lines count as one line, and any number of spaces count as one space 11/14/2011

HTMLIntro_Lesson_03.ppt

10

HTML Rendering (continued) • • • • • • • • • • • • • • • • • • • • • • •

My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me.



Note - your browser ignores the layout!



11/14/2011

HTMLIntro_Lesson_03.ppt

11

View HTML Code • Have you ever seen a Web page and wondered "Hey! How did they do that?" • To find out, right-click in the page and select: – "View Source" in Internet Explorer, or – "View Page Source" (Firefox), or – similar for other browsers.

• This will open a window containing the HTML code of the page. 11/14/2011

HTMLIntro_Lesson_03.ppt

12

HTML Headings

This is heading 4

. •.
This is heading ... Comments are ignored by the browser and are not displayed. ... "View Source" in Internet Explorer, or.

204KB Sizes 1 Downloads 188 Views

Recommend Documents

January Newsletter (without headings).pdf
Page 1 of 1. Teacher: Date: 9bWiiheecD[mi. ©2011 The Mailbox® • www.themailboxcompanion.com. Page 1 of 1. January Newsletter (without headings).pdf.

pdf-1839\headings-for-tomorrow-public-access-display-of-subject ...
Try one of the apps below to open or edit this item. pdf-1839\headings-for-tomorrow-public-access-display-of-subject-headings-from-amer-library-assn.pdf.

ajax1.html 1/2 ajax1.html 2/2 - CS50 CDN
3: ajax1.html. 4: 5: Gets stock quote from quote1.php via Ajax, displaying result with alert(). 6: 7: Computer Science 50. 8: David J. Malan. 9: 10: -->. 11: 12:

HTML-opoly.pdf
Create your interpretation of the HTMLopoly gameboard using only HTML. That means craft a. table of cells to hold individual pictures and text that will ...

Introduction to HTML
HTML tags are used to mark-up HTML elements. ○ HTML tags are surrounded by the two characters < and >. ○ The surrounding characters are called angle ...

map1.html 1/1
map1.html. 1/1 lectures/8/src/. 1: . 11:.

map1.html 1/1
map1.html. 1/1 lectures/8/src/. 1: . 11:.

map1.html 1/1
map1.html. 1/1 lectures/8/src/. 1: . 11:.

Introduction to HTML
HTML tags are used to mark-up HTML elements. ○ HTML tags are surrounded by the two characters < and >. ○ The surrounding characters are called angle ...

HTML khmer.pdf
Page 1 of 106. រមក. សពៃថេនះ. រេ. ប . សក់ ុំពូ. ទ័រ គឺមេធយ!៉ងស$ន ំ ់មួយ ក&. ុ. ង. រេ'ះ. (យប)* និងជួយសរំលដល ួ. រ ់. /រ.Missing:

HTML khmer.pdf
99. Page 3 of 106. HTML khmer.pdf. HTML khmer.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying HTML khmer.pdf. Page 1 of 106.

HTML Que.pdf
SGML (Standard generalized markup language) is a standard which tells how ... Hypertext Application Technology Working Group (WHATWG). ... HTML Que.pdf.

html pdf embed
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. html pdf embed.

Basic HTML Book.pdf
Page 3 of 52. Basic HTML Book.pdf. Basic HTML Book.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Basic HTML Book.pdf. Page 1 of 52.

HTML 4.01 Specification
Dec 18, 1997 - translations of this document, see http://www.w3.org/MarkUp/html4-updates/translations. 2. 24 Dec 1999 18:26. HTML 4.01 Specification ...

HTML sitedu0.pdf
Page 1 of 249. Apprenez à créer. votre site web avec. HTML5 et CSS3. Par Mathieu Nebra (M@teo21). Ce PDF vous est offert par. www.supinternet.fr.

html template premium.pdf
Whoops! There was a problem loading this page. Whoops! There was a problem loading this page. html template premium.pdf. html template premium.pdf. Open.

lecture1/html/cs164/css/index.html
lecture1/html/cs164/css/index.html. . 10. 11. . 12. 13. . 14. . 15. . 16. . 17.

GSaudiaArabia HTML 5
New tags and Javascript: content editable, semantic tags. (article, section, etc.), history API, drag and drop from page to desktop, file access, local SQL database, web sockets, Canvas. OpenGL, ARIA attributes, ... New CSS: transformations, advanced

lecture1/html/cs164/css/index.html
Syllabus. 24. ...... lecture1/html/mvc/8/application/views/homepage/lecture.php.

Curso-HTML-+-CSS.pdf
Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Curso-HTML-+-CSS.pdf. Curso-HTML-+-CSS.p

HTML e CSS.pdf
... si devono usare questi tag per. modificare i caratteri ma per dare maggiore o minore importanza a un titolo. Page 3 of 21. HTML e CSS.pdf. HTML e CSS.pdf.