为什么 href 和 <a> 标签不能使用 sublime 3?

Why href and <a> tag not working using sublime 3?

我真的刚刚开始学习如何使用 HTML 来学习如何构建网站,最终目标是弄清楚如何实施 google 分析标签以更好地理解我朝九晚五的工作是如何运作的。

HTML 到目前为止似乎很容易,但是当我使用“”或 href 标签时,在 chrome 中打开文件时似乎没有任何显示。

我一直在使用 sublime 3 作为文本编辑器,在我写了几行 html 并试图保存它(抱歉我没有' 在关闭之前完整阅读消息)。所以我不确定这是否与 sublime 3 或我的编码有关。这可能是我做过的非常简单和愚蠢的事情,所以我们将不胜感激。

HTML 代码如下:

<html>

<head>
    <title>MY WEBPAGE!</title>
</head>

<body>

    <h1>Yo! Sup!</h1>   

    <h2>you can use header tags to create big heads in size 1-6</h2>

        <br> <img src="https://i.ytimg.com/vi/dGpZEuXoFWw/hqdefault.jpg">

    <br>  <br> You need to use br tag to create a new line

        <p>You can write in <strong>bold</strong>
            <br> You can also write in <em>italics</em>
            <br> Can you do <em><strong>both?</strong></em>
        </p>

    <p>You don't always have to use double br tags to start a new paragraph you can use the p tag, the good thing about p tag is it creates a space either side of the paragraph
    </p>

    What about underline?

    <br> <br> You can use the a tag to link to another site <a google.com></a>

    <br> <br> but you need to add a href in <a href="www.google.co.uk"></a>

    <br> <br> You can also you the img tag to identify an image source 

    <br> <br> you can create an unordered list using the ul and li tags which are used to create lists for drop downs and navigations

    <br> <br> 

    <ul>

        <li> first list item </li>

        <li> second list item </li>

        <li> third list item </li>

    </ul>

    <br> you can create an ordered list (which basically just gives the list numbers) by using the ol tag

    <ol>

        <li> first list item </li>

        <li> second list item </li>

        <li> third list item </li>

    </ol>

</body>

</html>

谢谢!

你需要在那个标签里面放一些文字!例如

<a href="http://google.com">Google</a>