Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

COMPUTER PROGRAMMING

(TVL-ICT)

dotNet Technology
HTML HTML HEADINGS
Basics
HTML includes six levels of headings, which are
ranked according to importance.
These are <h1>, <h2>, <h3>, <h4>, <h5>, <h6>

***NOTE: It is not recommended that you use headings just to make the text big or bold,
because search engines use headings to index the web page structure and content
HTML HTML HEADINGS
Basics
CODE OUTPUT
HTML HORIZONTAL LINES
Basics
To create a horizontal line, use the <hr> tag.
This tag used to separate content (or define a
change) in an HTML page.

***NOTE: In HTML5, the <hr> tag defines a thematic break


HTML HORIZONTAL LINES
Basics
CODE OUTPUT
HTML COMMENTS
Basics
The browser does not display comments, but they
help document the HTML and add descriptions,
reminders, and other notes.
HTML COMMENTS
Basics
CODE OUTPUT

AS YOU CAN SEE, THE COMMENT IS


NOT DISPLAYED IN THE BROWSER.

***NOTE: There is an exclamation point (!) in the opening tag, but not in the closing tag.
HTML PARAGRAPH
Basics
To create a paragraph, simply type in the <p>
element with its opening and closing tags
HTML PARAGRAPH
Basics
A paragraph always starts on a new line and is
usually a block of text.

***NOTE: Browsers automatically add an empty line before and


after a paragraph.
HTML PARAGRAPH
Basics
The browser will automatically remove any extra
spaces and lines when the page is displayed
Code Display
HTML LINE BREAK
Basics
Use the <br> tag to add a single line of text without
starting a new paragraph
HTML LINE BREAK
Basics
CODE
***NOTE: The <br> element is an empty
HTML element. It has no end tag

OUTPUT
HTML PRE FORMATTED TEXT

Basics
The <pre> tag defines preformatted text. Text in a
element is displayed in a fix-width font (usually
Courier), and the text preserves both spaces and line
breaks. The text will be displayed exactly as written
in the HTML source code.
HTML PRE FORMATTED TEXT

Basics
CODE

OUTPUT
Thank You

See you again next


time!

You might also like