0% found this document useful (0 votes)
4 views11 pages

HTML Structure and Comments Guide

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views11 pages

HTML Structure and Comments Guide

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Lesson: 2

ICT

TECHNO WEB
by DEVELOPMENT
Sabiha Kamran
ICT: Lesson 1

HTML STRUCTURE
• Comments are ignored by
web browsers.
• They aid in code
HTML COMMENTS readability and
documentation.
• HTML comments are
denoted by <!--
content -->.
• The shortcut key for
commenting out code is
• Ctrl + /.
• HTML supports both single-
TYPES OF COMMENTS IN
HTML

HTML primarily supports two types of


comments:

• Single-line
Comments
• Multi-line
Comments
SELF CLOSING ELEMENT

Self closing tags defines empty elements in HTML and are called self-
closing tags. Empty elements with no text contents. like line
breaks .....
<br />
HTML Attributes

• All HTML elements can have attributes


• Attributes provide additional information about
elements
• Attributes are always specified in the start tag
• Attributes usually come in name/value pairs like:
name="value"
HTML is Not Case
Sensitive
The href
Attribute

The <a> tag defines a hyperlink.


The href attribute specifies the URL of the page the
Attribut link goes to:
e Example
<a href="[Link]
EXCERCISE
EXCERCISE
ICT

PRACTICAL TASK

DO THE SAME AT
HOME

You might also like