Professional Documents
Culture Documents
A. HTML Headings
• HTML includes six levels of headings, which are ranked according to importance. These
are labelled <H1> to <H6>, respectively:
<HTML>
<HEAD>
<TITLE>first page</TITLE>
</HEAD>
<BODY>
<H1>This is heading 1</H1>
<H2>This is heading 2</H2>
<H3>This is heading 3</H3>
<H4>This is heading 4</H4>
<H5>This is heading 5</H5>
<H6>This is heading 6</H6>
</BODY>
</HTML>
B. Horizontal Lines
• Uses the <HR /> tag for its declaration:
<HTML>
<HEAD>
<title>first page</title>
</HEAD>
<BODY>
<P>This is a paragraph </P>
<hr />
<P>This is a paragraph </P>
</BODY>
</HTML>
C. Comments
• These are not displayed by the browser, but read by the compiler.
• Helps document HTML code by adding descriptions, reminders, and other notes:
<!-- Your comment goes here -->
IV. Elements
• HTML documents are made up of HTML elements.
• An HTML element is written using a start tag and an end tag, with the content in between.
• HTML elements can be nested within the HTML document:
<HTML>
<HEAD>
<TITLE>first page</TITLE>
</HEAD>
<BODY>
<P>This is a paragraph <BR /></P>
</BODY>
</HTML>
• Some elements do not require a closing tag, such as the single-line break element.
V. Attributes
A. HTML Attributes
• Attributes provide additional information about an element or a tag, while modifying
them.
• Most attributes have a value that modifies the attribute:
<P ALIGN="center">
This text is aligned to center
</P>
B. Attribute Measurements
• Some attributes are flexible enough to use different types of values, such as fixed values
and percentage values.
• For example, using a fixed value for the width attribute will only have a non-adjustable
width:
<HR WIDTH="50px" />
• Using a percentage value will allow the width to adjust according to any related value
(such as parent element width):
<HR WIDTH="50%" />
Reference:
SoloLearn.com – HTML. Retrieved on May 07, 2018 at
https://www.sololearn.com/Play/HTML/
w3schools.com – HTML. Retrieved on May 09, 2018 at
https://www.w3schools.com/html/default.asp