HTML Programming Basic HTML text formatting.

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
OMT II Mam Saima Gul. * Static web page * a web page with contents that remain fixed and unchanged once it has been created by the author Web server Client.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Marking Up With Html: A Hypertext Markup Language Primer
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
CSCI 1101 Intro to Computers
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
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.
1 SEN 910 CSS/HTML Programming Basic HTML  hypertext  tags & elements  text formatting  hyperlinks  images  tables  frames.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Agenda Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,, Font Attributes: size, color, face Horizontal.
L. Anne Spencer (c) 2001 Basic Web Design Document, text, & layout formatting tags & attributes.
Web Development Lecture # 09 Text Formatting in HTML.
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, and.
CONTENTS INCLUDES :- TEXT LAYOUT SKILLS TEXT LAYOUT SKILLS FONTS EFFECT FONTS EFFECT HEADING ON WEB PAGES HEADING ON WEB PAGES IMAGE / PICTURE IMAGE /
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
The Web Wizard’s Guide to HTML Chapter Two Basic Text Formatting.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
HTML Basics Text, Images, Tables, Forms. HTML Structure HTML is comprised of “elements” and “tags” – Begins with and ends with Elements (tags) are nested.
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
HTML Basics.
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
INTRODUCTION TO HTML AND CSS
Text Elements.
Elements and Attributes
Introduction to HTML.
Web Programming– UFCFB Lecture 5
Tag Basics.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
Text Elements.
Computers and Scientific Thinking David Reed, Creighton University
DynamicHTML Cascading Style Sheet Internet Technology.
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
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.
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
Intro to Web Development HTML Structure
DynamicHTML Cascading Style Sheet Internet Technology.
INTRODUCTION TO HTML AND CSS
HTML Formatting Text.
Marking Up with XHTML Tags describe how a web page should look
Text Elements.
HyperText Markup Language
HTML Basics Mr. Fazzalari.
Marking Up with XHTML Tags describe how a web page should look
Johan Ng and Muhammad Hazzry
Getting Started with Marking Up Page Content
Text Elements.
Marking Up with XHTML Tags describe how a web page should look
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

HTML Programming Basic HTML text formatting

Structural elements an HTML document has two main structural elements HEAD contains setup information for the browser & the Web page e.g., the title for the browser window, style definitions, JavaScript code, … BODY contains the actual content to be displayed in the Web page <html> <!–- filename=page01.html --> <head> <title>Title for Page</title> </head> <body> Text that appears in the page </body> </html> HTML documents begin and end with <html> and </html> tags Comments appear between <!-- and --> HEAD section enclosed between <head> and </head> BODY section enclosed between <body> and </body>

Text layout the BODY can contain multiple lines of text <html> <!-- filename=page02.html --> <head> <title>Title for Page</title> </head> <body> This is a whole lot of text that goes on and on and on and . </body> </html> the BODY can contain multiple lines of text text layout and spacing is pretty much ignored by the browser every sequence of whitespace is interpreted as a single space browser automatically wraps the text to fit the window size  can layout text in an HTML document for readability, will not affect how it is viewed

Overriding default layouts <html> <!-- filename=page03.html --> <head> <title>Title for Page</title> </HEAD> <body> <p> This is a paragraph of text<br/> made up of two lines. </p> This is another paragraph with a   GAP   between some of the words.    This paragraph is<br/> indented on the first line<br/> but not on subsequent lines. </body> </html> for the most part, layout of the text must be left to the browser WHY? can override some text layout can cause a line break using the <br/> tag (no closing tag) can specify a new paragraph (starts on a new line, preceded by a blank line) using <p>…</p> can force a space character using the symbol for a non-breaking space:  

Separating blocks of text <html> <!-- filename=page04.html --> <head> <title>Title for Page</title> </head> <body> <h1>Major heading 1</h1> <p> Here is some text. </p> <h2>Subheading</h2> Here is some subtext. <hr/> <h1>Major heading 2</h1> Here is some more text. </body> </html> can specify headings for paragraphs or blocks of text <h1>…</h1> tags produce a large, bold heading <h2>…</h2> tags produce a slightly smaller heading . . . <h6>…</h6> tags produce a tiny heading can insert a horizontal rule to divide sections <hr/> draws line across window <hr width="50%" /> sets width <hr size=10 /> sets thickness

Aligning text <html> <!-- filename=page05.html --> <head> <title>Title for Page</title> </head> <body> <h1 style="text-align:center">Centered Heading</h1> <p> Here is some left-justified text (which is the default in HTML). </p> <p style="text-align:center"> Here is some centered text. <div style="text-align:right"> <h2>Right-justified Heading</h2> <p>Here is some right-justified text.</p> </div> </body> </html> can specify how elements should be aligned (default is left-justified) utilize STYLE attribute of tag to justify more than one element as a group, use DIV tags ell elements enclosed in DIV are formatted similarly

Text styles can specify styles for fonts <html> <!-- filename=page06.html --> <head> <title>Title for Page</title> </head> <body> <p> Text can be emphasized using <b>bold</b>, <i>italics</i>, or even <big>resizing</big>. <br/> <u>Underlining</u> text is not generally recommended since it looks too much a like a hyperlink. <br/> The typewriter font is good for displaying code: <small><tt>sum = sum + i;</tt></small> </p> </body> </html> can specify styles for fonts <b>… </b> specify bold <i>… </i> specify italics <u>… </u> specify underlined <tt>… </tt> specify typewriter-like (fixed-width) font <big>… </big> increase the size of the font <small>… </small> decrease the size of the font Note: if elements are nested, the order of opening/closing is important! (must be LIFO)

End of Lecture Next time, more HTML