![]() It should contain all the content of your web page: text, images, and so on. The body element appears after the head element in the page. Try to give each page of your site its own unique title. The title should describe the page’s content succinctly and accurately. The title is displayed in the browser’s title bar (the bar at the top of the browser window), as well as in bookmarks, search engine results, and many other places. The title element contains the title of the page. script, for adding JavaScript code to the page.meta, for specifying things like character sets, page descriptions, and keywords for search engines.link, which you can use to add style sheets and favicons to your page.There are many elements that you can put inside the head element, such as: The head element contains information about the web page, as opposed to the web page content itself. Everything else in your web page then goes between these 2 tags: To create the html element, you write an opening tag followed by a closing tag. The html element sits at the root of the tree of elements in a web page. It’s also called the root element because it’s at the root of the tree of elements that make up a web page. … - The root elementĪll web pages start with the html element. If you’re working with XHTML then you write empty elements using self-closing tags - for example. For example, the br element for inserting line breaks is simply written. Many elements have an opening tag and a closing tag - for example, a p (paragraph) element has a tag, followed by the paragraph text, followed by a closing tag. You use tags to create HTML elements, such as paragraphs or links. If you learn how these 10 tags work then you’ll have enough knowledge to put together a basic page.Īt the end of the tutorial you’ll find code for an example web page that includes all 10 tags, so that you can see how to use them.Īn HTML tag is a special word or letter surrounded by angle brackets. XHTML 1.Just starting out with HTML? Here are 10 essential HTML tags that you’ll need to know when building your web pages. You can not use the tag in XHTML 1.0 Strict. The sixth tag shows how to combine the color, face, and size together in the same tag. ![]() ![]() In this XHTML 1.0 Transitional Document example, we have 6 tag examples. If you created a new web page in XHTML 1.0 Transitional, your tag might look like this: The fourth tag shows how to set the font size using a numeric value while the fifth tag shows how to set the font size using a relative value. ![]() The third tag shows how to set the font face with a comma separate list of font families to use. The first tag shows how to set the font color with a named color while the second tag shows how to set the font color with a hexadecimal value. In this HTML 4.01 Transitional Document example, we have 6 tag examples. If you created a new web page in HTML 4.01 Transitional, your tag might look like this: Įxample 1 font color is red using a named colorĮxample 2 font color is red using hexadecimal formatĮxample 3 font face is a different font familyĮxample 4 font size is 5 using numeric valueĮxample 5 font size is two font sizes bigger using a relative value
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |