Docsity

HTML Complete Notes: Tags, Elements, Attributes & Structure – IT/Computer Science, Study notes of Technology

Partial preview of the text

Download HTML Complete Notes: Tags, Elements, Attributes & Structure – IT/Computer Science and more Study notes Technology in PDF only on Docsity!

Introduction to

HTML

Definitions

 HTML – HyperText Markup Language –

The Language of Web Pages on the World

Wide Web.

HTML is a text formatting language.

 URL – Uniform Resource Locator.

 Browser – A software program which is

used to show web pages.

Tags  Codes enclosed in brackets  Usually paired My Web Page  Not case sensitive = <title> = <TITLE>

Choosing Text Editor

 There are many different programs that

you can use to create web documents.

 HTML Editors enable users to create

documents quickly and easily by pushing a

few buttons. Instead of entering all of the

HTML codes by hand.

 These programs will generate the HTML

Source Code for you.

 NotePad, Notepad++, sublime etc.

7 HTML P age C reation & E diting

In this chapter you will learn to create HTML

pages with a standard text editor.

Objectives

Upon completing this section, you should be

able to

1. Choose a Text Editor.

2. Create a Basic Starting Document.

3. Understand and set Document Properties.

4. View Your Results in a Browser.

Creating a Basic Starting Document

My First Page

Setting Document Properties  Document properties are controlled by attributes of the BODY element. For example, there are color settings for the background color of the page, the document’s text and different states of links.

11 Color Codes

  1. WHITE
  2. BLACK
  3. RED
  4. GREEN
  5. BLUE
  6. MAGENTA
  7. CYAN
  8. YELLOW
  9. AQUAMARINE
  10. BAKER’S CHOCOLATE
  11. VIOLET
  12. BRASS
  13. COPPER
  14. PINK
  15. ORANGE
1. #FFFFFF
3. #FF 0000
4. # 00 FF 00
5. # 0000 FF
6. #FF 00 FF
7. # 00 FFFF
8. #FFFF 00
9. # 70 DB 93
10. # 5 C 3317
11. # 9 F 5 F 9 F
12. #B 5 A 642
13. #B 87333
14. #FF 6 EC 7
15. #FF 7 F 00
H eadings, P aragraphs, B reaks & H orizontal
Line

In this chapter you will add headings to your page, insert paragraphs, add some breaks, and add horizontal rules. Objectives Upon completing this section, you should be able to

  1. List and describe the different Heading elements.
  2. Use Paragraphs to add text to a document.
  3. Insert breaks where necessary.
  4. Add a Horizontal Line.

Headings

 Inside the BODY element, heading elements
H 1 through H 6 are generally used for major
divisions of the document. Headings are
permitted to appear in any order, but you will
obtain the best results when your documents
are displayed in a browser if you follow these
guidelines:

1. H 1 : should be used as the highest level of heading, H 2 as the next highest, and so forth.

Paragraphs,

 Paragraphs allow you to add text to a

document in such a way that it will

automatically adjust the end of line to suite

the window size of the browser in which it

is being displayed. Each line of text will

stretch the entire length of the window.

Paragraphs,

Example Page

Heading 1

Paragraph 1 , ….

Heading 2

Paragraph 2 , ….

Heading 3

Paragraph 3 , ….

Heading 4

Paragraph 4 , ….

Heading 5

Paragraph 5 , ….

Heading 6

Paragraph 6 , ….

Heading 1

Paragraph 1 ,….

Heading 2

Paragraph 2 ,…. Heading 3 Paragraph 3 ,…. Heading 4 Paragraph 4 ,…. Heading 5 Paragraph 5 ,…. Heading 6 Paragraph 6 ,….

Break,

Example Page

Heading 1

Paragraph 1 , Line 2 Line 3 ….

Heading 1 Paragraph 1 ,…. Line 2 Line 3 ….

Horizontal Line,  The element causes the browser to display a horizontal line in your document.  does not use a closing tag, .