Text Elements.

Slides:



Advertisements
Similar presentations
MA foundation Creating webpages using XHTML (part 1) Simon Mahony CCH
Advertisements

Anne McGrath 16 th February  Review of what we have learned so far.  Angled brackets surround HTML tags.  The words between the angled brackets.
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
Web Page Development Identify elements of a Web Page Start Notepad
Web page - A Web page is a simple text file that contains HTML tags (code) that describe what should be displayed on the browser. -The Web browser interprets.
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
Define html document byusing Example : Title of the document The content of the document......
HTML (HyperText Markup Language)
1.  Describe the anatomy of a web page  Format the body of a web page with block-level elements including headings, paragraphs, lists, and blockquotes.
HTML Tags Basic Tags Doctype or HTML Head Title Body Use the website to find the definitions
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
Essentials of HTML Class 4 Instructor: Jeanne Hart
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, and.
Elements and Attributes. XHTML Elements The element contains special information that does not necessarily show up on the web page. The element determines.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Text Elements. We've already learned about the,,,, and elements. Now let's learn some elements that we'll use to present actual text content on our web.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Tutorial 1 – Creating Web Pages With HTML
INTRO TO WEB DEVELOPMENT html
CHAPTER 2 MARKUP LANGUAGE
HTML Basics.
Web Development Part 1.
BHS Web Design Mr. Campbell
LAB Work 01 MBA 61062: E-Commerce
Marking Up with XHTML Tags describe how a web page should look
Introduction to basic HTML
HTML Programming Basic HTML text formatting.
Elements of HTML Web Design – Sec 3-2
Elements of HTML Web Design – Sec 3-2
Formatted Lists Unordered Lists Usage of Unordered List Ordered Lists
Text Elements.
Chapter 1: Introduction to XHTML (part 1)
HTML Lists CS 1150 Fall 2016.
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Formatted Lists Unordered Lists Usage of Unordered List Ordered Lists
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
Elements and Attributes
HTML Robert McIntosh
Web Programming– UFCFB Lecture 5
HTML (HyperText Markup Language)
Text Elements.
5.2.3 Be able to use HTML and CSS to construct web pages
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Text Elements.
HOW PAGES USE STRUCTURE HEADLINE HOW PAGES USE STRUCTURE TEXT.
HTML ELEMENTS Ms. Olifer.
Introduction to XHTML Cont:.
HTML Lists CS 1150 Spring 2017.
Formatted Lists Unordered Lists Usage of Unordered List Ordered Lists
HTML Formatting Text.
HTML Structure.
Marking Up with XHTML Tags describe how a web page should look
Text Elements.
HyperText Markup Language
Marking Up with XHTML Tags describe how a web page should look
Johan Ng and Muhammad Hazzry
Basics of Web Design Chapter 2 HTML Basics Key Concepts
HOW PAGES USE STRUCTURE HEADLINE HOW PAGES USE STRUCTURE TEXT.
Lesson 2: HTML5 Coding.
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Marking Up with XHTML Tags describe how a web page should look
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Text Elements

XHTML Text Elements <p> Paragraph <br> Line Break An XHTML element is a component of an XHTML document. It is typically comprised of a start tag, an end tag, and some web content in between the start and end tag. We've already learned about the <html>, <head>, <body>, <meta>, and <title> elements. Now let's learn some elements that we'll use to present actual text content on our web page: <p> Paragraph <br> Line Break <hr> Horizontal Rule <h1> - <h6> Headings <ul> Unordered List <ol> Ordered List <li> List Item

The <p> Element The standard way of presenting blocks of text in an XHTML document is to use the <p> ("paragraph") element: <body> <p>This is a paragraph of text. We can make it as long as we wish. The browser will automatically wrap the lines to accommodate the size of the browser window.</p> <p>This is the second paragraph of text.</p> </body> The paragraph element adds a blank line above and below the text. Text content can also exist in an XHTML document all by itself. However, this is not recommended, as it's easier to format and style text inside a <p> element, as we'll learn later in the course.

The <br> Element The <br> ("break") element creates a line break without adding any blank lines above or below: <body> <p>This is a paragraph of text. We can make it as long as we wish. The browser will automatically wrap the lines to accommodate the size of the browser window.</p> <p>This is the second <br />paragraph of text.</p> </body> A handful of elements do not use a separate closing tag. We already saw the <meta> element from the first lesson. <br> is another example. In these cases, the forward slash is placed at the end of the opening tag itself, and these are known as self-closing elements.

The <hr> Element The <hr> ("horizontal rule") element draws a horizontal line across the screen: <body> <p>This is a paragraph of text. We can make it as long as we wish. The browser will automatically wrap the lines to accommodate the size of the browser window.</p> <hr /> <p>This is the second paragraph of text.</p> </body> Note that the <hr> element is another self-closing element and includes the trailing slash.

The <h1> - <h6> Elements Heading elements provide structure to a web page: <body> <h1>This is an h1 heading.</h1> <h2>This is an h2 heading.</h2> <h3>This is an h3 heading.</h3> <h4>This is an h4 heading.</h4> <h5>This is an h5 heading.</h5> <h6>This is an h6 heading.</h6> </body> Heading elements add blank lines before and after the text, just like <p> does. The <h1> element - often referred to as the main heading - indicates the most important heading and should be used no more than once per page. The role of XHTML is to define and organize content, not to format it. Heading elements should not be used as a way to bold words on the page. Rather, they should be used to define the relative importance of content. Thus, <h2> is more important than <h3>. Lower elements (e.g. <h4>) can be used, even if higher ones (e.g. <h3>) haven't.

The <ul> Element The <ul> element ("unordered list") creates an indented bullet point list of items: <body> <p>Fruit in Alphabetical Order:</p> <ul> <li>Apples</li> <li>Bananas</li> <li>Cantaloupes</li> </ul> </body> The <li> element ("list item") is used for each individual item in a list. They are all nested within the <ul> tags. By default, the list items are shown with bullet points, but this can be changed to squares, circles, or other graphics using CSS, which we will learn later in the course.

The <ol> Element The <ol> element ("ordered list") creates an indented list of numbered items: <body> <p>Fruit in Alphabetical Order:</p> <ol> <li>Apples</li> <li>Bananas</li> <li>Cantaloupes</li> </ol> </body> The <ol> element works identically to the <ul> element. The only difference is whether the listed items are shown with bullet points or numbers. By default, the list items show with incrementing numbers. By using CSS, we can change this to letters or Roman numerals.