Presentation is loading. Please wait.

Presentation is loading. Please wait.

HTML Line Breaks and HTML Horizontal Rules (Lines)

Similar presentations


Presentation on theme: "HTML Line Breaks and HTML Horizontal Rules (Lines)"— Presentation transcript:

1 HTML Line Breaks and HTML Horizontal Rules (Lines)

2 Use the tag if you want a line break (a new line) without starting a new paragraph: HTML Line Breaks The element is an empty HTML element. It has no end tag.

3 or In XHTML, XML, and future versions of HTML, HTML elements with no end tag (closing tag) are not allowed. Even if works in all browsers, writing instead is more future proof. This is a para graph with line breaks This is a para graph with line breaks Example CodeResult

4 HTML Rules (Lines) The tag is used to create an horizontal rule (line). This is a paragraph This is a paragraph This is a paragraph

5 Horizontal Rule Attributes Attribute Name DefinitionValues AlignIndicates the horizontal alignment of the horizontal rule. Ex. left, center, right SizeIndicates the size of the horizontal rule in pixels. Ex. Number of pixels WidthIndicates the width of the horizontal rule in pixels or percent of the width displayed by the Web browser. Ex. Number of pixels or number expressed as percent NoshadeIndicates if the default shading in the horizontal rule is to be removed. Ex. none ColorIndicates the color of the horizontal rule. Ex. Assigned name or hexadecimal value of the color class, id, style Used in Cascading Style Sheet or CSS

6 Activity Design a webpage using the content and format below.


Download ppt "HTML Line Breaks and HTML Horizontal Rules (Lines)"

Similar presentations


Ads by Google