SlideShare uma empresa Scribd logo
1 de 36
-By V.Gouthaman
INTRODUCTION HTML , which stands for  H yper T ext  M arkup  L anguage, is the predominant markup language for web pages. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes, and other items. It allows images and objects to be embedded and can be used to create interactive forms. It is written in the form of HTML elements consisting of "tags" surrounded by angle brackets within the web page content. It can load scripts in languages such as JavaScript which affect the behavior of HTML webpages. HTML can also be used to include Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both HTML and CSS standards, encourages the use of CSS over explicit presentational markup.
Markup HTML markup consists of several key components, including elements (and their attributes), character-based data types, and character references and entity references. Another important component is the document type declaration, which specifies the Document Type Definition. As of HTML 5, no Document Type Definition will need to be specified, and will only determine the layout mode. The Hello world program, a common computer program employed for comparing programming languages, scripting languages, and markup languages is made of 9 lines of code in HTML, albeit Newlines are optional: Sample Program <!doctype html> <html> <head> <title>Hello HTML</title> </head> <body> <p>Hello World!</p> </body> </html> This Document Type Declaration is for HTML 5. If the <!doctype html> declaration is not included, most browsers will render using &quot;quirks mode.&quot;
VARIOUS  HTML TAGS
HTML documents are composed entirely of HTML elements that, in their most general form have three components: a pair of element tags with a &quot;start tag&quot; and &quot;end tag&quot;; some element attributes given to the element within the tags; and finally, all the actual, textual and graphical[clarification needed], information content that will be rendered on the display. An HTML element is everything between and including the tags. A tag is a keyword enclosed in angle brackets.
A common form of an HTML element is: <tag>content to be rendered</tag> The name of the HTML element is also the name of the tag. Note that the end tag's name starts with a slash character, &quot;/&quot;. The most general form of an HTML element is: <tag attribute1=&quot;value1&quot; attribute2=&quot;value2&quot;>content to be rendered</tag> By not assigning attributes most start tags default their attribute values.
html tag  ( <html> , </html> ) All the html documents should contain this html tags. All the contents should be typed inside these tags. This forms the base of the document. It tells the browser where the document starts and where it stops.  Everything in the document goes inside <HTML>, except that <!DOCTYPE ...> (if you choose to use it) goes just before <HTML>.
All normal webpages consist of a head and a body. * The head is used for text and tags that do not show directly on the page. * The body is used for text and tags that are shown directly on the page.  Head and body tags
<html> <head> <!-- This section is for the title and technical info of the page. --> </head> <body> <!-- This section is for all that you want to show on the page. --> </body> </html>  Syntax for head and body tags
HEAD SECTION The head section of the webpage includes all the stuff that does not show directly on the resulting page. The <title> and </title> tags encapsulate the title of your page. The title is what shows in the top of your browser window when the page is loaded.
BODY SECTION The body of the document contains all that can be seen when the user loads the page. In the rest of this tutorial you can learn in detail about all the different aspects of HTML, including: * Text * Formatting * Resizing * Layout * Listing * Links * To local pages * To pages at other sites * To bookmarks
* Images * Inserting images (GIF and jpg) * Adding a link to an image * Backgrounds * Colors * Images * Fixed Image * Tables * Frames * Forms * Metatags * Hexadecimal Colors
BGCOLOR:  background color of the page  BACKGROUND:  background picture for the page  TEXT:  color of the text on the page  LINK:  color of links that haven't been followed yet  VLINK:  color of links that have been followed  ALINK:  color of links while you are clicking on them  BGPROPERTIES = FIXED if the background image should not scroll  TOPMARGIN:  size of top and bottom margins
LEFTMARGIN : size of left and right margins  MARGINHEIGHT : size of top and bottom margins  MARGINWIDTH : size of left and right margins  onLoad : Script to run once the page is fully loaded  onUnload   onFocus   onBlur   STYLESRC : MS FrontPage extension  SCROLL   = YES | NO If the document should have a scroll bar
<A ...> is the cornerstone of HTML, the tag that makes hypertext hypertext. <A ...> is the tag you use to make hyperlinks: the text that you can click on in your web browser to go to another web page.  *  HREF:  URL you are linking to *  NAME:  name a section of the page *  TARGET:  which window the document should go in *  TITLE:  suggested title for the document to be opened *  onClick:  script to run when the user clicks on this anchor *  onMouseOver:  when the mouse is over the link *  onMouseOut:  when the mouse is no longer over the link *  ACCESSKEY All the above commands can be used in the tag <a ...> </A> Closes the anchor
<B> makes the text bold. Sample: I <B>really</B> like this idea. Output: I  really  like this idea.
<P ...> indicates the start of a new paragraph. This is usually rendered with two carriage returns, producing a single blank line in between the two paragraphs: <TITLE> states the title of the document. <TITLE> always goes in the <HEAD> section.  <U> underlines the enclosed text.
<VAR> indicates a variable from a computer program. <!-- ••• --> allows you to insert comments into an HTML document and have them completely ignored by the browser. This is useful for such things as revision histories and notes about how to improve the document. For example, this code <!-- Creation Date: June 21, 1996  --> <!-- Modifications:  --> <!-- Sep 26, 1996: Added Links to Steve's Page --> <!-- Oct 10, 1996: Updated product list  -->
<ADDRESS> denotes contact information for the author or organization of the web site.  <BGSOUND ...> <BGSOUND ...>, MSIE, tells the browser to play a particular sound when the page is loaded.  * SRC: URL of the sound * LOOP: how many times to play the sound
<BIG> <BIG> makes the text bigger. <BLINK> <BLINK> causes the text to blink. <DIR ...> <DIR ...> indicates that the listing is a directory, such as a directory of a web site or of an organization. <DIR ...> works with <LI ...> in the same way <UL ...> does, and is generally rendered the same way.
<EMBED ...> <EMBED ...> puts a browser plugin in the page. A plugin is a special program located on the client computer (i.e. not on your web server) that handles its own special type of data file. The most common plugins are for sounds and movies. The <EMBED ...> tag gives the location of a data file that the plugin should handle.
<APPLET ...> <APPLET ...> puts an applet in your page. In its simplest use, <APPLET ...> requires the use of CODE (to tell what applet file to load), WIDTH (to tell how wide the applet should be), and HEIGHT (to tell how tall the applet should be).
<FONT ...> <FONT ...> is the addictive drug of HTML. When you start using <FONT ...> you're likely to think it's the coolest HTML tag ever created. You can set the sizes, faces and colours of the fonts on your web page, all with understandable <FONT ...> tags. Then, when you've loaded your web pages with a billion <FONT ...> tags, you find out the ugly side of <FONT ...>. You have to use it over and over to give your page the appearance you want. It doesn't work in tables unless you put <FONT ...> in every cell. If you want to change the appearance of the fonts in your page you have to change every single <FONT ...> tag. <FONT ...> has taken over your code.
*  SIZE : size of the font *  COLOR : colour of the text *  FACE : set the typestyle for text *  POINT-SIZE *  WEIGHT  All the above can be used in <FONT ...>
<BLINK> <BLINK> causes the text to blink.   <BLINK> was once reviled as the most obnoxious tag in HTML. Now it's mostly forgotten. MSIE does not even support <BLINK> anymore.
<EM> Indicates emphasis in a sentence. <FORM ...> * ACTION: URL of the CGI program * METHOD: how to transfer the data to the CGI * NAME: name of this form * ENCTYPE: what type of form this is * TARGET: what frames to put the results in * onSubmit: script to run before the form is submitted * onReset: script to run before the form is reset <FORM ...> indicates the beginning of a form. All other form tags go inside  <FORM ...>. In its simplest use, <FORM ...> can be used without any attributes
<I> <I> italicizes the text.  <IMG ...> <IMG ...> puts an image on the web page. <IMG ...> requires two attributes: SRC and ALT. ALT is always required in <IMG ...> SRC : where to get the picture  ALT : text to show if you don't show the picture  NAME   LONGDESC : URL of a long description of the image  WIDTH : how wide is the picture  HEIGHT : how tall is the picture  ALIGN = LEFT | RIGHT | TOP | TEXTTOP | MIDDLE | ABSMIDDLE | BOTTOM | ABSBOTTOM | BASELINE how text should flow around the picture  BORDER : border around the picture  HSPACE : horizontal distance between the picture and the text
VSPACE : vertical distance between the picture and the text  ISMAP : is this a clickable map?  USEMAP : name of the map definition  LOWSRC : a version of the picture that isn't such a big file  NATURALSIZEFLAG : meaningless  NOSAVE : meaningless  DYNSRC : play a movie file  CONTROLS : show the buttons which control the movie  LOOP = INFINITE | -1 | # of loops how many times to loop the movie  START = FILEOPEN | MOUSEOVER when to start playing the movie  onLoad : script to runs after the image is downloaded  SUPPRESS = TRUE | FALSE Don't show icons of images that haven't downloaded yet
<MARQUEE ...> <MARQUEE ...> creates a scrolling display. <MARQUEE ...> is an MSIE extension, but is now supported by NS 7. <MARQUEE ...> is often regarded as one of the &quot;evil&quot; tags, and that perception alone might be enough reason to not use it. However, used lightly and with taste (and understanding that it will never render everywhere), <MARQUEE ...> isn't such a bad tag. It can work well for announcements.
<MENU ...> <MENU ...> indicates the start a series of choices. It is usually rendered like <UL ...>. <BR ...> <BR ...> inserts a single carriage return. Whereas <P ...> indicates the start of a new paragraph, <BR ...> only implies a carriage return within the same paragraph. <BR ...> is usually rendered with a single carriage return.
<BUTTON ...> <BUTTON ...> creates a button. Unlike <INPUT ...>, <BUTTON ...> is a container which allows you to put regular HTML contents in the button, including text and pictures. Unfortunately, <BUTTON ...> does not degrade well, and so at this time it's best to stick with <INPUT ...>.  *  TYPE : what type of button is this *  onClick : script to run when the user clicks here *  NAME : name of this button element *  VALUE : the value sent with the form *  DISABLED : disable this button *  ACCESSKEY : shortcut key for this button *  TABINDEX : tab order All the above commands can be used in  <BUTTON ...>
<OL ...> <OL ...> creates an ordered list. &quot;Ordered&quot; means that the order of the items in the list is important. To show this, browsers automatically number the list. Note in this example that the HTML does not give any numbers: the numbers are automatically made by the browser (which makes it easy on you the author).
<TEXTAREA ...> <TEXTAREA ...> indicates a form field where the user can enter large amounts of text. In most respects, <TEXTAREA ...> works like an <INPUT ...> field. It can have a name, a default value, script events such as onChange, and is sent to a CGI as a name/value pair. One main difference is that <TEXTAREA ...> is a container tag: it has a start tag ().
NAME : name of this form field  COLS : how many characters wide  ROWS : how many rows  WRAP = SOFT | HARD | OFF how to wrap the text  READONLY : don't let the user change the contents of the field  DISABLED : don't let the user do anything with this field  TABINDEX : tab order  LANGUAGE = &quot;JavaScript&quot; | &quot;JavaScript1.1&quot; | &quot;VBScript&quot; |  other language scripting language  onChange : Script to run when the user has changed the textarea  onKeyPress : script to run when a key is pressed
<TT>  produces fixed width text. <VAR>  indicates a variable from a computer program. <WBR>  is for the situation where you have used <NOBR> to prevent line breaks in a section of text, and then you want to say &quot;but you can break HERE if you want&quot;. <WBR> does not force a line break, it merely allows one:
 

Mais conteúdo relacionado

Mais procurados

Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
vikasgaur31
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
vikasgaur31
 

Mais procurados (20)

Html and css presentation
Html and css presentationHtml and css presentation
Html and css presentation
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
 
Html Slide Part-1
Html Slide Part-1Html Slide Part-1
Html Slide Part-1
 
HTML
HTMLHTML
HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
Html introduction
Html introductionHtml introduction
Html introduction
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
HTML
HTMLHTML
HTML
 
Html
HtmlHtml
Html
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html, CSS & Web Designing
Html, CSS & Web DesigningHtml, CSS & Web Designing
Html, CSS & Web Designing
 

Destaque (7)

Web 2.0
Web 2.0Web 2.0
Web 2.0
 
Answers for 2 Marks Unit Test I (RMW)
Answers for 2 Marks Unit Test I (RMW)Answers for 2 Marks Unit Test I (RMW)
Answers for 2 Marks Unit Test I (RMW)
 
AJAX
AJAXAJAX
AJAX
 
Méthode d'Agile: Scrum
Méthode d'Agile: ScrumMéthode d'Agile: Scrum
Méthode d'Agile: Scrum
 
Antenna Unit Test II questions
Antenna Unit Test II questionsAntenna Unit Test II questions
Antenna Unit Test II questions
 
VI Semester Examination Time Table
VI Semester Examination Time TableVI Semester Examination Time Table
VI Semester Examination Time Table
 
Antenna Unit Test II Questions
Antenna Unit Test II QuestionsAntenna Unit Test II Questions
Antenna Unit Test II Questions
 

Semelhante a HTML (20)

Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
 
Html
HtmlHtml
Html
 
Intr To Html & Xhtml
Intr To Html & XhtmlIntr To Html & Xhtml
Intr To Html & Xhtml
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Html
HtmlHtml
Html
 
Module 2 Lesson 1
Module 2 Lesson 1Module 2 Lesson 1
Module 2 Lesson 1
 
Html basic
Html basicHtml basic
Html basic
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1
 
Michael(tm) Smith ED09 presentation
Michael(tm) Smith ED09 presentationMichael(tm) Smith ED09 presentation
Michael(tm) Smith ED09 presentation
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
HTML (1).pptx
HTML (1).pptxHTML (1).pptx
HTML (1).pptx
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
How To Create Personal Web Pages On My Web
How To Create Personal Web Pages On My WebHow To Create Personal Web Pages On My Web
How To Create Personal Web Pages On My Web
 
Prabu html
Prabu htmlPrabu html
Prabu html
 
Html
HtmlHtml
Html
 
HTML
HTMLHTML
HTML
 
ppt.pptx
ppt.pptxppt.pptx
ppt.pptx
 
Html intro
Html introHtml intro
Html intro
 
Html intro
Html introHtml intro
Html intro
 

Mais de Gouthaman V

Professional Ethics Assignment II
Professional Ethics Assignment IIProfessional Ethics Assignment II
Professional Ethics Assignment II
Gouthaman V
 
Scholastic averages sheet-2
Scholastic averages sheet-2Scholastic averages sheet-2
Scholastic averages sheet-2
Gouthaman V
 
Eligibility criteria and instructions for Infosys Placement
Eligibility criteria and instructions for Infosys PlacementEligibility criteria and instructions for Infosys Placement
Eligibility criteria and instructions for Infosys Placement
Gouthaman V
 
Anwers for 2 marks - RMW
Anwers for 2 marks - RMWAnwers for 2 marks - RMW
Anwers for 2 marks - RMW
Gouthaman V
 
Rmw unit test question papers
Rmw unit test question papersRmw unit test question papers
Rmw unit test question papers
Gouthaman V
 
Circular and semicircular cavity resonator
Circular and semicircular cavity resonatorCircular and semicircular cavity resonator
Circular and semicircular cavity resonator
Gouthaman V
 
VLSI Anna University Practical Examination
VLSI Anna University Practical ExaminationVLSI Anna University Practical Examination
VLSI Anna University Practical Examination
Gouthaman V
 
VLSI Sequential Circuits II
VLSI Sequential Circuits IIVLSI Sequential Circuits II
VLSI Sequential Circuits II
Gouthaman V
 
Antenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IAntenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment I
Gouthaman V
 
Antenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IAntenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment I
Gouthaman V
 
Computer Networks Unit Test II Questions
Computer Networks Unit Test II QuestionsComputer Networks Unit Test II Questions
Computer Networks Unit Test II Questions
Gouthaman V
 
Sequential Circuits I VLSI 9th experiment
Sequential Circuits I VLSI 9th experimentSequential Circuits I VLSI 9th experiment
Sequential Circuits I VLSI 9th experiment
Gouthaman V
 
POM Unit Test II - ECE B
POM Unit Test II - ECE BPOM Unit Test II - ECE B
POM Unit Test II - ECE B
Gouthaman V
 
All VLSI programs
All VLSI programsAll VLSI programs
All VLSI programs
Gouthaman V
 
VLSI experiments II
VLSI experiments IIVLSI experiments II
VLSI experiments II
Gouthaman V
 
VLSI Experiments I
VLSI Experiments IVLSI Experiments I
VLSI Experiments I
Gouthaman V
 

Mais de Gouthaman V (20)

Professional Ethics Assignment II
Professional Ethics Assignment IIProfessional Ethics Assignment II
Professional Ethics Assignment II
 
Dip Unit Test-I
Dip Unit Test-IDip Unit Test-I
Dip Unit Test-I
 
Scholastic averages sheet-2
Scholastic averages sheet-2Scholastic averages sheet-2
Scholastic averages sheet-2
 
Eligibility criteria and instructions for Infosys Placement
Eligibility criteria and instructions for Infosys PlacementEligibility criteria and instructions for Infosys Placement
Eligibility criteria and instructions for Infosys Placement
 
Anwers for 2 marks - RMW
Anwers for 2 marks - RMWAnwers for 2 marks - RMW
Anwers for 2 marks - RMW
 
Rmw unit test question papers
Rmw unit test question papersRmw unit test question papers
Rmw unit test question papers
 
Circular and semicircular cavity resonator
Circular and semicircular cavity resonatorCircular and semicircular cavity resonator
Circular and semicircular cavity resonator
 
VLSI Anna University Practical Examination
VLSI Anna University Practical ExaminationVLSI Anna University Practical Examination
VLSI Anna University Practical Examination
 
HCL IPT
HCL IPTHCL IPT
HCL IPT
 
VLSI Sequential Circuits II
VLSI Sequential Circuits IIVLSI Sequential Circuits II
VLSI Sequential Circuits II
 
Email
EmailEmail
Email
 
Antenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IAntenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment I
 
Antenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IAntenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment I
 
Computer Networks Unit Test II Questions
Computer Networks Unit Test II QuestionsComputer Networks Unit Test II Questions
Computer Networks Unit Test II Questions
 
Sequential Circuits I VLSI 9th experiment
Sequential Circuits I VLSI 9th experimentSequential Circuits I VLSI 9th experiment
Sequential Circuits I VLSI 9th experiment
 
Combinational circuits II outputs
Combinational circuits II outputsCombinational circuits II outputs
Combinational circuits II outputs
 
POM Unit Test II - ECE B
POM Unit Test II - ECE BPOM Unit Test II - ECE B
POM Unit Test II - ECE B
 
All VLSI programs
All VLSI programsAll VLSI programs
All VLSI programs
 
VLSI experiments II
VLSI experiments IIVLSI experiments II
VLSI experiments II
 
VLSI Experiments I
VLSI Experiments IVLSI Experiments I
VLSI Experiments I
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 

HTML

  • 2. INTRODUCTION HTML , which stands for H yper T ext M arkup L anguage, is the predominant markup language for web pages. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes, and other items. It allows images and objects to be embedded and can be used to create interactive forms. It is written in the form of HTML elements consisting of &quot;tags&quot; surrounded by angle brackets within the web page content. It can load scripts in languages such as JavaScript which affect the behavior of HTML webpages. HTML can also be used to include Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both HTML and CSS standards, encourages the use of CSS over explicit presentational markup.
  • 3. Markup HTML markup consists of several key components, including elements (and their attributes), character-based data types, and character references and entity references. Another important component is the document type declaration, which specifies the Document Type Definition. As of HTML 5, no Document Type Definition will need to be specified, and will only determine the layout mode. The Hello world program, a common computer program employed for comparing programming languages, scripting languages, and markup languages is made of 9 lines of code in HTML, albeit Newlines are optional: Sample Program <!doctype html> <html> <head> <title>Hello HTML</title> </head> <body> <p>Hello World!</p> </body> </html> This Document Type Declaration is for HTML 5. If the <!doctype html> declaration is not included, most browsers will render using &quot;quirks mode.&quot;
  • 5. HTML documents are composed entirely of HTML elements that, in their most general form have three components: a pair of element tags with a &quot;start tag&quot; and &quot;end tag&quot;; some element attributes given to the element within the tags; and finally, all the actual, textual and graphical[clarification needed], information content that will be rendered on the display. An HTML element is everything between and including the tags. A tag is a keyword enclosed in angle brackets.
  • 6. A common form of an HTML element is: <tag>content to be rendered</tag> The name of the HTML element is also the name of the tag. Note that the end tag's name starts with a slash character, &quot;/&quot;. The most general form of an HTML element is: <tag attribute1=&quot;value1&quot; attribute2=&quot;value2&quot;>content to be rendered</tag> By not assigning attributes most start tags default their attribute values.
  • 7. html tag ( <html> , </html> ) All the html documents should contain this html tags. All the contents should be typed inside these tags. This forms the base of the document. It tells the browser where the document starts and where it stops. Everything in the document goes inside <HTML>, except that <!DOCTYPE ...> (if you choose to use it) goes just before <HTML>.
  • 8. All normal webpages consist of a head and a body. * The head is used for text and tags that do not show directly on the page. * The body is used for text and tags that are shown directly on the page. Head and body tags
  • 9. <html> <head> <!-- This section is for the title and technical info of the page. --> </head> <body> <!-- This section is for all that you want to show on the page. --> </body> </html> Syntax for head and body tags
  • 10. HEAD SECTION The head section of the webpage includes all the stuff that does not show directly on the resulting page. The <title> and </title> tags encapsulate the title of your page. The title is what shows in the top of your browser window when the page is loaded.
  • 11. BODY SECTION The body of the document contains all that can be seen when the user loads the page. In the rest of this tutorial you can learn in detail about all the different aspects of HTML, including: * Text * Formatting * Resizing * Layout * Listing * Links * To local pages * To pages at other sites * To bookmarks
  • 12. * Images * Inserting images (GIF and jpg) * Adding a link to an image * Backgrounds * Colors * Images * Fixed Image * Tables * Frames * Forms * Metatags * Hexadecimal Colors
  • 13. BGCOLOR: background color of the page BACKGROUND: background picture for the page TEXT: color of the text on the page LINK: color of links that haven't been followed yet VLINK: color of links that have been followed ALINK: color of links while you are clicking on them BGPROPERTIES = FIXED if the background image should not scroll TOPMARGIN: size of top and bottom margins
  • 14. LEFTMARGIN : size of left and right margins MARGINHEIGHT : size of top and bottom margins MARGINWIDTH : size of left and right margins onLoad : Script to run once the page is fully loaded onUnload onFocus onBlur STYLESRC : MS FrontPage extension SCROLL = YES | NO If the document should have a scroll bar
  • 15. <A ...> is the cornerstone of HTML, the tag that makes hypertext hypertext. <A ...> is the tag you use to make hyperlinks: the text that you can click on in your web browser to go to another web page. * HREF: URL you are linking to * NAME: name a section of the page * TARGET: which window the document should go in * TITLE: suggested title for the document to be opened * onClick: script to run when the user clicks on this anchor * onMouseOver: when the mouse is over the link * onMouseOut: when the mouse is no longer over the link * ACCESSKEY All the above commands can be used in the tag <a ...> </A> Closes the anchor
  • 16. <B> makes the text bold. Sample: I <B>really</B> like this idea. Output: I really like this idea.
  • 17. <P ...> indicates the start of a new paragraph. This is usually rendered with two carriage returns, producing a single blank line in between the two paragraphs: <TITLE> states the title of the document. <TITLE> always goes in the <HEAD> section. <U> underlines the enclosed text.
  • 18. <VAR> indicates a variable from a computer program. <!-- ••• --> allows you to insert comments into an HTML document and have them completely ignored by the browser. This is useful for such things as revision histories and notes about how to improve the document. For example, this code <!-- Creation Date: June 21, 1996 --> <!-- Modifications: --> <!-- Sep 26, 1996: Added Links to Steve's Page --> <!-- Oct 10, 1996: Updated product list -->
  • 19. <ADDRESS> denotes contact information for the author or organization of the web site. <BGSOUND ...> <BGSOUND ...>, MSIE, tells the browser to play a particular sound when the page is loaded. * SRC: URL of the sound * LOOP: how many times to play the sound
  • 20. <BIG> <BIG> makes the text bigger. <BLINK> <BLINK> causes the text to blink. <DIR ...> <DIR ...> indicates that the listing is a directory, such as a directory of a web site or of an organization. <DIR ...> works with <LI ...> in the same way <UL ...> does, and is generally rendered the same way.
  • 21. <EMBED ...> <EMBED ...> puts a browser plugin in the page. A plugin is a special program located on the client computer (i.e. not on your web server) that handles its own special type of data file. The most common plugins are for sounds and movies. The <EMBED ...> tag gives the location of a data file that the plugin should handle.
  • 22. <APPLET ...> <APPLET ...> puts an applet in your page. In its simplest use, <APPLET ...> requires the use of CODE (to tell what applet file to load), WIDTH (to tell how wide the applet should be), and HEIGHT (to tell how tall the applet should be).
  • 23. <FONT ...> <FONT ...> is the addictive drug of HTML. When you start using <FONT ...> you're likely to think it's the coolest HTML tag ever created. You can set the sizes, faces and colours of the fonts on your web page, all with understandable <FONT ...> tags. Then, when you've loaded your web pages with a billion <FONT ...> tags, you find out the ugly side of <FONT ...>. You have to use it over and over to give your page the appearance you want. It doesn't work in tables unless you put <FONT ...> in every cell. If you want to change the appearance of the fonts in your page you have to change every single <FONT ...> tag. <FONT ...> has taken over your code.
  • 24. * SIZE : size of the font * COLOR : colour of the text * FACE : set the typestyle for text * POINT-SIZE * WEIGHT All the above can be used in <FONT ...>
  • 25. <BLINK> <BLINK> causes the text to blink. <BLINK> was once reviled as the most obnoxious tag in HTML. Now it's mostly forgotten. MSIE does not even support <BLINK> anymore.
  • 26. <EM> Indicates emphasis in a sentence. <FORM ...> * ACTION: URL of the CGI program * METHOD: how to transfer the data to the CGI * NAME: name of this form * ENCTYPE: what type of form this is * TARGET: what frames to put the results in * onSubmit: script to run before the form is submitted * onReset: script to run before the form is reset <FORM ...> indicates the beginning of a form. All other form tags go inside <FORM ...>. In its simplest use, <FORM ...> can be used without any attributes
  • 27. <I> <I> italicizes the text. <IMG ...> <IMG ...> puts an image on the web page. <IMG ...> requires two attributes: SRC and ALT. ALT is always required in <IMG ...> SRC : where to get the picture ALT : text to show if you don't show the picture NAME LONGDESC : URL of a long description of the image WIDTH : how wide is the picture HEIGHT : how tall is the picture ALIGN = LEFT | RIGHT | TOP | TEXTTOP | MIDDLE | ABSMIDDLE | BOTTOM | ABSBOTTOM | BASELINE how text should flow around the picture BORDER : border around the picture HSPACE : horizontal distance between the picture and the text
  • 28. VSPACE : vertical distance between the picture and the text ISMAP : is this a clickable map? USEMAP : name of the map definition LOWSRC : a version of the picture that isn't such a big file NATURALSIZEFLAG : meaningless NOSAVE : meaningless DYNSRC : play a movie file CONTROLS : show the buttons which control the movie LOOP = INFINITE | -1 | # of loops how many times to loop the movie START = FILEOPEN | MOUSEOVER when to start playing the movie onLoad : script to runs after the image is downloaded SUPPRESS = TRUE | FALSE Don't show icons of images that haven't downloaded yet
  • 29. <MARQUEE ...> <MARQUEE ...> creates a scrolling display. <MARQUEE ...> is an MSIE extension, but is now supported by NS 7. <MARQUEE ...> is often regarded as one of the &quot;evil&quot; tags, and that perception alone might be enough reason to not use it. However, used lightly and with taste (and understanding that it will never render everywhere), <MARQUEE ...> isn't such a bad tag. It can work well for announcements.
  • 30. <MENU ...> <MENU ...> indicates the start a series of choices. It is usually rendered like <UL ...>. <BR ...> <BR ...> inserts a single carriage return. Whereas <P ...> indicates the start of a new paragraph, <BR ...> only implies a carriage return within the same paragraph. <BR ...> is usually rendered with a single carriage return.
  • 31. <BUTTON ...> <BUTTON ...> creates a button. Unlike <INPUT ...>, <BUTTON ...> is a container which allows you to put regular HTML contents in the button, including text and pictures. Unfortunately, <BUTTON ...> does not degrade well, and so at this time it's best to stick with <INPUT ...>. * TYPE : what type of button is this * onClick : script to run when the user clicks here * NAME : name of this button element * VALUE : the value sent with the form * DISABLED : disable this button * ACCESSKEY : shortcut key for this button * TABINDEX : tab order All the above commands can be used in <BUTTON ...>
  • 32. <OL ...> <OL ...> creates an ordered list. &quot;Ordered&quot; means that the order of the items in the list is important. To show this, browsers automatically number the list. Note in this example that the HTML does not give any numbers: the numbers are automatically made by the browser (which makes it easy on you the author).
  • 33. <TEXTAREA ...> <TEXTAREA ...> indicates a form field where the user can enter large amounts of text. In most respects, <TEXTAREA ...> works like an <INPUT ...> field. It can have a name, a default value, script events such as onChange, and is sent to a CGI as a name/value pair. One main difference is that <TEXTAREA ...> is a container tag: it has a start tag ().
  • 34. NAME : name of this form field COLS : how many characters wide ROWS : how many rows WRAP = SOFT | HARD | OFF how to wrap the text READONLY : don't let the user change the contents of the field DISABLED : don't let the user do anything with this field TABINDEX : tab order LANGUAGE = &quot;JavaScript&quot; | &quot;JavaScript1.1&quot; | &quot;VBScript&quot; | other language scripting language onChange : Script to run when the user has changed the textarea onKeyPress : script to run when a key is pressed
  • 35. <TT> produces fixed width text. <VAR> indicates a variable from a computer program. <WBR> is for the situation where you have used <NOBR> to prevent line breaks in a section of text, and then you want to say &quot;but you can break HERE if you want&quot;. <WBR> does not force a line break, it merely allows one:
  • 36.