Docsity

HTML Week 2-3: Introduction to Hypertext Markup Language, Study Guides, Projects, Research of Computer Science

Partial preview of the text

Download HTML Week 2-3: Introduction to Hypertext Markup Language and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

WEEK 2-

HYPERTEXT MARK-UP

LANGUAGE

WS

WEB SYSTEMS AND TECHNOLOGIES I

LEARNING OUTCOMES

  • (^) Can apply the basic technology on internet and on website that incorporates using HTML
  • (^) Can create and design a website using HTML 2

What do I need to Begin?  (^) Folder(Also called as a directory)  (^) A Browser  (^) Word Processor 4

HTML Structure 5 HTML ELEMENT(

  • (^) begins and ends each and every web page.
  • (^) Its sole purpose is to encapsulate all the HTML code and describe the HTML document to the web browser.
  • (^) Remember to close your HTML documents with the corresponding tag at the bottom of the document. HEAD ELEMENT
    • (^) is "next" as they say
    • (^) The head functions "behind the scenes."
    • (^) Tags placed within the head element are not directly displayed by web browsers.

HTML - ELEMENTS

  • (^) An HTML element is defined by a starting tag.
  • (^) If the element contains other content, it ends with a closing tag
  • (^) Three basic parts:
    • (^) Opening Tag -

    • (^) Element Content -

words/sentences/paragraph

  • (^) Closing Tag -

    7

Example:

HTML-Elements

This is paragraph

See output...

HTML - BASIC TAGS

  • (^) Heading Tag
  • (^) Paragraph Tag
  • (^) Line Break Tag
  • (^) Center Content
  • (^) Horizontal Lines
  • (^) Preserve Formatting 8

Paragraph Tag

  • (^) The

    tag offers a way to structure your text into different paragraphs.

    Content

    10

Paragraph Example

Here is a first paragraph of text.

Here is a second paragraph of text.

Here is a third paragraph of text.

See Output... Example:

Line Break Tag

  • (^) Whenever you use the
    element, anything following it starts from the next line.
  • (^) This tag is an example of an empty element, where you do not need opening and closing tags, as there is nothing to go in between them.
  • (^) The
    tag has a space between the characters br and the forward slash.
    11

Line Break Example

Hello
You delivered your assignment on time.
Thanks
Godbless

See Output... Example:

Horizontal Lines

  • (^) Horizontal lines are used to visually break-up sections of a document.
  • (^) The tag creates a line from the current position in the document to the right margin and breaks the line accordingly. **** 13

Horizontal Line Example

This is paragraph one and should be on top

This is paragraph two and should be at bottom

See Output... Example:

Preserve Formatting

  • (^) Sometimes, you want your text to follow the exact format of how it is written in the HTML document.
  • (^) In these cases, you can use the preformatted tag . - content 14

Preformatted Text Example

( ) Meeeh ( oo ) \ /------------
|| |
||---------|| * || ||

See Output.. Example:

Logical Style Formatting 16 Logical Tags:

  1. Emphasis ()
  2. Strong Emphasis ()
  3. Citation () Examples:

Emphasized Text

Strongly Emphasized Text

Cited Text

Output: Emphasized Text Strongly Emphasized Text Cited Text

HTML – FONT FORMATTING

  • (^) Content
  • (^) Attributes: 17

HTML -LISTS

  • ** - An unordered list.** This will list items using plain bullets.
  • ** - An ordered list.** This will use different schemes of numbers to list your items.
  • ** - A definition list**. This arranges your items in the same way as they are arranged in a dictionary. 19

UNORDERED LISTS

  • (^) A collection of related items that have no special order or sequence.
  • (^) Each item in the list is marked with a bullet. 20

** Beetroot Ginger Potato Radish **

See output... Example: