SlideShare una empresa de Scribd logo
1 de 45
California State University Dominguez Hills


 Beginning Hypertext Markup
          Language
          (HTML)
Beginning HTML
 HTML - HyperText Markup Language

 Text Editor: NotePad, SimpleText

 Common HTML Editors: Netscape

  Composer, MS Word, MS FrontPage
This workshop will enable you to understand
 enough to make better use of such tools.
Beginning HTML
 A system of coding which special online
  browsers receive and translate.

 HTML file is a text file.

 HTML is full of < > tags.

 Start Tag: < >

 End Tag: </ >
HTML Tag


 <HTML> - To begin the HTML file



 </HTML> - End of HTML file
Major Sections

 Head Section
      <head> </head>

 Body Section
      <body> </body>
Title Tag

 <Title> </Title>

 An element of Head
  section

 Determines title bar
  display on browser
Body Tag
 <Body> </Body>

 Body Attributes

   Background Background image file address =”URL”
   BGcolor        Background color                =”color reference”
   Text           Default text color              =”color reference”
   Link           Hyperlink color                 =”color reference”
   VLink          Visited link color              =”color reference”


  Note: Color Reference is RGB Color. Please refer to handout on page 7.
Exercise 1
• Open a new file under NotePad.
• Create a basic HTML file with tags:
          <Html>
          <Head>
          <Body>
          <Title>


• Save the file and view it on the browser.
Exercise 1 – HTML Source
 <HTML>
 <HEAD>
   <Title>My Web Page</title>
 </HEAD>
                     Black       White

 <BODY bgcolor=”#000000” text=”#ffffff”
   link=”red” vlink=”blue”>

   This is a basic HTML file.
                                RGB Color #
 </BODY>
 </HTML>
Exercise 1 – On Browser
           <Title>My Web Page</title>




text=”#ffffff”         bgcolor=”#000000”
Text Styling
<b> </b>        Boldfaces

<i> </i>        Italicizes

<u> </u>        Underline text

<sub> </sub>    Subscript
                            text
<sup> </sup>    Superscript
                              text
<big> </big>    Text is made larger than current size
<small>         Text is made smaller than current size
</small>
<strong>        Logical form for strong emphasis
</strong>
Character Entities
•   <STRONG> Strong: I am strong
•   <EM> Emphasis: I am emphasized
•   <ABBR> Abbreviation: I am abbreviated
•   <CITE> Citation: Citation
•   <CODE> Code: I am programming code
• <DFN> Definition: Definition
• <KBD> Keyboard: Quite like keyboard
  strokes
• <SAMP> Sample: Sample
• <VAR> Programming Variable:
   Programming Variable
Heading Fonts

<H1></H1> - Largest heading font
<H2></H2> - Bigger than H3
<H3></H3> - Bigger than H4
<H4></H4> - Bigger than H5
<H5></H5> - Bigger than H6
<H6></H6> - Smallest heading font
Exercise 2
• Open the same file created in Exercise 1 on
  NotePad.
• Change the current text to heading font.
• Add text paragraph using different text
  styling tags.
• Save the text file.

• Refresh browser to see the updated page.
Exercise 2 – HTML Source
<HTML>
<HEAD>
<Title>My Web Page</title>
</HEAD>

<BODY bgcolor="#000000" text="#ffffff" link="red" vlink="blue">

<h1>This is a basic HTML file. </h1>

You can use the text style to emphasize a word or a phrase in a
paragraph, such as <b>bold</b>, <I>italic</I>, <u>underline</u>,
<sup>superscript</sup>, <sub>subscript</sub>.

</BODY>
</HTML>
Exercise 2 – Browser View
   <h1>This is a basic HTML file. </h1>




You can use the text style to emphasize a word or a phrase in a paragraph,
such as <b>bold</b>, <I>italic</I>, <u>underline</u>,
<sup>superscript</sup>, <sub>subscript</sub>.
Image Tag
 <img> - Insert an image on the page
 No End Tag
 IMG Attributes:
  Src        Location of image file
  Alt        Substitute text for display
  Align      Text alignment: bottom, middle, top
  Height     Number of pixels of the height
  Width      Number of pixels of the width
  Border     Size of border, 0 for no border
  e.g. <img src=”image.jpg” alt=”example image”
          align = ”middle” border=”0”>
Horizontal Line
 <HR> - Start a new line and draw a horizontal line.
 No End Tag
 HR Attributes:
  Width        The length of the horizonal line from left
               to right. (in pixel or % of screen size)
  Align        Alignment: left, center, right
  Size         Height size of the horizontal line.
  NoShade      Delete the shading below a regular
               horizontal line.

  e.g. <hr width=”500” align=”center” size=”2” noshade>
Exercise 3

• Open the same file from Exercise 2 on NotePad.

• Add an image on the page.

• Add a horizontal line.

• Save the file.

• Click the refresh button on browser to see the
  updated page.
Exercise 3 – HTML Source
<HTML>
<HEAD><Title>My Web Page</title></HEAD>
<BODY bgcolor="#000000" text="#ffffff" link="red“ link="blue">
<h1>This is a basic HTML file.</h1>

<hr width="80%" align="center" size="3">
You can use the text style to emphasize a word or a phrase in a
  paragraph, such as <b>bold</b>, <i>italic</i>,
  <u>underline</u>, <sup>superscript</sup>,
  <sub>subscript</sub>.
<img src="http://www.csudh.edu/Graphics/Dhbanner.gif"
Alt="CSUDH Banner" height="65" width="330" border="0">
</BODY>
</HTML>
Exercise 3 – Browser View
              <hr width="80%" align="center" size="3">




<img src="http://www.csudh.edu/Graphics/Dhbanner.gif"
Alt="CSUDH Banner" height="65" width="330" border="0">
Link Tag
<A Href> </a> - Insert a link on the page.
e.g. <a href=“ http://www.csudh.edu ”>CSUDH Home Page </a>
If the place where you desire to link to is on the same
server, all you need to put in is
<a href=“ /visitors/visitors.html”>CSUDH Visitors Page </a>

If the place where you desire to link to is within the same
folder, you can put in

<a href=” index.html ”> CSUDH Index Page </a>
Font Tag
 <Font> </Font>
 Font Attributes:

  Size     From 1 to 7, 7 is the largest
  Color    Color reference
  Face     Font type
           e.g. Arial, Courier, Helvetics, etc.

e.g. <font size=”4” color=”#ff0000” face=”arial”>Font
      color is red</font>
+/- Font Size
 BaseFont Size = 3 (default size)
 Specify a font size with a signed integer value
 Format: <Font size=“+n”> </font>
           <Font size=“-n”> </font>
  +n for bigger font size
  -n for smaller font size
  where n is a positive integer
 Font size +n/-n = BaseFont Size +n/-n

   e.g. <font size=“+2”>        <font size=“5”>
Paragraph Tag
 <p> </p>
 Start a new paragraph with a blank line in
  between the previous line.
 Paragraph attribute:
    Align Alignment:
          left, center, right, justify


 e.g. <p align=”justify”>
Line Break

 <Br>

 Start a new line without inserting a blank
  line between the previous line.

 No End Tag, but in XHTML it has an
  ending tags
Center Tag

 <Center> </Center>

 Start a new line and center the text within
  the center tag.

 e.g. <center>Page Heading</center>
List Tags
 Unordered List
   Apple                  • Apple
   Orange          (OR)   • Orange
   Grapefruit             • Grapefruit


 Ordered List
   1. Apple                i. Apple
   2. Orange        (OR)   ii. Orange
   3. Grapefruit           iii. Grapefruit


 List Item
Unordered List
 <UL> </UL>
 Start an unordered (bulleted) list. The
  items are tagged using the <Li> tag.
 Attribute: Type – disk, circle, square


• Apple          o Apple         Apple

• Orange         o Orange        Orange

• Grapefruit     o Grapefruit    Grapefruit
Ordered List
 <OL> </OL>
 A numbered list structure is identical to an
  unnumbered list structure, except it uses <OL>
  instead of <UL>.
 Attribute: Type – 1, A, a, I, i

 1. Apple              a. Apple              i. Apple
 2. Orange             b. Orange             ii. Orange
 3. Grapefruit         c. Grapefruit         iii. Grapefruit
                                       I. Apple
                 A. Apple              II. Orange
                 B. Orange             III. Grapefruit
                 C. Grapefruit
List Item Tag
 <Li>
 No End Tag
 List item under <UL> or <OL> tag.


 <UL type=”square”>       Item One
 <Li>Item One             Item Two
 <Li>Item Two
 </UL>
Indent Tag
• <Blockquote> </Blockquote>
• Start a new line before and after the indented
  paragraph.

e.g.  This is a blockquote
example.
      <Blockquote>
      Increased indent line
      </blockquote>
      Decreased indent line This is a blockquote example.
                                    Increased indent line
                            Decreased indent line
Comment Tag
• <!-- -->
• Any Text within the comment tag
  will be ignored by the browser as
  remarks.


  e.g.   <!-- Comment goes here -->
Exercise 4
• Open the same file from exercise 3 on NotePad.
• Add a paragraph tag. <p> </p>
• Add a font tag.        <font> </font>
• Add a link tag.        <a href> </a>
• Add a line break tag. <br>
• Add a center tag.      <center> </center>
• Add an ordered list.   <ol> <li> </ol>
Exercise 4 – HTML Source
<HTML>
<HEAD><Title>My Web Page</title></HEAD>
<BODY bgcolor="#000000" text="#ffffff" link="red" vlink="blue">
<h1>This is a basic HTML file.</h1>
<hr width="80%" align="center" size="3">
<p align=justify>You can use the text style to <font color="yellow"
face="courier">emphasize</font> a word or a phrase in a paragraph,
such as <b>bold</b>, <I>italic</I>, <u>underline</u>,
   <sup>superscript</sup>, <sub>subscript</sub>. </p>
<a href="http://www.csudh.edu"><img
   src="http://www.csudh.edu/Graphics/Dhbanner.gif" Alt="CSUDH
   Banner" height="65" width="330" border="0"> </a><br>
<a href="http://www.csudh.edu/index.html">CSUDH Index Page</
   a>
<center>Here is the list</center>
<ol type="i"> <li>Orange <li>Yellow <li>Blue </ol>
</BODY>
</HTML>
Exercise 4 – Browser View
                                           <font color="yellow"
  <p align=justify>                        face="courier">




<ol type="i">
<li>Orange
<li>Yellow
<li>Blue </ol>                                   <center>Here
                                                 is the
                                                 list</center>


                 <a href="http://www.csudh.edu/index.html">CSUDH
                 Index Page</a>
Common Special Characters
       Symbol           Entity    Example
   Copyright Sign      &copy;    Copyright ©
Registered Trademark    &reg;     MagiCo ®
     Trademark         &#8482;   Webfarer™
     Less Than          &Lt;         <
    Greater Than         &gt;        >
     Ampersand         &amp;         &
 Nonbreaking Space     &nbsp;
      Em Dash          &#8212;       —
  Quotation Mark       &quot;        “
RGB Color
    White        #FFFFFF
     Red         #FF0000
    Green        #00FF00
     Blue        #0000FF
     Cyan        #00FFFF
    Yellow       #FFFF00
    Black        #000000
  Dim Grev       #545454
 Forest Green    #238E23
     Grey        #C0C0C0
 Midnight Blue   #2F2F4F
    Orange       #FF7F00
 Spring Green    #00FF7F
  Turquoise      #ADEAEA
RGB Color Related Sites


http://www.hitbox.com/cgi-bin/page.cgi?reference/websafe

http://www.webreference.com/html/tools/colorizer/

http://www.webreference.com/dev/graphics/palette.html

http://www.hypersolutions.org/pages/rgbhex.html
http://www.htmlhelp.com/cgi-bin/color.cgi
Related Links                                    Page 1
HTML Quick Reference
http://www.cc.ukans.edu/~acs/docs/other/HTML_quick.shtml

W3C HTML Guide
http://www.w3.org/MarkUp/


HTML Guide
http://html.about.com/compute/html/cs/htmltags/index.htm

HTML Tags Guide
http://www.willcam.com/cmat/html/crossref.html


The HTML Writers Guild
http://www.hwg.org/
Related Links                                  Page 2
Symbol Table for HTML
http://www.bbsinc.com/symbol.html


HTML Character Set
http://www.natural-innovations.com/boo/doc-charset.html


HTML Guide
http://html.about.com/compute/html/cs/htmltags/index.htm
Related Links                       Page 3
Free Backgrounds
http://www.free-backgrounds.com/


Background – FAQ
http://www.two4u.com/bg-faq/


Buttons, Bullets, and Backgrounds
http://www.rewnet.com/bbb/
http://www.graphics-4free.com/
http://coolgraphics.com/gallery/
Beginning HTML



  The End

Más contenido relacionado

La actualidad más candente (19)

Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html full
Html fullHtml full
Html full
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 
INTRODUCTION FOR HTML
INTRODUCTION  FOR HTML INTRODUCTION  FOR HTML
INTRODUCTION FOR HTML
 
HTML
HTMLHTML
HTML
 
Html tables
Html tablesHtml tables
Html tables
 
H T M L Tutorial
H T M L TutorialH T M L Tutorial
H T M L Tutorial
 
HTML
HTML HTML
HTML
 
Html
HtmlHtml
Html
 
html tags
 html tags html tags
html tags
 
Html tags or elements
Html tags or elementsHtml tags or elements
Html tags or elements
 
HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix note
 
Unit 2 (html)
Unit 2  (html)Unit 2  (html)
Unit 2 (html)
 
Html basics
Html basicsHtml basics
Html basics
 
Wdf 222chp iii vi
Wdf 222chp iii viWdf 222chp iii vi
Wdf 222chp iii vi
 
If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 

Similar a Beginning html

Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.pptbanu236831
 
2a web technology html basics 1
2a web technology html basics 12a web technology html basics 1
2a web technology html basics 1Jyoti Yadav
 
Html introduction by ikram niaz
Html introduction by ikram niazHtml introduction by ikram niaz
Html introduction by ikram niazikram niaz
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalorefathima12
 
Basic HTML
Basic HTMLBasic HTML
Basic HTMLSayan De
 
Html update1(30 8-2009)
Html update1(30 8-2009)Html update1(30 8-2009)
Html update1(30 8-2009)himankgupta31
 
Basic html training national
Basic html training nationalBasic html training national
Basic html training nationalNeedanuts
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfAAFREEN SHAIKH
 
Presentation of Hyper Text Markup Language
Presentation of Hyper Text Markup LanguagePresentation of Hyper Text Markup Language
Presentation of Hyper Text Markup LanguageJohnLagman3
 
html-150424090224-conversion-gate0.2.pdf
html-150424090224-conversion-gate0.2.pdfhtml-150424090224-conversion-gate0.2.pdf
html-150424090224-conversion-gate0.2.pdfJohnLagman3
 

Similar a Beginning html (20)

Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.ppt
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Basics ogHtml
Basics ogHtml Basics ogHtml
Basics ogHtml
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
2a web technology html basics 1
2a web technology html basics 12a web technology html basics 1
2a web technology html basics 1
 
Web Design.ppt
Web Design.pptWeb Design.ppt
Web Design.ppt
 
Html introduction by ikram niaz
Html introduction by ikram niazHtml introduction by ikram niaz
Html introduction by ikram niaz
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalore
 
WDD
WDDWDD
WDD
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Html cia
Html ciaHtml cia
Html cia
 
HTML Tutorial
HTML TutorialHTML Tutorial
HTML Tutorial
 
Html update1(30 8-2009)
Html update1(30 8-2009)Html update1(30 8-2009)
Html update1(30 8-2009)
 
HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
 
Basic html training national
Basic html training nationalBasic html training national
Basic html training national
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
 
Introduction html
Introduction htmlIntroduction html
Introduction html
 
Presentation of Hyper Text Markup Language
Presentation of Hyper Text Markup LanguagePresentation of Hyper Text Markup Language
Presentation of Hyper Text Markup Language
 
html-150424090224-conversion-gate0.2.pdf
html-150424090224-conversion-gate0.2.pdfhtml-150424090224-conversion-gate0.2.pdf
html-150424090224-conversion-gate0.2.pdf
 

Último

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 

Último (20)

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 

Beginning html

  • 1. California State University Dominguez Hills Beginning Hypertext Markup Language (HTML)
  • 2. Beginning HTML  HTML - HyperText Markup Language  Text Editor: NotePad, SimpleText  Common HTML Editors: Netscape Composer, MS Word, MS FrontPage This workshop will enable you to understand enough to make better use of such tools.
  • 3. Beginning HTML  A system of coding which special online browsers receive and translate.  HTML file is a text file.  HTML is full of < > tags.  Start Tag: < >  End Tag: </ >
  • 4. HTML Tag  <HTML> - To begin the HTML file  </HTML> - End of HTML file
  • 5. Major Sections  Head Section <head> </head>  Body Section <body> </body>
  • 6. Title Tag  <Title> </Title>  An element of Head section  Determines title bar display on browser
  • 7. Body Tag  <Body> </Body>  Body Attributes Background Background image file address =”URL” BGcolor Background color =”color reference” Text Default text color =”color reference” Link Hyperlink color =”color reference” VLink Visited link color =”color reference” Note: Color Reference is RGB Color. Please refer to handout on page 7.
  • 8. Exercise 1 • Open a new file under NotePad. • Create a basic HTML file with tags: <Html> <Head> <Body> <Title> • Save the file and view it on the browser.
  • 9. Exercise 1 – HTML Source <HTML> <HEAD> <Title>My Web Page</title> </HEAD> Black White <BODY bgcolor=”#000000” text=”#ffffff” link=”red” vlink=”blue”> This is a basic HTML file. RGB Color # </BODY> </HTML>
  • 10. Exercise 1 – On Browser <Title>My Web Page</title> text=”#ffffff” bgcolor=”#000000”
  • 11. Text Styling <b> </b> Boldfaces <i> </i> Italicizes <u> </u> Underline text <sub> </sub> Subscript text <sup> </sup> Superscript text <big> </big> Text is made larger than current size <small> Text is made smaller than current size </small> <strong> Logical form for strong emphasis </strong>
  • 12. Character Entities • <STRONG> Strong: I am strong • <EM> Emphasis: I am emphasized • <ABBR> Abbreviation: I am abbreviated • <CITE> Citation: Citation • <CODE> Code: I am programming code
  • 13. • <DFN> Definition: Definition • <KBD> Keyboard: Quite like keyboard strokes • <SAMP> Sample: Sample • <VAR> Programming Variable: Programming Variable
  • 14.
  • 15. Heading Fonts <H1></H1> - Largest heading font <H2></H2> - Bigger than H3 <H3></H3> - Bigger than H4 <H4></H4> - Bigger than H5 <H5></H5> - Bigger than H6 <H6></H6> - Smallest heading font
  • 16. Exercise 2 • Open the same file created in Exercise 1 on NotePad. • Change the current text to heading font. • Add text paragraph using different text styling tags. • Save the text file. • Refresh browser to see the updated page.
  • 17. Exercise 2 – HTML Source <HTML> <HEAD> <Title>My Web Page</title> </HEAD> <BODY bgcolor="#000000" text="#ffffff" link="red" vlink="blue"> <h1>This is a basic HTML file. </h1> You can use the text style to emphasize a word or a phrase in a paragraph, such as <b>bold</b>, <I>italic</I>, <u>underline</u>, <sup>superscript</sup>, <sub>subscript</sub>. </BODY> </HTML>
  • 18. Exercise 2 – Browser View <h1>This is a basic HTML file. </h1> You can use the text style to emphasize a word or a phrase in a paragraph, such as <b>bold</b>, <I>italic</I>, <u>underline</u>, <sup>superscript</sup>, <sub>subscript</sub>.
  • 19. Image Tag  <img> - Insert an image on the page  No End Tag  IMG Attributes: Src Location of image file Alt Substitute text for display Align Text alignment: bottom, middle, top Height Number of pixels of the height Width Number of pixels of the width Border Size of border, 0 for no border e.g. <img src=”image.jpg” alt=”example image” align = ”middle” border=”0”>
  • 20. Horizontal Line  <HR> - Start a new line and draw a horizontal line.  No End Tag  HR Attributes: Width The length of the horizonal line from left to right. (in pixel or % of screen size) Align Alignment: left, center, right Size Height size of the horizontal line. NoShade Delete the shading below a regular horizontal line. e.g. <hr width=”500” align=”center” size=”2” noshade>
  • 21. Exercise 3 • Open the same file from Exercise 2 on NotePad. • Add an image on the page. • Add a horizontal line. • Save the file. • Click the refresh button on browser to see the updated page.
  • 22. Exercise 3 – HTML Source <HTML> <HEAD><Title>My Web Page</title></HEAD> <BODY bgcolor="#000000" text="#ffffff" link="red“ link="blue"> <h1>This is a basic HTML file.</h1> <hr width="80%" align="center" size="3"> You can use the text style to emphasize a word or a phrase in a paragraph, such as <b>bold</b>, <i>italic</i>, <u>underline</u>, <sup>superscript</sup>, <sub>subscript</sub>. <img src="http://www.csudh.edu/Graphics/Dhbanner.gif" Alt="CSUDH Banner" height="65" width="330" border="0"> </BODY> </HTML>
  • 23. Exercise 3 – Browser View <hr width="80%" align="center" size="3"> <img src="http://www.csudh.edu/Graphics/Dhbanner.gif" Alt="CSUDH Banner" height="65" width="330" border="0">
  • 24. Link Tag <A Href> </a> - Insert a link on the page. e.g. <a href=“ http://www.csudh.edu ”>CSUDH Home Page </a> If the place where you desire to link to is on the same server, all you need to put in is <a href=“ /visitors/visitors.html”>CSUDH Visitors Page </a> If the place where you desire to link to is within the same folder, you can put in <a href=” index.html ”> CSUDH Index Page </a>
  • 25. Font Tag  <Font> </Font>  Font Attributes: Size From 1 to 7, 7 is the largest Color Color reference Face Font type e.g. Arial, Courier, Helvetics, etc. e.g. <font size=”4” color=”#ff0000” face=”arial”>Font color is red</font>
  • 26. +/- Font Size  BaseFont Size = 3 (default size)  Specify a font size with a signed integer value  Format: <Font size=“+n”> </font> <Font size=“-n”> </font> +n for bigger font size -n for smaller font size where n is a positive integer  Font size +n/-n = BaseFont Size +n/-n e.g. <font size=“+2”> <font size=“5”>
  • 27. Paragraph Tag  <p> </p>  Start a new paragraph with a blank line in between the previous line.  Paragraph attribute: Align Alignment: left, center, right, justify e.g. <p align=”justify”>
  • 28. Line Break  <Br>  Start a new line without inserting a blank line between the previous line.  No End Tag, but in XHTML it has an ending tags
  • 29. Center Tag  <Center> </Center>  Start a new line and center the text within the center tag.  e.g. <center>Page Heading</center>
  • 30. List Tags  Unordered List  Apple • Apple  Orange (OR) • Orange  Grapefruit • Grapefruit  Ordered List 1. Apple i. Apple 2. Orange (OR) ii. Orange 3. Grapefruit iii. Grapefruit  List Item
  • 31. Unordered List  <UL> </UL>  Start an unordered (bulleted) list. The items are tagged using the <Li> tag.  Attribute: Type – disk, circle, square • Apple o Apple  Apple • Orange o Orange  Orange • Grapefruit o Grapefruit  Grapefruit
  • 32. Ordered List  <OL> </OL>  A numbered list structure is identical to an unnumbered list structure, except it uses <OL> instead of <UL>.  Attribute: Type – 1, A, a, I, i 1. Apple a. Apple i. Apple 2. Orange b. Orange ii. Orange 3. Grapefruit c. Grapefruit iii. Grapefruit I. Apple A. Apple II. Orange B. Orange III. Grapefruit C. Grapefruit
  • 33. List Item Tag  <Li>  No End Tag  List item under <UL> or <OL> tag. <UL type=”square”>  Item One <Li>Item One  Item Two <Li>Item Two </UL>
  • 34. Indent Tag • <Blockquote> </Blockquote> • Start a new line before and after the indented paragraph. e.g. This is a blockquote example. <Blockquote> Increased indent line </blockquote> Decreased indent line This is a blockquote example. Increased indent line Decreased indent line
  • 35. Comment Tag • <!-- --> • Any Text within the comment tag will be ignored by the browser as remarks. e.g. <!-- Comment goes here -->
  • 36. Exercise 4 • Open the same file from exercise 3 on NotePad. • Add a paragraph tag. <p> </p> • Add a font tag. <font> </font> • Add a link tag. <a href> </a> • Add a line break tag. <br> • Add a center tag. <center> </center> • Add an ordered list. <ol> <li> </ol>
  • 37. Exercise 4 – HTML Source <HTML> <HEAD><Title>My Web Page</title></HEAD> <BODY bgcolor="#000000" text="#ffffff" link="red" vlink="blue"> <h1>This is a basic HTML file.</h1> <hr width="80%" align="center" size="3"> <p align=justify>You can use the text style to <font color="yellow" face="courier">emphasize</font> a word or a phrase in a paragraph, such as <b>bold</b>, <I>italic</I>, <u>underline</u>, <sup>superscript</sup>, <sub>subscript</sub>. </p> <a href="http://www.csudh.edu"><img src="http://www.csudh.edu/Graphics/Dhbanner.gif" Alt="CSUDH Banner" height="65" width="330" border="0"> </a><br> <a href="http://www.csudh.edu/index.html">CSUDH Index Page</ a> <center>Here is the list</center> <ol type="i"> <li>Orange <li>Yellow <li>Blue </ol> </BODY> </HTML>
  • 38. Exercise 4 – Browser View <font color="yellow" <p align=justify> face="courier"> <ol type="i"> <li>Orange <li>Yellow <li>Blue </ol> <center>Here is the list</center> <a href="http://www.csudh.edu/index.html">CSUDH Index Page</a>
  • 39. Common Special Characters Symbol Entity Example Copyright Sign &copy; Copyright © Registered Trademark &reg; MagiCo ® Trademark &#8482; Webfarer™ Less Than &Lt; < Greater Than &gt; > Ampersand &amp; & Nonbreaking Space &nbsp; Em Dash &#8212; — Quotation Mark &quot; “
  • 40. RGB Color White #FFFFFF Red #FF0000 Green #00FF00 Blue #0000FF Cyan #00FFFF Yellow #FFFF00 Black #000000 Dim Grev #545454 Forest Green #238E23 Grey #C0C0C0 Midnight Blue #2F2F4F Orange #FF7F00 Spring Green #00FF7F Turquoise #ADEAEA
  • 41. RGB Color Related Sites http://www.hitbox.com/cgi-bin/page.cgi?reference/websafe http://www.webreference.com/html/tools/colorizer/ http://www.webreference.com/dev/graphics/palette.html http://www.hypersolutions.org/pages/rgbhex.html http://www.htmlhelp.com/cgi-bin/color.cgi
  • 42. Related Links Page 1 HTML Quick Reference http://www.cc.ukans.edu/~acs/docs/other/HTML_quick.shtml W3C HTML Guide http://www.w3.org/MarkUp/ HTML Guide http://html.about.com/compute/html/cs/htmltags/index.htm HTML Tags Guide http://www.willcam.com/cmat/html/crossref.html The HTML Writers Guild http://www.hwg.org/
  • 43. Related Links Page 2 Symbol Table for HTML http://www.bbsinc.com/symbol.html HTML Character Set http://www.natural-innovations.com/boo/doc-charset.html HTML Guide http://html.about.com/compute/html/cs/htmltags/index.htm
  • 44. Related Links Page 3 Free Backgrounds http://www.free-backgrounds.com/ Background – FAQ http://www.two4u.com/bg-faq/ Buttons, Bullets, and Backgrounds http://www.rewnet.com/bbb/ http://www.graphics-4free.com/ http://coolgraphics.com/gallery/
  • 45. Beginning HTML The End