Content of the Article:
- Header, Paragraphs and Line breaks
- Bold, Italic, Horizontal rule and comments
- Linking to different page
- Linking to same page
- W3C and Validating your code
HTML5 is the newer version of HTML, the older version of HTML was introduced in 1999. It was since HTML got matured and there are several new tags supported in HTML. Though HTML is still under constant development, many major browsers support the majority of the tags.
Tags are the main component of the HTML language. They represent the building blocks of a page. Any information that needs to be displayed in the browser must be specified inside a specific tag,
3. Header, Paragraphs and Line breaks:
To structure a HTML document, you will have to categorise the content inside a header, paragraph and provide line breaks wherever required. It is like creating a document in a word processor. Please have a look at the video to get a clear idea.
4. Bold, Italic, Horizontal rule and Comments:
In order to format your text in different styles there are several tags in HTML like <strong>, <i> to get those effects.
To add an image into a HTML document, we can use a tag called <img> and the image source attribute must be specified.
Links are provided in order to navigate from one page to the other. It can be done through <a> tag and the destination url must be specified in the href attribute.
7. Linking to different page:
The same <a> tag can be used to create a link which points to a different page, again href attribute must be used in order to specify the destination url.
8. Linking to same page:
To link to the same page, instead of providing the destination url, we will need to specify just a hash tag.
In order to create ordered and unordered list in HTML, we need to use <ol>, <ul> and <li> tags.
10. W3C and Validating your code:
W3C recommends a set of guidelines to markup a HTML page, the page can be checked using the W3C validator.
Continue with HTML 5 and CSS 3 Tutorial for Beginners – Part 2