HTML Introduction | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Read Less Gain More / Learn With Easy Steps | ||||||||||||||
About :-
| ||||||||||||||
Requirements :-
| ||||||||||||||
Let's start, now you open your notepad++, copy paste the below given code & save the file with .html extention. Now minimize notepad and open the saved example.html file by double clicking, it'll automatically open with browser, thats it you have created your first web page | ||||||||||||||
| ||||||||||||||
| ||||||||||||||
Terminology :- Tag - <a>,<p>,<b> etc. are called tag used to tag or 'mark-up' pieces of text. Once tagged, the text becomes HTML code to be interpreted by a web browser. Tag is a piece of code that acts as a label that a web browser interprets Element - <a></a>,<p></p>,<b></b> etc. are called Element, A complete tag, having an opening <tag> and a closing </tag>. Attribute - Attribute is a property value that customizes or modifies an HTML element i.e <a href='google.com'>Google</a> here href is attribute used to modify the value of the HTML element. Elements will often have multiple attributes. | ||||||||||||||
HTML Page Structure [with source code] :
<!doctype html>
Remember browser display only <body> area [the pink area]<html> <head>
<title>Page title</title>
</head>
<body>
</html>
<h1>This is a heading</h1>
<p>This is first paragraph.</p>
<p><b>This is paragraph with bold text.</b></p>
</body>
|
« HTML Index | Next Page » |