Example Explained
What you just made is a skeleton html document. This is the minimum required information for a web
document and all web documents should contain these basic components. The first tag in your html
document is . This tag tells your browser that this is the start of an html document. The last
tag in your document is . This tag tells your browser that this is the end of the html
document.
The text between the tag and the tag is header information. Header information is not
displayed in the browser window.
The text between the tags is the title of your document. The tag is used to uniquely
identify each document and is also displayed in the title bar of the browser window.
The text between the tags is the text that will be displayed in your browser.
The text between the and tags will be displayed in a bold font.
HTM or HTML Extension?
When you save an HTML file, you can use either the .htm or the .html extension. The .htm extension
comes from the past when some of the commonly used software only allowed three letter extensions.
It is perfectly safe to use either .html or .htm, but be consistent. mypage.htm and mypage.html are
treated as different files by the browser.
How to View HTML Source
A good way to learn HTML is to look at how other people have coded their html pages. To find out,
simply click on the View option in your browsers toolbar and select Source or Page Source. This will
open a window that shows you the actual HTML of the page. Go ahead and view the source html for
this page.
HTML Tags
What are HTML tags?
HTML tags are used to mark-up HTML elements
HTML tags are surrounded by the two characters < and >
The surrounding characters are called angle brackets
HTML tags normally come in pairs like and
The first tag in a pair is the start tag, the second tag is the end tag
The text between the start and end tags is the element content
HTML tags are not case sensitive, means the same as
Logical vs. Physical Tags
In HTML there are both logical tags and physical tags. Logical tags are designed to describe (to the
browser) the enclosed text's meaning. An example of a logical tag is the tag. By
placing text in between these tags you are telling the browser that the text has some greater
importance. By default all browsers make the text appear bold when in between the and
tags.
Physical tags on the other hand provide specific instructions on how to display the text they enclose.
Examples of physical tags include:
: Makes the text bold.
: Makes the text usually one size bigger than what's around it.
: Makes text italic.
Physical tags were invented to add style to HTML pages because style sheets were not around, though
the original intention of HTML was to not have physical tags. Rather than use physical tags to style
your HTML pages, you should use style sheets.
ตัวอย่างอธิบายสิ่งที่คุณเพิ่งทำเอกสาร html ที่โครงกระดูก นี้เป็นข้อมูลที่ต่ำสุดที่จำเป็นสำหรับเว็บเอกสารและเอกสารเว็บทุกคนควรมีองค์ประกอบพื้นฐานเหล่านี้ แท็กครั้งแรกใน html ของคุณเอกสาร แท็กนี้จะบอกเบราว์เซอร์ที่ว่านี้คือจุดเริ่มต้นของเอกสาร HTML ล่าสุดแท็กในเอกสารของคุณเป็น แท็กนี้จะบอกเบราว์เซอร์ที่ว่านี้เป็นจุดสิ้นสุดของ html ที่ในเอกสาร. ข้อความระหว่างแท็กและแท็กเป็นข้อมูลที่ส่วนหัว ข้อมูลส่วนหัวไม่ได้แสดงในหน้าต่างเบราว์เซอร์. ข้อความระหว่างที่
tags is the title of your document. The <title> tag is used to uniquely<br />identify each document and is also displayed in the title bar of the browser window.<br />The text between the <body> tags is the text that will be displayed in your browser.<br />The text between the <b> and </b> tags will be displayed in a bold font.<br />HTM or HTML Extension?<br />When you save an HTML file, you can use either the .htm or the .html extension. The .htm extension<br />comes from the past when some of the commonly used software only allowed three letter extensions.<br />It is perfectly safe to use either .html or .htm, but be consistent. mypage.htm and mypage.html are<br />treated as different files by the browser.<br />How to View HTML Source<br />A good way to learn HTML is to look at how other people have coded their html pages. To find out,<br />simply click on the View option in your browsers toolbar and select Source or Page Source. This will<br />open a window that shows you the actual HTML of the page. Go ahead and view the source html for<br />this page.<br />HTML Tags<br />What are HTML tags?<br /> HTML tags are used to mark-up HTML elements<br /> HTML tags are surrounded by the two characters < and ><br /> The surrounding characters are called angle brackets<br /> HTML tags normally come in pairs like <b> and </b><br /> The first tag in a pair is the start tag, the second tag is the end tag<br /> The text between the start and end tags is the element content<br /> HTML tags are not case sensitive, <b> means the same as <B><br />Logical vs. Physical Tags<br />In HTML there are both logical tags and physical tags. Logical tags are designed to describe (to the<br />browser) the enclosed text's meaning. An example of a logical tag is the <strong> </strong> tag. By<br />placing text in between these tags you are telling the browser that the text has some greater<br />importance. By default all browsers make the text appear bold when in between the <strong> and<br /></strong> tags.<br />Physical tags on the other hand provide specific instructions on how to display the text they enclose.<br />Examples of physical tags include:<br /> <b>: Makes the text bold.<br /> <big>: Makes the text usually one size bigger than what's around it.<br /> <i>: Makes text italic. <br />Physical tags were invented to add style to HTML pages because style sheets were not around, though<br />the original intention of HTML was to not have physical tags. Rather than use physical tags to style<br />your HTML pages, you should use style sheets.<br />
การแปล กรุณารอสักครู่..
