
Welcome to lecture # 2 of HTML in web designing.
In previous lecture I provided some information about HTML and its basic structure.
I had also made a video of that lecture and I hope that would be helpful for all newbies,
In this lecture, you will get to know about HTML doctype declaration, how to write your first html code and how to save the file.
The post has both text and video content, so its more easy for you to understand the lecture.
Watch=> HTML Lecture 1 - Introduction and Basic Structure
HTML Declaration
Declaration is basically the document type of the file we are using in the browser.
HTML 5 should be declared as <!DOCTYPE html> in the start of the code and before <html> tag.
In previous version of HTML, the document type was declared in three different ways but now in HTML 5, it's only one way to do it.
<!DOCTYPE html> tells the browser that what version of HTML the page is using.
You must use this declaration in your page otherwise the browser will face some problems to load the code properly, because some new elements are not supported by the old versions of HTML.
First Code of HTML
<!DOCTYPE html>
<html>
<head>
<title>My First WebPage</title>
</head>
<body>
This is a text
</body>
</html>
If this was helpful for you then share it with others to help them. Subscribe this blog and follow The Expertise on social media for upcoming updates, tutorials and guides.
No comments:
Post a Comment
If you like this post and want to ask something, you can comment your problems and questions. Please do not spam.