HTML Tutorial-What is HTML,Tags, Attributes, and Elements

in #html7 years ago

4268841912_c447b34284_o.jpgIn this beginner HTML tutorial we’ll show you how to create a simple HTML Web page. If you’re just starting out with Web design, then you’ll find this tutorial to be a handy introduction to the world of HTML!

What is HTML?
HTML (HyperText Markup Language) is the language used to create Web pages. HTML is pretty easy to work with. It uses a system called tags to specify things such as bold or italic text, or images, or links. Any text that is not in a tag is displayed as it is on the page

Tags, Attributes, and Elements
Although the basics of HTML are plain text, we need a bit more to make it a valid HTML document.

Tags
The basic structure of an HTML document includes tags, which surround content and apply meaning to it.

Change your document so that it looks like this:

1
This is my first web page
Now save the document again, go back to the web browser and select “refresh” (which will reload the page).

The appearance of the page will not have changed at all, but the purpose of HTML is to apply meaning, not presentation, and this example has now defined some fundamental elements of a web page.

The first line on the top that starts <!DOCTYPE… is to let the browser know that you know what the hell you’re doing. You may think that you don’t actually know what you’re doing yet, but it’s important to stick this in. If you don’t, browsers will switch into “quirks mode” and act in a very peculiar way. Don’t worry about this just yet, you can learn more about “document types” in the HTML Advanced Tutorial if you really want to. For the moment, just remember to shove this line at the top of your web pages and you’re laughin’.

To get back to the point,( <html) is the opening tag that kicks things off and tells the browser that everything between that and the( closing tag is an HTML document. The stuff between body> and </body is the main content of the document that will appear in the browser window.

Closing tags
The (/body> and </html) close their respective tags. ALL HTML tags should be closed. Although older versions of HTML lazily allowed some tags not to be closed, latest standards require all tags to be closed. This is a good habit to get into anyway.

Not all tags have closing tags like this (html></html) some tags, which do not wrap around content will close themselves. The line-break tag for example, looks like this : (<br. )We will come across these examples later. All you need to remember is that all tags must be closed and most (those with content between them) are in the format of opening tag → content → closing tag.

Attributes
Tags can also have attributes, which are extra bits of information. Attributes appear inside the opening tag and their value is always inside quotation marks. They look something like (tag attribute=”value”>Margarine</tag. )We will come across tags with attributes later.

Elements
Tags tend not to do much more than mark the beginning and end of an element. Elements are the bits that make up web pages. You would say, for example, that everything that is in-between and includes the body> and tags is the body element. As another example, whereas (‘title>‘ and ‘</title are tags, ‘title>Rumple Stiltskin</title‘ )is a title element.

####Follow My Blog... for full free course##############

Sort:  

halp full post

always follow korun .. asa kori full course ta paben

Coin Marketplace

STEEM 0.21
TRX 0.26
JST 0.039
BTC 98927.45
ETH 3456.69
USDT 1.00
SBD 3.19